From 6ee0cffe7a612f8355e7e2212f0622beb81baab7 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 2 Nov 2022 22:25:13 +0000 Subject: [PATCH 1/2] feat: Adds Cloud Run Jobs v2 API client libraries A Cloud Run Job runs its tasks and exits when finished. For more information about Cloud Run Jobs, visit https://cloud.google.com/run/docs/create-jobs PiperOrigin-RevId: 485653075 Source-Link: https://github.com/googleapis/googleapis/commit/a9a137b7420e8569c14c7a1c9cb31c2ee49fd14c Source-Link: https://github.com/googleapis/googleapis-gen/commit/7d398ce68ad0101db60130d526950df0efcaddce Copy-Tag: eyJwIjoiamF2YS1ydW4vLk93bEJvdC55YW1sIiwiaCI6IjdkMzk4Y2U2OGFkMDEwMWRiNjAxMzBkNTI2OTUwZGYwZWZjYWRkY2UifQ== --- .../google/cloud/run/v2/gapic_metadata.json | 60 - .../google/cloud/run/v2/RevisionsGrpc.java | 577 -- .../com/google/cloud/run/v2/ServicesGrpc.java | 1136 --- .../google/cloud/run/v2/ConditionProto.java | 113 - .../run/v2/GetRevisionRequestOrBuilder.java | 58 - .../run/v2/GetServiceRequestOrBuilder.java | 56 - .../com/google/cloud/run/v2/K8sMinProto.java | 329 - .../google/cloud/run/v2/RevisionProto.java | 271 - .../cloud/run/v2/RevisionTemplateProto.java | 136 - .../com/google/cloud/run/v2/ServiceProto.java | 337 - .../run/v2/TCPSocketActionOrBuilder.java | 38 - .../cloud/run/v2/TrafficTargetProto.java | 97 - .../cloud/run/v2/VendorSettingsProto.java | 113 - .../google/cloud/run/v2/ExecutionsClient.java | 737 ++ .../cloud/run/v2/ExecutionsSettings.java | 242 + .../com/google/cloud/run/v2/JobsClient.java | 1317 ++++ .../com/google/cloud/run/v2/JobsSettings.java | 336 + .../google/cloud/run/v2/RevisionsClient.java | 26 +- .../cloud/run/v2/RevisionsSettings.java | 1 + .../google/cloud/run/v2/ServicesClient.java | 30 +- .../google/cloud/run/v2/ServicesSettings.java | 1 + .../com/google/cloud/run/v2/TasksClient.java | 550 ++ .../google/cloud/run/v2/TasksSettings.java | 216 + .../google/cloud/run/v2/gapic_metadata.json | 129 + .../com/google/cloud/run/v2/package-info.java | 54 + .../cloud/run/v2/stub/ExecutionsStub.java | 74 + .../run/v2/stub/ExecutionsStubSettings.java | 477 ++ .../stub/GrpcExecutionsCallableFactory.java | 113 + .../cloud/run/v2/stub/GrpcExecutionsStub.java | 252 + .../run/v2/stub/GrpcJobsCallableFactory.java | 113 + .../cloud/run/v2/stub/GrpcJobsStub.java | 453 ++ .../v2/stub/GrpcRevisionsCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcRevisionsStub.java | 1 + .../v2/stub/GrpcServicesCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcServicesStub.java | 1 + .../run/v2/stub/GrpcTasksCallableFactory.java | 113 + .../cloud/run/v2/stub/GrpcTasksStub.java | 197 + .../HttpJsonExecutionsCallableFactory.java | 105 + .../run/v2/stub/HttpJsonExecutionsStub.java | 341 + .../v2/stub/HttpJsonJobsCallableFactory.java | 105 + .../cloud/run/v2/stub/HttpJsonJobsStub.java | 690 ++ .../HttpJsonRevisionsCallableFactory.java | 0 .../run/v2/stub/HttpJsonRevisionsStub.java | 1 + .../stub/HttpJsonServicesCallableFactory.java | 0 .../run/v2/stub/HttpJsonServicesStub.java | 1 + .../v2/stub/HttpJsonTasksCallableFactory.java | 105 + .../cloud/run/v2/stub/HttpJsonTasksStub.java | 252 + .../google/cloud/run/v2/stub/JobsStub.java | 118 + .../cloud/run/v2/stub/JobsStubSettings.java | 732 ++ .../cloud/run/v2/stub/RevisionsStub.java | 0 .../run/v2/stub/RevisionsStubSettings.java | 0 .../cloud/run/v2/stub/ServicesStub.java | 0 .../run/v2/stub/ServicesStubSettings.java | 0 .../google/cloud/run/v2/stub/TasksStub.java | 52 + .../cloud/run/v2/stub/TasksStubSettings.java | 396 + .../run/v2/ExecutionsClientHttpJsonTest.java | 461 ++ .../cloud/run/v2/ExecutionsClientTest.java | 435 ++ .../cloud/run/v2/JobsClientHttpJsonTest.java | 1042 +++ .../google/cloud/run/v2/JobsClientTest.java | 944 +++ .../google/cloud/run/v2/MockExecutions.java | 59 + .../cloud/run/v2/MockExecutionsImpl.java | 124 + .../com/google/cloud/run/v2/MockJobs.java | 59 + .../com/google/cloud/run/v2/MockJobsImpl.java | 248 + .../google/cloud/run/v2/MockLocations.java | 0 .../cloud/run/v2/MockLocationsImpl.java | 0 .../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 .../com/google/cloud/run/v2/MockTasks.java | 59 + .../google/cloud/run/v2/MockTasksImpl.java | 101 + .../run/v2/RevisionsClientHttpJsonTest.java | 0 .../cloud/run/v2/RevisionsClientTest.java | 0 .../run/v2/ServicesClientHttpJsonTest.java | 0 .../cloud/run/v2/ServicesClientTest.java | 0 .../cloud/run/v2/TasksClientHttpJsonTest.java | 330 + .../google/cloud/run/v2/TasksClientTest.java | 308 + .../google/cloud/run/v2/ExecutionsGrpc.java | 475 ++ .../com/google/cloud/run/v2/JobsGrpc.java | 1003 +++ .../google/cloud/run/v2/RevisionsGrpc.java | 475 ++ .../com/google/cloud/run/v2/ServicesGrpc.java | 925 +++ .../com/google/cloud/run/v2/TasksGrpc.java | 389 + .../cloud/run/v2/BinaryAuthorization.java | 410 +- .../run/v2/BinaryAuthorizationOrBuilder.java | 33 +- .../google/cloud/run/v2/CloudSqlInstance.java | 345 +- .../run/v2/CloudSqlInstanceOrBuilder.java | 36 +- .../com/google/cloud/run/v2/Condition.java | 1360 ++-- .../cloud/run/v2/ConditionOrBuilder.java | 83 +- .../google/cloud/run/v2/ConditionProto.java | 90 + .../com/google/cloud/run/v2/Container.java | 1415 ++-- .../cloud/run/v2/ContainerOrBuilder.java | 161 +- .../google/cloud/run/v2/ContainerPort.java | 351 +- .../cloud/run/v2/ContainerPortOrBuilder.java | 30 +- .../google/cloud/run/v2/CreateJobRequest.java | 1068 +++ .../run/v2/CreateJobRequestOrBuilder.java | 91 + .../cloud/run/v2/CreateServiceRequest.java | 584 +- .../run/v2/CreateServiceRequestOrBuilder.java | 68 +- .../cloud/run/v2/DeleteExecutionRequest.java | 845 +++ .../v2/DeleteExecutionRequestOrBuilder.java | 66 + .../google/cloud/run/v2/DeleteJobRequest.java | 838 +++ .../run/v2/DeleteJobRequestOrBuilder.java | 64 + .../cloud/run/v2/DeleteRevisionRequest.java | 465 +- .../v2/DeleteRevisionRequestOrBuilder.java | 47 +- .../cloud/run/v2/DeleteServiceRequest.java | 465 +- .../run/v2/DeleteServiceRequestOrBuilder.java | 47 +- .../java/com/google/cloud/run/v2/EnvVar.java | 540 +- .../google/cloud/run/v2/EnvVarOrBuilder.java | 47 +- .../com/google/cloud/run/v2/EnvVarSource.java | 323 +- .../cloud/run/v2/EnvVarSourceOrBuilder.java | 26 +- .../com/google/cloud/run/v2/Execution.java | 4842 ++++++++++++ .../cloud/run/v2/ExecutionEnvironment.java | 77 +- .../google/cloud/run/v2/ExecutionName.java | 257 + .../cloud/run/v2/ExecutionOrBuilder.java | 633 ++ .../google/cloud/run/v2/ExecutionProto.java | 209 + .../cloud/run/v2/ExecutionReference.java | 1036 +++ .../run/v2/ExecutionReferenceOrBuilder.java | 83 + .../cloud/run/v2/ExecutionTemplate.java | 1465 ++++ .../run/v2/ExecutionTemplateOrBuilder.java | 178 + .../cloud/run/v2/ExecutionTemplateProto.java | 92 + .../cloud/run/v2/GetExecutionRequest.java | 588 ++ .../run/v2/GetExecutionRequestOrBuilder.java | 33 + .../google/cloud/run/v2/GetJobRequest.java | 581 ++ .../cloud/run/v2/GetJobRequestOrBuilder.java | 31 + .../cloud/run/v2/GetRevisionRequest.java | 348 +- .../run/v2/GetRevisionRequestOrBuilder.java | 33 + .../cloud/run/v2/GetServiceRequest.java | 348 +- .../run/v2/GetServiceRequestOrBuilder.java | 31 + .../google/cloud/run/v2/GetTaskRequest.java | 588 ++ .../cloud/run/v2/GetTaskRequestOrBuilder.java | 33 + .../google/cloud/run/v2/HTTPGetAction.java | 471 +- .../cloud/run/v2/HTTPGetActionOrBuilder.java | 45 +- .../com/google/cloud/run/v2/HTTPHeader.java | 392 +- .../cloud/run/v2/HTTPHeaderOrBuilder.java | 36 +- .../google/cloud/run/v2/IngressTraffic.java | 89 +- .../java/com/google/cloud/run/v2/Job.java | 5289 +++++++++++++ .../java/com/google/cloud/run/v2/JobName.java | 216 + .../com/google/cloud/run/v2/JobOrBuilder.java | 704 ++ .../com/google/cloud/run/v2/JobProto.java | 295 + .../com/google/cloud/run/v2/K8sMinProto.java | 283 + .../cloud/run/v2/ListExecutionsRequest.java | 921 +++ .../v2/ListExecutionsRequestOrBuilder.java | 75 + .../cloud/run/v2/ListExecutionsResponse.java | 1024 +++ .../v2/ListExecutionsResponseOrBuilder.java | 75 + .../google/cloud/run/v2/ListJobsRequest.java | 914 +++ .../run/v2/ListJobsRequestOrBuilder.java | 73 + .../google/cloud/run/v2/ListJobsResponse.java | 1024 +++ .../run/v2/ListJobsResponseOrBuilder.java | 75 + .../cloud/run/v2/ListRevisionsRequest.java | 500 +- .../run/v2/ListRevisionsRequestOrBuilder.java | 50 +- .../cloud/run/v2/ListRevisionsResponse.java | 474 +- .../v2/ListRevisionsResponseOrBuilder.java | 46 +- .../cloud/run/v2/ListServicesRequest.java | 500 +- .../run/v2/ListServicesRequestOrBuilder.java | 50 +- .../cloud/run/v2/ListServicesResponse.java | 480 +- .../run/v2/ListServicesResponseOrBuilder.java | 46 +- .../google/cloud/run/v2/ListTasksRequest.java | 928 +++ .../run/v2/ListTasksRequestOrBuilder.java | 77 + .../cloud/run/v2/ListTasksResponse.java | 1024 +++ .../run/v2/ListTasksResponseOrBuilder.java | 75 + .../com/google/cloud/run/v2/LocationName.java | 0 .../java/com/google/cloud/run/v2/Probe.java | 598 +- .../google/cloud/run/v2/ProbeOrBuilder.java | 46 +- .../cloud/run/v2/ResourceRequirements.java | 541 +- .../run/v2/ResourceRequirementsOrBuilder.java | 52 +- .../com/google/cloud/run/v2/Revision.java | 2917 +++----- .../com/google/cloud/run/v2/RevisionName.java | 0 .../cloud/run/v2/RevisionOrBuilder.java | 344 +- .../google/cloud/run/v2/RevisionProto.java | 226 + .../google/cloud/run/v2/RevisionScaling.java | 311 +- .../run/v2/RevisionScalingOrBuilder.java | 24 +- .../google/cloud/run/v2/RevisionTemplate.java | 1640 ++--- .../run/v2/RevisionTemplateOrBuilder.java | 178 +- .../cloud/run/v2/RevisionTemplateProto.java | 108 + .../google/cloud/run/v2/RunJobRequest.java | 838 +++ .../cloud/run/v2/RunJobRequestOrBuilder.java | 64 + .../cloud/run/v2/SecretKeySelector.java | 427 +- .../run/v2/SecretKeySelectorOrBuilder.java | 44 +- .../cloud/run/v2/SecretVolumeSource.java | 510 +- .../run/v2/SecretVolumeSourceOrBuilder.java | 49 +- .../java/com/google/cloud/run/v2/Service.java | 3379 ++++----- .../com/google/cloud/run/v2/ServiceName.java | 0 .../google/cloud/run/v2/ServiceOrBuilder.java | 427 +- .../com/google/cloud/run/v2/ServiceProto.java | 287 + .../google/cloud/run/v2/TCPSocketAction.java | 276 +- .../run/v2/TCPSocketActionOrBuilder.java | 19 + .../java/com/google/cloud/run/v2/Task.java | 6522 +++++++++++++++++ .../cloud/run/v2/TaskAttemptResult.java | 743 ++ .../run/v2/TaskAttemptResultOrBuilder.java | 52 + .../com/google/cloud/run/v2/TaskName.java | 289 + .../google/cloud/run/v2/TaskOrBuilder.java | 817 +++ .../com/google/cloud/run/v2/TaskProto.java | 211 + .../com/google/cloud/run/v2/TaskTemplate.java | 2488 +++++++ .../cloud/run/v2/TaskTemplateOrBuilder.java | 255 + .../cloud/run/v2/TaskTemplateProto.java | 76 + .../google/cloud/run/v2/TrafficTarget.java | 496 +- .../run/v2/TrafficTargetAllocationType.java | 77 +- .../cloud/run/v2/TrafficTargetOrBuilder.java | 45 +- .../cloud/run/v2/TrafficTargetProto.java | 81 + .../cloud/run/v2/TrafficTargetStatus.java | 577 +- .../run/v2/TrafficTargetStatusOrBuilder.java | 54 +- .../google/cloud/run/v2/UpdateJobRequest.java | 813 ++ .../run/v2/UpdateJobRequestOrBuilder.java | 59 + .../cloud/run/v2/UpdateServiceRequest.java | 433 +- .../run/v2/UpdateServiceRequestOrBuilder.java | 41 +- .../cloud/run/v2/VendorSettingsProto.java | 96 + .../google/cloud/run/v2/VersionToPath.java | 430 +- .../cloud/run/v2/VersionToPathOrBuilder.java | 39 +- .../java/com/google/cloud/run/v2/Volume.java | 533 +- .../com/google/cloud/run/v2/VolumeMount.java | 392 +- .../cloud/run/v2/VolumeMountOrBuilder.java | 36 +- .../google/cloud/run/v2/VolumeOrBuilder.java | 43 +- .../com/google/cloud/run/v2/VpcAccess.java | 433 +- .../cloud/run/v2/VpcAccessOrBuilder.java | 33 +- .../proto/google/cloud/run/v2/condition.proto | 0 .../proto/google/cloud/run/v2/execution.proto | 259 + .../cloud/run/v2/execution_template.proto | 54 + .../main/proto/google/cloud/run/v2/job.proto | 400 + .../proto/google/cloud/run/v2/k8s.min.proto | 0 .../proto/google/cloud/run/v2/revision.proto | 16 +- .../cloud/run/v2/revision_template.proto | 10 +- .../proto/google/cloud/run/v2/service.proto | 18 +- .../main/proto/google/cloud/run/v2/task.proto | 256 + .../google/cloud/run/v2/task_template.proto | 68 + .../google/cloud/run/v2/traffic_target.proto | 0 .../google/cloud/run/v2/vendor_settings.proto | 0 .../SyncCreateSetCredentialsProvider.java | 44 + .../SyncCreateSetCredentialsProvider1.java | 39 + .../create/SyncCreateSetEndpoint.java | 41 + .../deleteexecution/AsyncDeleteExecution.java | 52 + .../AsyncDeleteExecutionLRO.java | 53 + .../deleteexecution/SyncDeleteExecution.java | 49 + .../SyncDeleteExecutionExecutionname.java | 42 + .../SyncDeleteExecutionString.java | 42 + .../getexecution/AsyncGetExecution.java | 50 + .../getexecution/SyncGetExecution.java | 47 + .../SyncGetExecutionExecutionname.java | 42 + .../getexecution/SyncGetExecutionString.java | 42 + .../listexecutions/AsyncListExecutions.java | 55 + .../AsyncListExecutionsPaged.java | 62 + .../listexecutions/SyncListExecutions.java | 51 + .../SyncListExecutionsJobname.java | 44 + .../SyncListExecutionsString.java | 44 + .../getexecution/SyncGetExecution.java | 45 + .../SyncCreateSetCredentialsProvider.java | 44 + .../SyncCreateSetCredentialsProvider1.java | 39 + .../v2/jobs/create/SyncCreateSetEndpoint.java | 40 + .../run/v2/jobs/createjob/AsyncCreateJob.java | 53 + .../v2/jobs/createjob/AsyncCreateJobLRO.java | 53 + .../run/v2/jobs/createjob/SyncCreateJob.java | 49 + .../SyncCreateJobLocationnameJobString.java | 44 + .../SyncCreateJobStringJobString.java | 44 + .../run/v2/jobs/deletejob/AsyncDeleteJob.java | 51 + .../v2/jobs/deletejob/AsyncDeleteJobLRO.java | 52 + .../run/v2/jobs/deletejob/SyncDeleteJob.java | 48 + .../jobs/deletejob/SyncDeleteJobJobname.java | 42 + .../jobs/deletejob/SyncDeleteJobString.java | 42 + .../jobs/getiampolicy/AsyncGetIamPolicy.java | 51 + .../jobs/getiampolicy/SyncGetIamPolicy.java | 48 + .../cloud/run/v2/jobs/getjob/AsyncGetJob.java | 49 + .../cloud/run/v2/jobs/getjob/SyncGetJob.java | 46 + .../run/v2/jobs/getjob/SyncGetJobJobname.java | 42 + .../run/v2/jobs/getjob/SyncGetJobString.java | 42 + .../run/v2/jobs/listjobs/AsyncListJobs.java | 54 + .../v2/jobs/listjobs/AsyncListJobsPaged.java | 62 + .../run/v2/jobs/listjobs/SyncListJobs.java | 51 + .../listjobs/SyncListJobsLocationname.java | 44 + .../v2/jobs/listjobs/SyncListJobsString.java | 44 + .../cloud/run/v2/jobs/runjob/AsyncRunJob.java | 51 + .../run/v2/jobs/runjob/AsyncRunJobLRO.java | 52 + .../cloud/run/v2/jobs/runjob/SyncRunJob.java | 48 + .../run/v2/jobs/runjob/SyncRunJobJobname.java | 42 + .../run/v2/jobs/runjob/SyncRunJobString.java | 42 + .../jobs/setiampolicy/AsyncSetIamPolicy.java | 52 + .../jobs/setiampolicy/SyncSetIamPolicy.java | 49 + .../AsyncTestIamPermissions.java | 52 + .../SyncTestIamPermissions.java | 48 + .../run/v2/jobs/updatejob/AsyncUpdateJob.java | 51 + .../v2/jobs/updatejob/AsyncUpdateJobLRO.java | 51 + .../run/v2/jobs/updatejob/SyncUpdateJob.java | 47 + .../v2/jobs/updatejob/SyncUpdateJobJob.java | 41 + .../v2/jobssettings/getjob/SyncGetJob.java | 45 + .../SyncCreateSetCredentialsProvider.java | 4 +- .../SyncCreateSetCredentialsProvider1.java | 10 +- .../create/SyncCreateSetEndpoint.java | 4 +- .../deleterevision/AsyncDeleteRevision.java | 4 +- .../AsyncDeleteRevisionLRO.java | 4 +- .../deleterevision/SyncDeleteRevision.java | 4 +- .../SyncDeleteRevisionRevisionname.java | 4 +- .../SyncDeleteRevisionString.java | 4 +- .../getrevision/AsyncGetRevision.java | 4 +- .../getrevision/SyncGetRevision.java | 4 +- .../SyncGetRevisionRevisionname.java | 4 +- .../getrevision/SyncGetRevisionString.java | 4 +- .../listrevisions/AsyncListRevisions.java | 4 +- .../AsyncListRevisionsPaged.java | 4 +- .../listrevisions/SyncListRevisions.java | 4 +- .../SyncListRevisionsServicename.java | 4 +- .../SyncListRevisionsString.java | 4 +- .../getrevision/SyncGetRevision.java | 4 +- .../SyncCreateSetCredentialsProvider.java | 4 +- .../SyncCreateSetCredentialsProvider1.java | 10 +- .../create/SyncCreateSetEndpoint.java | 4 +- .../createservice/AsyncCreateService.java | 4 +- .../createservice/AsyncCreateServiceLRO.java | 4 +- .../createservice/SyncCreateService.java | 4 +- ...reateServiceLocationnameServiceString.java | 4 +- .../SyncCreateServiceStringServiceString.java | 4 +- .../deleteservice/AsyncDeleteService.java | 4 +- .../deleteservice/AsyncDeleteServiceLRO.java | 4 +- .../deleteservice/SyncDeleteService.java | 4 +- .../SyncDeleteServiceServicename.java | 4 +- .../SyncDeleteServiceString.java | 4 +- .../getiampolicy/AsyncGetIamPolicy.java | 4 +- .../getiampolicy/SyncGetIamPolicy.java | 4 +- .../services}/getservice/AsyncGetService.java | 4 +- .../services}/getservice/SyncGetService.java | 4 +- .../getservice/SyncGetServiceServicename.java | 4 +- .../getservice/SyncGetServiceString.java | 4 +- .../listservices/AsyncListServices.java | 4 +- .../listservices/AsyncListServicesPaged.java | 4 +- .../listservices/SyncListServices.java | 4 +- .../SyncListServicesLocationname.java | 4 +- .../listservices/SyncListServicesString.java | 4 +- .../setiampolicy/AsyncSetIamPolicy.java | 4 +- .../setiampolicy/SyncSetIamPolicy.java | 4 +- .../AsyncTestIamPermissions.java | 4 +- .../SyncTestIamPermissions.java | 4 +- .../updateservice/AsyncUpdateService.java | 4 +- .../updateservice/AsyncUpdateServiceLRO.java | 4 +- .../updateservice/SyncUpdateService.java | 4 +- .../SyncUpdateServiceService.java | 4 +- .../getservice/SyncGetService.java | 4 +- .../getexecution/SyncGetExecution.java | 45 + .../jobsstubsettings/getjob/SyncGetJob.java | 45 + .../getrevision/SyncGetRevision.java | 4 +- .../getservice/SyncGetService.java | 4 +- .../gettask/SyncGetTask.java | 45 + .../SyncCreateSetCredentialsProvider.java | 44 + .../SyncCreateSetCredentialsProvider1.java | 39 + .../tasks/create/SyncCreateSetEndpoint.java | 40 + .../run/v2/tasks/gettask/AsyncGetTask.java | 51 + .../run/v2/tasks/gettask/SyncGetTask.java | 48 + .../v2/tasks/gettask/SyncGetTaskString.java | 43 + .../v2/tasks/gettask/SyncGetTaskTaskname.java | 42 + .../v2/tasks/listtasks/AsyncListTasks.java | 55 + .../tasks/listtasks/AsyncListTasksPaged.java | 63 + .../run/v2/tasks/listtasks/SyncListTasks.java | 52 + .../listtasks/SyncListTasksExecutionname.java | 44 + .../tasks/listtasks/SyncListTasksString.java | 45 + .../v2/taskssettings/gettask/SyncGetTask.java | 45 + 350 files changed, 71064 insertions(+), 19829 deletions(-) delete mode 100644 java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json delete mode 100644 java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java delete mode 100644 java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java delete mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java delete mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java delete mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java delete mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java delete mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java delete mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java delete mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java delete mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java delete mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java delete mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java (97%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java (99%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java (98%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java (99%) create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java (50%) create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsCallableFactory.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsCallableFactory.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java (99%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java (99%) create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksCallableFactory.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsCallableFactory.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsCallableFactory.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java (99%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java (99%) create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksCallableFactory.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksStub.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java (100%) create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStub.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutions.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutionsImpl.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobs.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobsImpl.java rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocations.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocationsImpl.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java (100%) create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasks.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasksImpl.java rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java (100%) create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java create mode 100644 owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java create mode 100644 owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java create mode 100644 owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java create mode 100644 owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java create mode 100644 owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java (70%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java (69%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java (71%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java (72%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java (75%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java (84%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java (81%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java (89%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java (67%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java (56%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java (68%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java (63%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java (67%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java (57%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java (66%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java (56%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java (73%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java (80%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java (66%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java (61%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java (69%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java (62%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java (62%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java (72%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java (67%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java (66%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java (54%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java (68%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java (68%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java (61%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java (72%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java (65%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java (67%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java (60%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java (71%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java (65%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java (75%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java (82%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java (63%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java (72%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java (72%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java (81%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java (66%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java (51%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java (72%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java (80%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java (66%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java (57%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java (79%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java (83%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java (72%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java (100%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java (80%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java (64%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java (69%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java (70%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java (69%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java (69%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java (68%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java (69%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java (64%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java (72%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java (72%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java (73%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java (70%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java (69%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java (78%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java (69%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java (63%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto (100%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto (100%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto (95%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto (91%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto (96%) create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto create mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto (100%) rename {java-run => owl-bot-staging/java-run/v2}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto (100%) create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecution.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecutionLRO.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecution.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionExecutionname.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/AsyncGetExecution.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecution.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionExecutionname.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutions.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutionsPaged.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutions.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsJobname.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executionssettings/getexecution/SyncGetExecution.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJobLRO.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobLocationnameJobString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobStringJobString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJobLRO.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobJobname.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/AsyncGetIamPolicy.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/SyncGetIamPolicy.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/AsyncGetJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobJobname.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobs.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobsPaged.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobs.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsLocationname.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJobLRO.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobJobname.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/AsyncSetIamPolicy.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/SyncSetIamPolicy.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/AsyncTestIamPermissions.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/SyncTestIamPermissions.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJobLRO.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJobJob.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobssettings/getjob/SyncGetJob.java rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/create/SyncCreateSetCredentialsProvider.java (91%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/create/SyncCreateSetCredentialsProvider1.java (79%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/create/SyncCreateSetEndpoint.java (92%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/deleterevision/AsyncDeleteRevision.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/deleterevision/AsyncDeleteRevisionLRO.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/deleterevision/SyncDeleteRevision.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/deleterevision/SyncDeleteRevisionRevisionname.java (91%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/deleterevision/SyncDeleteRevisionString.java (92%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/getrevision/AsyncGetRevision.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/getrevision/SyncGetRevision.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/getrevision/SyncGetRevisionRevisionname.java (91%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/getrevision/SyncGetRevisionString.java (92%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/listrevisions/AsyncListRevisions.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/listrevisions/AsyncListRevisionsPaged.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/listrevisions/SyncListRevisions.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/listrevisions/SyncListRevisionsServicename.java (91%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions}/listrevisions/SyncListRevisionsString.java (92%) rename {java-run => owl-bot-staging/java-run/v2}/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/create/SyncCreateSetCredentialsProvider.java (91%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/create/SyncCreateSetCredentialsProvider1.java (79%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/create/SyncCreateSetEndpoint.java (92%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/createservice/AsyncCreateService.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/createservice/AsyncCreateServiceLRO.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/createservice/SyncCreateService.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/createservice/SyncCreateServiceLocationnameServiceString.java (91%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/createservice/SyncCreateServiceStringServiceString.java (91%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/deleteservice/AsyncDeleteService.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/deleteservice/AsyncDeleteServiceLRO.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/deleteservice/SyncDeleteService.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/deleteservice/SyncDeleteServiceServicename.java (91%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/deleteservice/SyncDeleteServiceString.java (92%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/getiampolicy/AsyncGetIamPolicy.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/getiampolicy/SyncGetIamPolicy.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/getservice/AsyncGetService.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/getservice/SyncGetService.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/getservice/SyncGetServiceServicename.java (92%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/getservice/SyncGetServiceString.java (92%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/listservices/AsyncListServices.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/listservices/AsyncListServicesPaged.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/listservices/SyncListServices.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/listservices/SyncListServicesLocationname.java (91%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/listservices/SyncListServicesString.java (92%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/setiampolicy/AsyncSetIamPolicy.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/setiampolicy/SyncSetIamPolicy.java (94%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/testiampermissions/AsyncTestIamPermissions.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/testiampermissions/SyncTestIamPermissions.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/updateservice/AsyncUpdateService.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/updateservice/AsyncUpdateServiceLRO.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/updateservice/SyncUpdateService.java (93%) rename {java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient => owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services}/updateservice/SyncUpdateServiceService.java (91%) rename {java-run => owl-bot-staging/java-run/v2}/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java (93%) create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/executionsstubsettings/getexecution/SyncGetExecution.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/jobsstubsettings/getjob/SyncGetJob.java rename {java-run => owl-bot-staging/java-run/v2}/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java (93%) rename {java-run => owl-bot-staging/java-run/v2}/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java (93%) create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/tasksstubsettings/gettask/SyncGetTask.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/AsyncGetTask.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTask.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskTaskname.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasks.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasksPaged.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasks.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksExecutionname.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksString.java create mode 100644 owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/taskssettings/gettask/SyncGetTask.java diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json deleted file mode 100644 index 0e6120fb0174..000000000000 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.run.v2", - "libraryPackage": "com.google.cloud.run.v2", - "services": { - "Revisions": { - "clients": { - "grpc": { - "libraryClient": "RevisionsClient", - "rpcs": { - "DeleteRevision": { - "methods": ["deleteRevisionAsync", "deleteRevisionAsync", "deleteRevisionAsync", "deleteRevisionOperationCallable", "deleteRevisionCallable"] - }, - "GetRevision": { - "methods": ["getRevision", "getRevision", "getRevision", "getRevisionCallable"] - }, - "ListRevisions": { - "methods": ["listRevisions", "listRevisions", "listRevisions", "listRevisionsPagedCallable", "listRevisionsCallable"] - } - } - } - } - }, - "Services": { - "clients": { - "grpc": { - "libraryClient": "ServicesClient", - "rpcs": { - "CreateService": { - "methods": ["createServiceAsync", "createServiceAsync", "createServiceAsync", "createServiceOperationCallable", "createServiceCallable"] - }, - "DeleteService": { - "methods": ["deleteServiceAsync", "deleteServiceAsync", "deleteServiceAsync", "deleteServiceOperationCallable", "deleteServiceCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicyCallable"] - }, - "GetService": { - "methods": ["getService", "getService", "getService", "getServiceCallable"] - }, - "ListServices": { - "methods": ["listServices", "listServices", "listServices", "listServicesPagedCallable", "listServicesCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissionsCallable"] - }, - "UpdateService": { - "methods": ["updateServiceAsync", "updateServiceAsync", "updateServiceOperationCallable", "updateServiceCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java deleted file mode 100644 index 287d926d2a1b..000000000000 --- a/java-run/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/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java deleted file mode 100644 index fe875c8c05fb..000000000000 --- a/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java deleted file mode 100644 index 80b5b0c41ea0..000000000000 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/condition.proto - -package com.google.cloud.run.v2; - -public final class ConditionProto { - private ConditionProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Condition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Condition_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n#google/cloud/run/v2/condition.proto\022\023g" - + "oogle.cloud.run.v2\032\037google/protobuf/time" - + "stamp.proto\"\344\013\n\tCondition\022\014\n\004type\030\001 \001(\t\022" - + "3\n\005state\030\002 \001(\0162$.google.cloud.run.v2.Con" - + "dition.State\022\017\n\007message\030\003 \001(\t\0228\n\024last_tr" - + "ansition_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestamp\0229\n\010severity\030\005 \001(\0162\'.google.cloud" - + ".run.v2.Condition.Severity\022=\n\006reason\030\006 \001" - + "(\0162+.google.cloud.run.v2.Condition.Commo" - + "nReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goo" - + "gle.cloud.run.v2.Condition.RevisionReaso" - + "nH\000\022J\n\020execution_reason\030\013 \001(\0162..google.c" - + "loud.run.v2.Condition.ExecutionReasonH\000\"" - + "\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDI" - + "TION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020" - + "\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUC" - + "CEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECI" - + "FIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003" - + "\"\262\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEF" - + "INED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_FAILED\020\003" - + "\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004\022\025\n\021CONT" - + "AINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION_" - + "DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZED" - + "\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHEC" - + "K_FAILED\020\t\022$\n ENCRYPTION_KEY_PERMISSION_" - + "DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK_FAILED\020" - + "\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED\020\014\022\031\n\025WA" - + "ITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETRY" - + "\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTERNAL\020\020\"\257\002" - + "\n\016RevisionReason\022\035\n\031REVISION_REASON_UNDE" - + "FINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020\002\022\013\n\007RET" - + "IRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATING\020\005\022 \n\034" - + "HEALTH_CHECK_CONTAINER_ERROR\020\006\022$\n CUSTOM" - + "IZED_PATH_RESPONSE_PENDING\020\007\022!\n\035MIN_INST" - + "ANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIVE_REVISI" - + "ON_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYMENT\020\n\022\030\n" - + "\024HEALTH_CHECK_SKIPPED\020\013\"~\n\017ExecutionReas" - + "on\022\036\n\032EXECUTION_REASON_UNDEFINED\020\000\022$\n JO" - + "B_STATUS_SERVICE_POLLING_ERROR\020\001\022\026\n\022NON_" - + "ZERO_EXIT_CODE\020\002\022\r\n\tCANCELLED\020\003B\t\n\007reaso" - + "nsBc\n\027com.google.cloud.run.v2B\016Condition" - + "ProtoP\001Z6google.golang.org/genproto/goog" - + "leapis/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", - "RevisionReason", - "ExecutionReason", - "Reasons", - }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java deleted file mode 100644 index 370fcb971c76..000000000000 --- a/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java deleted file mode 100644 index 86a7618df64f..000000000000 --- a/java-run/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/{project}/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/{project}/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java deleted file mode 100644 index 18a11fdfc40c..000000000000 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java +++ /dev/null @@ -1,329 +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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Probe_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Probe_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_HTTPHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_TCPSocketAction_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\"\234\003\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\022\023\n\013working_dir\030\t \001(\t\0222\n\016liveness" - + "_probe\030\n \001(\0132\032.google.cloud.run.v2.Probe" - + "\0221\n\rstartup_probe\030\013 \001(\0132\032.google.cloud.r" - + "un.v2.Probe\"\236\001\n\024ResourceRequirements\022E\n\006" - + "limits\030\001 \003(\01325.google.cloud.run.v2.Resou" - + "rceRequirements.LimitsEntry\022\020\n\010cpu_idle\030" - + "\002 \001(\010\032-\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\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(\013" - + "2!.google.cloud.run.v2.EnvVarSourceH\000B\010\n" - + "\006values\"N\n\014EnvVarSource\022>\n\016secret_key_re" - + "f\030\001 \001(\0132&.google.cloud.run.v2.SecretKeyS" - + "elector\"\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*secret" - + "manager.googleapis.com/SecretVersion\"5\n\r" - + "ContainerPort\022\014\n\004name\030\001 \001(\t\022\026\n\016container" - + "_port\030\003 \001(\005\"9\n\013VolumeMount\022\021\n\004name\030\001 \001(\t" - + "B\003\340A\002\022\027\n\nmount_path\030\003 \001(\tB\003\340A\002\"\252\001\n\006Volum" - + "e\022\021\n\004name\030\001 \001(\tB\003\340A\002\0229\n\006secret\030\002 \001(\0132\'.g" - + "oogle.cloud.run.v2.SecretVolumeSourceH\000\022" - + "C\n\022cloud_sql_instance\030\003 \001(\0132%.google.clo" - + "ud.run.v2.CloudSqlInstanceH\000B\r\n\013volume_t" - + "ype\"r\n\022SecretVolumeSource\022\023\n\006secret\030\001 \001(" - + "\tB\003\340A\002\0221\n\005items\030\002 \003(\0132\".google.cloud.run" - + ".v2.VersionToPath\022\024\n\014default_mode\030\003 \001(\005\"" - + "A\n\rVersionToPath\022\021\n\004path\030\001 \001(\tB\003\340A\002\022\017\n\007v" - + "ersion\030\002 \001(\t\022\014\n\004mode\030\003 \001(\005\"%\n\020CloudSqlIn" - + "stance\022\021\n\tinstances\030\001 \003(\t\"\364\001\n\005Probe\022\035\n\025i" - + "nitial_delay_seconds\030\001 \001(\005\022\027\n\017timeout_se" - + "conds\030\002 \001(\005\022\026\n\016period_seconds\030\003 \001(\005\022\031\n\021f" - + "ailure_threshold\030\004 \001(\005\0226\n\010http_get\030\005 \001(\013" - + "2\".google.cloud.run.v2.HTTPGetActionH\000\022:" - + "\n\ntcp_socket\030\006 \001(\0132$.google.cloud.run.v2" - + ".TCPSocketActionH\000B\014\n\nprobe_type\"T\n\rHTTP" - + "GetAction\022\014\n\004path\030\001 \001(\t\0225\n\014http_headers\030" - + "\004 \003(\0132\037.google.cloud.run.v2.HTTPHeader\"." - + "\n\nHTTPHeader\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\r\n\005value" - + "\030\002 \001(\t\"\037\n\017TCPSocketAction\022\014\n\004port\030\001 \001(\005B" - + "\366\003\n\027com.google.cloud.run.v2B\013K8sMinProto" - + "P\001Z6google.golang.org/genproto/googleapi" - + "s/cloud/run/v2;run\352Ax\n!cloudkms.googleap" - + "is.com/CryptoKey\022Sprojects/{project}/loc" - + "ations/{location}/keyRings/{key_ring}/cr" - + "yptoKeys/{crypto_key}\352AJ\n#secretmanager." - + "googleapis.com/Secret\022#projects/{project" - + "}/secrets/{secret}\352Ad\n*secretmanager.goo" - + "gleapis.com/SecretVersion\0226projects/{pro" - + "ject}/secrets/{secret}/versions/{version" - + "}\352Ad\n\"vpcaccess.googleapis.com/Connector" - + "\022>projects/{project}/locations/{location" - + "}/connectors/{connector}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", - "WorkingDir", - "LivenessProbe", - "StartupProbe", - }); - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor, - new java.lang.String[] { - "Limits", "CpuIdle", - }); - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor = - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_run_v2_EnvVar_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_EnvVar_descriptor, - new java.lang.String[] { - "Name", "Value", "ValueSource", "Values", - }); - internal_static_google_cloud_run_v2_EnvVarSource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_EnvVarSource_descriptor, - new java.lang.String[] { - "SecretKeyRef", - }); - internal_static_google_cloud_run_v2_SecretKeySelector_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_SecretKeySelector_descriptor, - new java.lang.String[] { - "Secret", "Version", - }); - internal_static_google_cloud_run_v2_ContainerPort_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ContainerPort_descriptor, - new java.lang.String[] { - "Name", "ContainerPort", - }); - internal_static_google_cloud_run_v2_VolumeMount_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VolumeMount_descriptor, - new java.lang.String[] { - "Name", "MountPath", - }); - internal_static_google_cloud_run_v2_Volume_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_run_v2_Volume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Volume_descriptor, - new java.lang.String[] { - "Name", "Secret", "CloudSqlInstance", "VolumeType", - }); - internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor, - new java.lang.String[] { - "Secret", "Items", "DefaultMode", - }); - internal_static_google_cloud_run_v2_VersionToPath_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VersionToPath_descriptor, - new java.lang.String[] { - "Path", "Version", "Mode", - }); - internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor, - new java.lang.String[] { - "Instances", - }); - internal_static_google_cloud_run_v2_Probe_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_run_v2_Probe_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Probe_descriptor, - new java.lang.String[] { - "InitialDelaySeconds", - "TimeoutSeconds", - "PeriodSeconds", - "FailureThreshold", - "HttpGet", - "TcpSocket", - "ProbeType", - }); - internal_static_google_cloud_run_v2_HTTPGetAction_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_HTTPGetAction_descriptor, - new java.lang.String[] { - "Path", "HttpHeaders", - }); - internal_static_google_cloud_run_v2_HTTPHeader_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_HTTPHeader_descriptor, - new java.lang.String[] { - "Name", "Value", - }); - internal_static_google_cloud_run_v2_TCPSocketAction_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_TCPSocketAction_descriptor, - new java.lang.String[] { - "Port", - }); - 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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java deleted file mode 100644 index 9e62e90a7b21..000000000000 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/revision.proto - -package com.google.cloud.run.v2; - -public final class RevisionProto { - private RevisionProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\"google/cloud/run/v2/revision.proto\022\023go" - + "ogle.cloud.run.v2\032\034google/api/annotation" - + "s.proto\032\027google/api/client.proto\032\037google" - + "/api/field_behavior.proto\032\035google/api/la" - + "unch_stage.proto\032\031google/api/resource.pr" - + "oto\032\030google/api/routing.proto\032#google/cl" - + "oud/run/v2/condition.proto\032!google/cloud" - + "/run/v2/k8s.min.proto\032)google/cloud/run/" - + "v2/vendor_settings.proto\032#google/longrun" - + "ning/operations.proto\032\036google/protobuf/d" - + "uration.proto\032\037google/protobuf/timestamp" - + ".proto\"G\n\022GetRevisionRequest\0221\n\004name\030\001 \001" - + "(\tB#\340A\002\372A\035\n\033run.googleapis.com/Revision\"" - + "\210\001\n\024ListRevisionsRequest\0223\n\006parent\030\001 \001(\t" - + "B#\340A\002\372A\035\022\033run.googleapis.com/Revision\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" - + "show_deleted\030\004 \001(\010\"b\n\025ListRevisionsRespo" - + "nse\0220\n\trevisions\030\001 \003(\0132\035.google.cloud.ru" - + "n.v2.Revision\022\027\n\017next_page_token\030\002 \001(\t\"o" - + "\n\025DeleteRevisionRequest\0221\n\004name\030\001 \001(\tB#\340" - + "A\002\372A\035\n\033run.googleapis.com/Revision\022\025\n\rva" - + "lidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\301\n\n\010Revi" - + "sion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A" - + "\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0229\n\006labels\030\004 \003" - + "(\0132).google.cloud.run.v2.Revision.Labels" - + "Entry\022C\n\013annotations\030\005 \003(\0132..google.clou" - + "d.run.v2.Revision.AnnotationsEntry\0224\n\013cr" - + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "expire_time\030\t \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022-\n\014launch_stage\030\n \001(\0162\027.googl" - + "e.api.LaunchStage\0223\n\007service\030\013 \001(\tB\"\340A\003\372" - + "A\034\n\032run.googleapis.com/Service\0225\n\007scalin" - + "g\030\014 \001(\0132$.google.cloud.run.v2.RevisionSc" - + "aling\0222\n\nvpc_access\030\r \001(\0132\036.google.cloud" - + ".run.v2.VpcAccess\022(\n max_instance_reques" - + "t_concurrency\030\" \001(\005\022*\n\007timeout\030\017 \001(\0132\031.g" - + "oogle.protobuf.Duration\022\027\n\017service_accou" - + "nt\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google.cl" - + "oud.run.v2.Container\022,\n\007volumes\030\022 \003(\0132\033." - + "google.cloud.run.v2.Volume\022H\n\025execution_" - + "environment\030\024 \001(\0162).google.cloud.run.v2." - + "ExecutionEnvironment\022>\n\016encryption_key\030\025" - + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" - + "oKey\022\030\n\013reconciling\030\036 \001(\010B\003\340A\003\0227\n\ncondit" - + "ions\030\037 \003(\0132\036.google.cloud.run.v2.Conditi" - + "onB\003\340A\003\022 \n\023observed_generation\030 \001(\003B\003\340A" - + "\003\022\024\n\007log_uri\030! \001(\tB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340" - + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n\033run.googleap" - + "is.com/Revision\022Oprojects/{project}/loca" - + "tions/{location}/services/{service}/revi" - + "sions/{revision}R\001\0012\205\006\n\tRevisions\022\322\001\n\013Ge" - + "tRevision\022\'.google.cloud.run.v2.GetRevis" - + "ionRequest\032\035.google.cloud.run.v2.Revisio" - + "n\"{\202\323\344\223\002:\0228/v2/{name=projects/*/location" - + "s/*/services/*/revisions/*}\212\323\344\223\002.\022,\n\004nam" - + "e\022$projects/*/locations/{location=*}/**\332" - + "A\004name\022\347\001\n\rListRevisions\022).google.cloud." - + "run.v2.ListRevisionsRequest\032*.google.clo" - + "ud.run.v2.ListRevisionsResponse\"\177\202\323\344\223\002:\022" - + "8/v2/{parent=projects/*/locations/*/serv" - + "ices/*}/revisions\212\323\344\223\0020\022.\n\006parent\022$proje" - + "cts/*/locations/{location=*}/**\332A\006parent" - + "\022\360\001\n\016DeleteRevision\022*.google.cloud.run.v" - + "2.DeleteRevisionRequest\032\035.google.longrun" - + "ning.Operation\"\222\001\202\323\344\223\002:*8/v2/{name=proje" - + "cts/*/locations/*/services/*/revisions/*" - + "}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{l" - + "ocation=*}/**\332A\004name\312A\024\n\010Revision\022\010Revis" - + "ion\032F\312A\022run.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformBb\n\027c" - + "om.google.cloud.run.v2B\rRevisionProtoP\001Z" - + "6google.golang.org/genproto/googleapis/c" - + "loud/run/v2;runb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.cloud.run.v2.ConditionProto.getDescriptor(), - com.google.cloud.run.v2.K8sMinProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "ShowDeleted", - }); - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor, - new java.lang.String[] { - "Revisions", "NextPageToken", - }); - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_run_v2_Revision_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_Revision_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "Generation", - "Labels", - "Annotations", - "CreateTime", - "UpdateTime", - "DeleteTime", - "ExpireTime", - "LaunchStage", - "Service", - "Scaling", - "VpcAccess", - "MaxInstanceRequestConcurrency", - "Timeout", - "ServiceAccount", - "Containers", - "Volumes", - "ExecutionEnvironment", - "EncryptionKey", - "Reconciling", - "Conditions", - "ObservedGeneration", - "LogUri", - "Etag", - }); - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.LaunchStageProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.cloud.run.v2.ConditionProto.getDescriptor(); - com.google.cloud.run.v2.K8sMinProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java deleted file mode 100644 index b25c31923964..000000000000 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/revision_template.proto - -package com.google.cloud.run.v2; - -public final class RevisionTemplateProto { - private RevisionTemplateProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/run/v2/revision_template." - + "proto\022\023google.cloud.run.v2\032\031google/api/r" - + "esource.proto\032!google/cloud/run/v2/k8s.m" - + "in.proto\032)google/cloud/run/v2/vendor_set" - + "tings.proto\032\036google/protobuf/duration.pr" - + "oto\"\377\005\n\020RevisionTemplate\0222\n\010revision\030\001 \001" - + "(\tB \372A\035\n\033run.googleapis.com/Revision\022A\n\006" - + "labels\030\002 \003(\01321.google.cloud.run.v2.Revis" - + "ionTemplate.LabelsEntry\022K\n\013annotations\030\003" - + " \003(\01326.google.cloud.run.v2.RevisionTempl" - + "ate.AnnotationsEntry\0225\n\007scaling\030\004 \001(\0132$." - + "google.cloud.run.v2.RevisionScaling\0222\n\nv" - + "pc_access\030\006 \001(\0132\036.google.cloud.run.v2.Vp" - + "cAccess\022*\n\007timeout\030\010 \001(\0132\031.google.protob" - + "uf.Duration\022\027\n\017service_account\030\t \001(\t\0222\n\n" - + "containers\030\n \003(\0132\036.google.cloud.run.v2.C" - + "ontainer\022,\n\007volumes\030\013 \003(\0132\033.google.cloud" - + ".run.v2.Volume\022H\n\025execution_environment\030" - + "\r \001(\0162).google.cloud.run.v2.ExecutionEnv" - + "ironment\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!c" - + "loudkms.googleapis.com/CryptoKey\022(\n max_" - + "instance_request_concurrency\030\017 \001(\005\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001Bj\n\027com.google.cloud.run.v2" - + "B\025RevisionTemplateProtoP\001Z6google.golang" - + ".org/genproto/googleapis/cloud/run/v2;ru" - + "nb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.run.v2.K8sMinProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor, - new java.lang.String[] { - "Revision", - "Labels", - "Annotations", - "Scaling", - "VpcAccess", - "Timeout", - "ServiceAccount", - "Containers", - "Volumes", - "ExecutionEnvironment", - "EncryptionKey", - "MaxInstanceRequestConcurrency", - }); - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.run.v2.K8sMinProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java deleted file mode 100644 index 13250613bb93..000000000000 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/service.proto - -package com.google.cloud.run.v2; - -public final class ServiceProto { - private ServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n!google/cloud/run/v2/service.proto\022\023goo" - + "gle.cloud.run.v2\032\034google/api/annotations" - + ".proto\032\027google/api/client.proto\032\037google/" - + "api/field_behavior.proto\032\035google/api/lau" - + "nch_stage.proto\032\031google/api/resource.pro" - + "to\032\030google/api/routing.proto\032#google/clo" - + "ud/run/v2/condition.proto\032+google/cloud/" - + "run/v2/revision_template.proto\032(google/c" - + "loud/run/v2/traffic_target.proto\032)google" - + "/cloud/run/v2/vendor_settings.proto\032\036goo" - + "gle/iam/v1/iam_policy.proto\032\032google/iam/" - + "v1/policy.proto\032#google/longrunning/oper" - + "ations.proto\032\037google/protobuf/timestamp." - + "proto\"\256\001\n\024CreateServiceRequest\0222\n\006parent" - + "\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.com/Servi" - + "ce\0222\n\007service\030\002 \001(\0132\034.google.cloud.run.v" - + "2.ServiceB\003\340A\002\022\027\n\nservice_id\030\003 \001(\tB\003\340A\002\022" - + "\025\n\rvalidate_only\030\004 \001(\010\"x\n\024UpdateServiceR" - + "equest\0222\n\007service\030\001 \001(\0132\034.google.cloud.r" - + "un.v2.ServiceB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" - + "\010\022\025\n\rallow_missing\030\004 \001(\010\"\206\001\n\023ListService" - + "sRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.go" - + "ogleapis.com/Service\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" - + "\010\"_\n\024ListServicesResponse\022.\n\010services\030\001 " - + "\003(\0132\034.google.cloud.run.v2.Service\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"E\n\021GetServiceRequest\022" - + "0\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.co" - + "m/Service\"m\n\024DeleteServiceRequest\0220\n\004nam" - + "e\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.com/Serv" - + "ice\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" - + "\"\230\013\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" - + "n\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\027\n\ngeneration\030" - + "\004 \001(\003B\003\340A\003\0228\n\006labels\030\005 \003(\0132(.google.clou" - + "d.run.v2.Service.LabelsEntry\022B\n\013annotati" - + "ons\030\006 \003(\0132-.google.cloud.run.v2.Service." - + "AnnotationsEntry\0224\n\013create_time\030\007 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" - + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0224\n\013expire_time\030\n \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007crea" - + "tor\030\013 \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\014 \001(\tB\003\340" - + "A\003\022\016\n\006client\030\r \001(\t\022\026\n\016client_version\030\016 \001" - + "(\t\0224\n\007ingress\030\017 \001(\0162#.google.cloud.run.v" - + "2.IngressTraffic\022-\n\014launch_stage\030\020 \001(\0162\027" - + ".google.api.LaunchStage\022F\n\024binary_author" - + "ization\030\021 \001(\0132(.google.cloud.run.v2.Bina" - + "ryAuthorization\022<\n\010template\030\022 \001(\0132%.goog" - + "le.cloud.run.v2.RevisionTemplateB\003\340A\002\0223\n" - + "\007traffic\030\023 \003(\0132\".google.cloud.run.v2.Tra" - + "fficTarget\022 \n\023observed_generation\030\036 \001(\003B" - + "\003\340A\003\022?\n\022terminal_condition\030\037 \001(\0132\036.googl" - + "e.cloud.run.v2.ConditionB\003\340A\003\0227\n\nconditi" - + "ons\030 \003(\0132\036.google.cloud.run.v2.Conditio" - + "nB\003\340A\003\022B\n\025latest_ready_revision\030! \001(\tB#\340" - + "A\003\372A\035\n\033run.googleapis.com/Revision\022D\n\027la" - + "test_created_revision\030\" \001(\tB#\340A\003\372A\035\n\033run" - + ".googleapis.com/Revision\022G\n\020traffic_stat" - + "uses\030# \003(\0132(.google.cloud.run.v2.Traffic" - + "TargetStatusB\003\340A\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\030\n\013r" - + "econciling\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis" - + ".com/Service\022:projects/{project}/locatio" - + "ns/{location}/services/{service}R\001\0012\267\r\n\010" - + "Services\022\375\001\n\rCreateService\022).google.clou" - + "d.run.v2.CreateServiceRequest\032\035.google.l" - + "ongrunning.Operation\"\241\001\202\323\344\223\0027\",/v2/{pare" - + "nt=projects/*/locations/*}/services:\007ser" - + "vice\212\323\344\223\002-\022+\n\006parent\022!projects/*/locatio" - + "ns/{location=*}\332A\031parent,service,service" - + "_id\312A\022\n\007Service\022\007Service\022\303\001\n\nGetService\022" - + "&.google.cloud.run.v2.GetServiceRequest\032" - + "\034.google.cloud.run.v2.Service\"o\202\323\344\223\002.\022,/" - + "v2/{name=projects/*/locations/*/services" - + "/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/" - + "{location=*}/**\332A\004name\022\325\001\n\014ListServices\022" - + "(.google.cloud.run.v2.ListServicesReques" - + "t\032).google.cloud.run.v2.ListServicesResp" - + "onse\"p\202\323\344\223\002.\022,/v2/{parent=projects/*/loc" - + "ations/*}/services\212\323\344\223\002-\022+\n\006parent\022!proj" - + "ects/*/locations/{location=*}\332A\006parent\022\374" - + "\001\n\rUpdateService\022).google.cloud.run.v2.U" - + "pdateServiceRequest\032\035.google.longrunning" - + ".Operation\"\240\001\202\323\344\223\002?24/v2/{service.name=p" - + "rojects/*/locations/*/services/*}:\007servi" - + "ce\212\323\344\223\0026\0224\n\014service.name\022$projects/*/loc" - + "ations/{location=*}/**\332A\007service\312A\022\n\007Ser" - + "vice\022\007Service\022\340\001\n\rDeleteService\022).google" - + ".cloud.run.v2.DeleteServiceRequest\032\035.goo" - + "gle.longrunning.Operation\"\204\001\202\323\344\223\002.*,/v2/" - + "{name=projects/*/locations/*/services/*}" - + "\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{lo" - + "cation=*}/**\332A\004name\312A\022\n\007Service\022\007Service" - + "\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam" - + "PolicyRequest\032\025.google.iam.v1.Policy\"E\202\323" - + "\344\223\002?\022=/v2/{resource=projects/*/locations" - + "/*/services/*}:getIamPolicy\022\223\001\n\014SetIamPo" - + "licy\022\".google.iam.v1.SetIamPolicyRequest" - + "\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{re" - + "source=projects/*/locations/*/services/*" - + "}:setIamPolicy:\001*\022\271\001\n\022TestIamPermissions" - + "\022(.google.iam.v1.TestIamPermissionsReque" - + "st\032).google.iam.v1.TestIamPermissionsRes" - + "ponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*/" - + "locations/*/services/*}:testIamPermissio" - + "ns:\001*\032F\312A\022run.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformBa\n" - + "\027com.google.cloud.run.v2B\014ServiceProtoP\001" - + "Z6google.golang.org/genproto/googleapis/" - + "cloud/run/v2;runb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.cloud.run.v2.ConditionProto.getDescriptor(), - com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(), - com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor, - new java.lang.String[] { - "Parent", "Service", "ServiceId", "ValidateOnly", - }); - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor, - new java.lang.String[] { - "Service", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "ShowDeleted", - }); - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor, - new java.lang.String[] { - "Services", "NextPageToken", - }); - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_run_v2_Service_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_run_v2_Service_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_descriptor, - new java.lang.String[] { - "Name", - "Description", - "Uid", - "Generation", - "Labels", - "Annotations", - "CreateTime", - "UpdateTime", - "DeleteTime", - "ExpireTime", - "Creator", - "LastModifier", - "Client", - "ClientVersion", - "Ingress", - "LaunchStage", - "BinaryAuthorization", - "Template", - "Traffic", - "ObservedGeneration", - "TerminalCondition", - "Conditions", - "LatestReadyRevision", - "LatestCreatedRevision", - "TrafficStatuses", - "Uri", - "Reconciling", - "Etag", - }); - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.LaunchStageProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.cloud.run.v2.ConditionProto.getDescriptor(); - com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(); - com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java deleted file mode 100644 index b2e1afc52b6e..000000000000 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java +++ /dev/null @@ -1,38 +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 interface TCPSocketActionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TCPSocketAction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Port number to access on the container. Must be in the range 1 to 65535.
-   * 
- * - * int32 port = 1; - * - * @return The port. - */ - int getPort(); -} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java deleted file mode 100644 index fba638e7548e..000000000000 --- a/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java deleted file mode 100644 index 5bd17cb63901..000000000000 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/vendor_settings.proto - -package com.google.cloud.run.v2; - -public final class VendorSettingsProto { - private VendorSettingsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_VpcAccess_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionScaling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/run/v2/vendor_settings.pr" - + "oto\022\023google.cloud.run.v2\032\031google/api/res" - + "ource.proto\"\324\001\n\tVpcAccess\022:\n\tconnector\030\001" - + " \001(\tB\'\372A$\n\"vpcaccess.googleapis.com/Conn" - + "ector\0228\n\006egress\030\002 \001(\0162(.google.cloud.run" - + ".v2.VpcAccess.VpcEgress\"Q\n\tVpcEgress\022\032\n\026" - + "VPC_EGRESS_UNSPECIFIED\020\000\022\017\n\013ALL_TRAFFIC\020" - + "\001\022\027\n\023PRIVATE_RANGES_ONLY\020\002\"a\n\023BinaryAuth" - + "orization\022\025\n\013use_default\030\001 \001(\010H\000\022 \n\030brea" - + "kglass_justification\030\002 \001(\tB\021\n\017binauthz_m" - + "ethod\"I\n\017RevisionScaling\022\032\n\022min_instance" - + "_count\030\001 \001(\005\022\032\n\022max_instance_count\030\002 \001(\005" - + "*\231\001\n\016IngressTraffic\022\037\n\033INGRESS_TRAFFIC_U" - + "NSPECIFIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n" - + "\035INGRESS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGR" - + "ESS_TRAFFIC_INTERNAL_LOAD_BALANCER\020\003*}\n\024" - + "ExecutionEnvironment\022%\n!EXECUTION_ENVIRO" - + "NMENT_UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRON" - + "MENT_GEN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN" - + "2\020\002Bh\n\027com.google.cloud.run.v2B\023VendorSe" - + "ttingsProtoP\001Z6google.golang.org/genprot" - + "o/googleapis/cloud/run/v2;runb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_VpcAccess_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VpcAccess_descriptor, - new java.lang.String[] { - "Connector", "Egress", - }); - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor, - new java.lang.String[] { - "UseDefault", "BreakglassJustification", "BinauthzMethod", - }); - internal_static_google_cloud_run_v2_RevisionScaling_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionScaling_descriptor, - new java.lang.String[] { - "MinInstanceCount", "MaxInstanceCount", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java new file mode 100644 index 000000000000..621b60bdfef2 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java @@ -0,0 +1,737 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.stub.ExecutionsStub; +import com.google.cloud.run.v2.stub.ExecutionsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Cloud Run Execution Control Plane API. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+ *   ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]");
+ *   Execution response = executionsClient.getExecution(name);
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ExecutionsSettings executionsSettings =
+ *     ExecutionsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ExecutionsSettings executionsSettings =
+ *     ExecutionsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings);
+ * }
+ * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ExecutionsSettings executionsSettings = ExecutionsSettings.newHttpJsonBuilder().build();
+ * ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings);
+ * }
+ * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]");
+   *   Execution response = executionsClient.getExecution(name);
+   * }
+   * }
+ * + * @param name Required. The full name of the Execution. Format: + * projects/{project}/locations/{location}/jobs/{job}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Execution getExecution(ExecutionName name) { + GetExecutionRequest request = + GetExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getExecution(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about an Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   String name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString();
+   *   Execution response = executionsClient.getExecution(name);
+   * }
+   * }
+ * + * @param name Required. The full name of the Execution. Format: + * projects/{project}/locations/{location}/jobs/{job}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Execution getExecution(String name) { + GetExecutionRequest request = GetExecutionRequest.newBuilder().setName(name).build(); + return getExecution(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about an Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   GetExecutionRequest request =
+   *       GetExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString())
+   *           .build();
+   *   Execution response = executionsClient.getExecution(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Execution getExecution(GetExecutionRequest request) { + return getExecutionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about an Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   GetExecutionRequest request =
+   *       GetExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString())
+   *           .build();
+   *   ApiFuture future = executionsClient.getExecutionCallable().futureCall(request);
+   *   // Do something.
+   *   Execution response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getExecutionCallable() { + return stub.getExecutionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions from a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   for (Execution element : executionsClient.listExecutions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The Execution from which the Executions should be listed. To list all + * Executions across Jobs, use "-" instead of Job name. Format: + * projects/{project}/locations/{location}/jobs/{job} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExecutionsPagedResponse listExecutions(JobName parent) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExecutions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions from a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   String parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
+   *   for (Execution element : executionsClient.listExecutions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The Execution from which the Executions should be listed. To list all + * Executions across Jobs, use "-" instead of Job name. Format: + * projects/{project}/locations/{location}/jobs/{job} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExecutionsPagedResponse listExecutions(String parent) { + ListExecutionsRequest request = ListExecutionsRequest.newBuilder().setParent(parent).build(); + return listExecutions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions from a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   ListExecutionsRequest request =
+   *       ListExecutionsRequest.newBuilder()
+   *           .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   for (Execution element : executionsClient.listExecutions(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest request) { + return listExecutionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions from a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   ListExecutionsRequest request =
+   *       ListExecutionsRequest.newBuilder()
+   *           .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   ApiFuture future =
+   *       executionsClient.listExecutionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Execution element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExecutionsPagedCallable() { + return stub.listExecutionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Executions from a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   ListExecutionsRequest request =
+   *       ListExecutionsRequest.newBuilder()
+   *           .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   while (true) {
+   *     ListExecutionsResponse response = executionsClient.listExecutionsCallable().call(request);
+   *     for (Execution element : response.getExecutionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExecutionsCallable() { + return stub.listExecutionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]");
+   *   Execution response = executionsClient.deleteExecutionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Execution to delete. Format: + * projects/{project}/locations/{location}/jobs/{job}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteExecutionAsync(ExecutionName name) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteExecutionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   String name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString();
+   *   Execution response = executionsClient.deleteExecutionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Execution to delete. Format: + * projects/{project}/locations/{location}/jobs/{job}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteExecutionAsync(String name) { + DeleteExecutionRequest request = DeleteExecutionRequest.newBuilder().setName(name).build(); + return deleteExecutionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   DeleteExecutionRequest request =
+   *       DeleteExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   Execution response = executionsClient.deleteExecutionAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteExecutionAsync( + DeleteExecutionRequest request) { + return deleteExecutionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   DeleteExecutionRequest request =
+   *       DeleteExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       executionsClient.deleteExecutionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Execution response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteExecutionOperationCallable() { + return stub.deleteExecutionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Execution. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+   *   DeleteExecutionRequest request =
+   *       DeleteExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future = executionsClient.deleteExecutionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteExecutionCallable() { + return stub.deleteExecutionCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListExecutionsPagedResponse + extends AbstractPagedListResponse< + ListExecutionsRequest, + ListExecutionsResponse, + Execution, + ListExecutionsPage, + ListExecutionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExecutionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListExecutionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListExecutionsPagedResponse(ListExecutionsPage page) { + super(page, ListExecutionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListExecutionsPage + extends AbstractPage< + ListExecutionsRequest, ListExecutionsResponse, Execution, ListExecutionsPage> { + + private ListExecutionsPage( + PageContext context, + ListExecutionsResponse response) { + super(context, response); + } + + private static ListExecutionsPage createEmptyPage() { + return new ListExecutionsPage(null, null); + } + + @Override + protected ListExecutionsPage createPage( + PageContext context, + ListExecutionsResponse response) { + return new ListExecutionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListExecutionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListExecutionsRequest, + ListExecutionsResponse, + Execution, + ListExecutionsPage, + ListExecutionsFixedSizeCollection> { + + private ListExecutionsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListExecutionsFixedSizeCollection createEmptyCollection() { + return new ListExecutionsFixedSizeCollection(null, 0); + } + + @Override + protected ListExecutionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExecutionsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java new file mode 100644 index 000000000000..c15f4ed875a1 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java @@ -0,0 +1,242 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import static com.google.cloud.run.v2.ExecutionsClient.ListExecutionsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.run.v2.stub.ExecutionsStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ExecutionsClient}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ExecutionsSettings.Builder executionsSettingsBuilder = ExecutionsSettings.newBuilder();
+ * executionsSettingsBuilder
+ *     .getExecutionSettings()
+ *     .setRetrySettings(
+ *         executionsSettingsBuilder.getExecutionSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ExecutionsSettings executionsSettings = executionsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ExecutionsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getExecution. */ + public UnaryCallSettings getExecutionSettings() { + return ((ExecutionsStubSettings) getStubSettings()).getExecutionSettings(); + } + + /** Returns the object with the settings used for calls to listExecutions. */ + public PagedCallSettings< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return ((ExecutionsStubSettings) getStubSettings()).listExecutionsSettings(); + } + + /** Returns the object with the settings used for calls to deleteExecution. */ + public UnaryCallSettings deleteExecutionSettings() { + return ((ExecutionsStubSettings) getStubSettings()).deleteExecutionSettings(); + } + + /** Returns the object with the settings used for calls to deleteExecution. */ + public OperationCallSettings + deleteExecutionOperationSettings() { + return ((ExecutionsStubSettings) getStubSettings()).deleteExecutionOperationSettings(); + } + + public static final ExecutionsSettings create(ExecutionsStubSettings stub) throws IOException { + return new ExecutionsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ExecutionsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ExecutionsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ExecutionsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ExecutionsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ExecutionsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ExecutionsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ExecutionsStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ExecutionsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ExecutionsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ExecutionsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ExecutionsStubSettings.newBuilder(clientContext)); + } + + protected Builder(ExecutionsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ExecutionsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ExecutionsStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(ExecutionsStubSettings.newHttpJsonBuilder()); + } + + public ExecutionsStubSettings.Builder getStubSettingsBuilder() { + return ((ExecutionsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getExecution. */ + public UnaryCallSettings.Builder getExecutionSettings() { + return getStubSettingsBuilder().getExecutionSettings(); + } + + /** Returns the builder for the settings used for calls to listExecutions. */ + public PagedCallSettings.Builder< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return getStubSettingsBuilder().listExecutionsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExecution. */ + public UnaryCallSettings.Builder deleteExecutionSettings() { + return getStubSettingsBuilder().deleteExecutionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExecution. */ + public OperationCallSettings.Builder + deleteExecutionOperationSettings() { + return getStubSettingsBuilder().deleteExecutionOperationSettings(); + } + + @Override + public ExecutionsSettings build() throws IOException { + return new ExecutionsSettings(this); + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java new file mode 100644 index 000000000000..3b39d826d2ae --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java @@ -0,0 +1,1317 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.stub.JobsStub; +import com.google.cloud.run.v2.stub.JobsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Cloud Run Job Control Plane API. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (JobsClient jobsClient = JobsClient.create()) {
+ *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ *   Job response = jobsClient.getJob(name);
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * JobsSettings jobsSettings =
+ *     JobsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * JobsClient jobsClient = JobsClient.create(jobsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * JobsSettings jobsSettings = JobsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * JobsClient jobsClient = JobsClient.create(jobsSettings);
+ * }
+ * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * JobsSettings jobsSettings = JobsSettings.newHttpJsonBuilder().build();
+ * JobsClient jobsClient = JobsClient.create(jobsSettings);
+ * }
+ * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Job job = Job.newBuilder().build();
+   *   String jobId = "jobId101296568";
+   *   Job response = jobsClient.createJobAsync(parent, job, jobId).get();
+   * }
+   * }
+ * + * @param parent Required. The location and project in which this Job should be created. Format: + * projects/{project}/locations/{location} + * @param job Required. The Job instance to create. + * @param jobId Required. The unique identifier for the Job. The name of the job becomes + * {parent}/jobs/{job_id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createJobAsync( + LocationName parent, Job job, String jobId) { + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setJob(job) + .setJobId(jobId) + .build(); + return createJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Job job = Job.newBuilder().build();
+   *   String jobId = "jobId101296568";
+   *   Job response = jobsClient.createJobAsync(parent, job, jobId).get();
+   * }
+   * }
+ * + * @param parent Required. The location and project in which this Job should be created. Format: + * projects/{project}/locations/{location} + * @param job Required. The Job instance to create. + * @param jobId Required. The unique identifier for the Job. The name of the job becomes + * {parent}/jobs/{job_id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createJobAsync(String parent, Job job, String jobId) { + CreateJobRequest request = + CreateJobRequest.newBuilder().setParent(parent).setJob(job).setJobId(jobId).build(); + return createJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   CreateJobRequest request =
+   *       CreateJobRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setJob(Job.newBuilder().build())
+   *           .setJobId("jobId101296568")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   Job response = jobsClient.createJobAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createJobAsync(CreateJobRequest request) { + return createJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   CreateJobRequest request =
+   *       CreateJobRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setJob(Job.newBuilder().build())
+   *           .setJobId("jobId101296568")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       jobsClient.createJobOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Job response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable createJobOperationCallable() { + return stub.createJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   CreateJobRequest request =
+   *       CreateJobRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setJob(Job.newBuilder().build())
+   *           .setJobId("jobId101296568")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future = jobsClient.createJobCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createJobCallable() { + return stub.createJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Job response = jobsClient.getJob(name);
+   * }
+   * }
+ * + * @param name Required. The full name of the Job. Format: + * projects/{project}/locations/{location}/jobs/{job} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(JobName name) { + GetJobRequest request = + GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
+   *   Job response = jobsClient.getJob(name);
+   * }
+   * }
+ * + * @param name Required. The full name of the Job. Format: + * projects/{project}/locations/{location}/jobs/{job} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(String name) { + GetJobRequest request = GetJobRequest.newBuilder().setName(name).build(); + return getJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   GetJobRequest request =
+   *       GetJobRequest.newBuilder()
+   *           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .build();
+   *   Job response = jobsClient.getJob(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Job getJob(GetJobRequest request) { + return getJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   GetJobRequest request =
+   *       GetJobRequest.newBuilder()
+   *           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .build();
+   *   ApiFuture future = jobsClient.getJobCallable().futureCall(request);
+   *   // Do something.
+   *   Job response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getJobCallable() { + return stub.getJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Jobs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Job element : jobsClient.listJobs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The location and project to list resources on. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(LocationName parent) { + ListJobsRequest request = + ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Jobs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Job element : jobsClient.listJobs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The location and project to list resources on. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(String parent) { + ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent).build(); + return listJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Jobs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   ListJobsRequest request =
+   *       ListJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   for (Job element : jobsClient.listJobs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobsPagedResponse listJobs(ListJobsRequest request) { + return listJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Jobs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   ListJobsRequest request =
+   *       ListJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   ApiFuture future = jobsClient.listJobsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Job element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listJobsPagedCallable() { + return stub.listJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Jobs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   ListJobsRequest request =
+   *       ListJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   while (true) {
+   *     ListJobsResponse response = jobsClient.listJobsCallable().call(request);
+   *     for (Job element : response.getJobsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listJobsCallable() { + return stub.listJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   Job job = Job.newBuilder().build();
+   *   Job response = jobsClient.updateJobAsync(job).get();
+   * }
+   * }
+ * + * @param job Required. The Job to be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateJobAsync(Job job) { + UpdateJobRequest request = UpdateJobRequest.newBuilder().setJob(job).build(); + return updateJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   UpdateJobRequest request =
+   *       UpdateJobRequest.newBuilder()
+   *           .setJob(Job.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   Job response = jobsClient.updateJobAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateJobAsync(UpdateJobRequest request) { + return updateJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   UpdateJobRequest request =
+   *       UpdateJobRequest.newBuilder()
+   *           .setJob(Job.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   OperationFuture future =
+   *       jobsClient.updateJobOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Job response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable updateJobOperationCallable() { + return stub.updateJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   UpdateJobRequest request =
+   *       UpdateJobRequest.newBuilder()
+   *           .setJob(Job.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   ApiFuture future = jobsClient.updateJobCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateJobCallable() { + return stub.updateJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Job response = jobsClient.deleteJobAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The full name of the Job. Format: + * projects/{project}/locations/{location}/jobs/{job} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteJobAsync(JobName name) { + DeleteJobRequest request = + DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
+   *   Job response = jobsClient.deleteJobAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The full name of the Job. Format: + * projects/{project}/locations/{location}/jobs/{job} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteJobAsync(String name) { + DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name).build(); + return deleteJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   DeleteJobRequest request =
+   *       DeleteJobRequest.newBuilder()
+   *           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   Job response = jobsClient.deleteJobAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteJobAsync(DeleteJobRequest request) { + return deleteJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   DeleteJobRequest request =
+   *       DeleteJobRequest.newBuilder()
+   *           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       jobsClient.deleteJobOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Job response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable deleteJobOperationCallable() { + return stub.deleteJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   DeleteJobRequest request =
+   *       DeleteJobRequest.newBuilder()
+   *           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future = jobsClient.deleteJobCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteJobCallable() { + return stub.deleteJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Triggers creation of a new Execution of this Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+   *   Execution response = jobsClient.runJobAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The full name of the Job. Format: + * projects/{project}/locations/{location}/jobs/{job} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture runJobAsync(JobName name) { + RunJobRequest request = + RunJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return runJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Triggers creation of a new Execution of this Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
+   *   Execution response = jobsClient.runJobAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The full name of the Job. Format: + * projects/{project}/locations/{location}/jobs/{job} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture runJobAsync(String name) { + RunJobRequest request = RunJobRequest.newBuilder().setName(name).build(); + return runJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Triggers creation of a new Execution of this Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   RunJobRequest request =
+   *       RunJobRequest.newBuilder()
+   *           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   Execution response = jobsClient.runJobAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture runJobAsync(RunJobRequest request) { + return runJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Triggers creation of a new Execution of this Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   RunJobRequest request =
+   *       RunJobRequest.newBuilder()
+   *           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       jobsClient.runJobOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Execution response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable runJobOperationCallable() { + return stub.runJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Triggers creation of a new Execution of this Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   RunJobRequest request =
+   *       RunJobRequest.newBuilder()
+   *           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future = jobsClient.runJobCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable runJobCallable() { + return stub.runJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the IAM Access Control policy currently in effect for the given Job. This result does not + * include any inherited policies. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = jobsClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the IAM Access Control policy currently in effect for the given Job. This result does not + * include any inherited policies. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = jobsClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM Access control policy for the specified Job. Overwrites any existing policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = jobsClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM Access control policy for the specified Job. Overwrites any existing policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = jobsClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified Project. + * + *

There are no permissions required for making this API call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = jobsClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified Project. + * + *

There are no permissions required for making this API call. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (JobsClient jobsClient = JobsClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       jobsClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListJobsPagedResponse + extends AbstractPagedListResponse< + ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListJobsPagedResponse(ListJobsPage page) { + super(page, ListJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListJobsPage + extends AbstractPage { + + private ListJobsPage( + PageContext context, ListJobsResponse response) { + super(context, response); + } + + private static ListJobsPage createEmptyPage() { + return new ListJobsPage(null, null); + } + + @Override + protected ListJobsPage createPage( + PageContext context, ListJobsResponse response) { + return new ListJobsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListJobsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { + + private ListJobsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListJobsFixedSizeCollection createEmptyCollection() { + return new ListJobsFixedSizeCollection(null, 0); + } + + @Override + protected ListJobsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListJobsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java new file mode 100644 index 000000000000..e6ead91c5d31 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java @@ -0,0 +1,336 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import static com.google.cloud.run.v2.JobsClient.ListJobsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.run.v2.stub.JobsStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link JobsClient}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * JobsSettings.Builder jobsSettingsBuilder = JobsSettings.newBuilder();
+ * jobsSettingsBuilder
+ *     .getJobSettings()
+ *     .setRetrySettings(
+ *         jobsSettingsBuilder.getJobSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * JobsSettings jobsSettings = jobsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class JobsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createJob. */ + public UnaryCallSettings createJobSettings() { + return ((JobsStubSettings) getStubSettings()).createJobSettings(); + } + + /** Returns the object with the settings used for calls to createJob. */ + public OperationCallSettings createJobOperationSettings() { + return ((JobsStubSettings) getStubSettings()).createJobOperationSettings(); + } + + /** Returns the object with the settings used for calls to getJob. */ + public UnaryCallSettings getJobSettings() { + return ((JobsStubSettings) getStubSettings()).getJobSettings(); + } + + /** Returns the object with the settings used for calls to listJobs. */ + public PagedCallSettings + listJobsSettings() { + return ((JobsStubSettings) getStubSettings()).listJobsSettings(); + } + + /** Returns the object with the settings used for calls to updateJob. */ + public UnaryCallSettings updateJobSettings() { + return ((JobsStubSettings) getStubSettings()).updateJobSettings(); + } + + /** Returns the object with the settings used for calls to updateJob. */ + public OperationCallSettings updateJobOperationSettings() { + return ((JobsStubSettings) getStubSettings()).updateJobOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteJob. */ + public UnaryCallSettings deleteJobSettings() { + return ((JobsStubSettings) getStubSettings()).deleteJobSettings(); + } + + /** Returns the object with the settings used for calls to deleteJob. */ + public OperationCallSettings deleteJobOperationSettings() { + return ((JobsStubSettings) getStubSettings()).deleteJobOperationSettings(); + } + + /** Returns the object with the settings used for calls to runJob. */ + public UnaryCallSettings runJobSettings() { + return ((JobsStubSettings) getStubSettings()).runJobSettings(); + } + + /** Returns the object with the settings used for calls to runJob. */ + public OperationCallSettings runJobOperationSettings() { + return ((JobsStubSettings) getStubSettings()).runJobOperationSettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((JobsStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((JobsStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((JobsStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final JobsSettings create(JobsStubSettings stub) throws IOException { + return new JobsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return JobsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return JobsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return JobsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return JobsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return JobsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return JobsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return JobsStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return JobsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected JobsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for JobsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(JobsStubSettings.newBuilder(clientContext)); + } + + protected Builder(JobsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(JobsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(JobsStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(JobsStubSettings.newHttpJsonBuilder()); + } + + public JobsStubSettings.Builder getStubSettingsBuilder() { + return ((JobsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createJob. */ + public UnaryCallSettings.Builder createJobSettings() { + return getStubSettingsBuilder().createJobSettings(); + } + + /** Returns the builder for the settings used for calls to createJob. */ + public OperationCallSettings.Builder createJobOperationSettings() { + return getStubSettingsBuilder().createJobOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getJob. */ + public UnaryCallSettings.Builder getJobSettings() { + return getStubSettingsBuilder().getJobSettings(); + } + + /** Returns the builder for the settings used for calls to listJobs. */ + public PagedCallSettings.Builder + listJobsSettings() { + return getStubSettingsBuilder().listJobsSettings(); + } + + /** Returns the builder for the settings used for calls to updateJob. */ + public UnaryCallSettings.Builder updateJobSettings() { + return getStubSettingsBuilder().updateJobSettings(); + } + + /** Returns the builder for the settings used for calls to updateJob. */ + public OperationCallSettings.Builder updateJobOperationSettings() { + return getStubSettingsBuilder().updateJobOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteJob. */ + public UnaryCallSettings.Builder deleteJobSettings() { + return getStubSettingsBuilder().deleteJobSettings(); + } + + /** Returns the builder for the settings used for calls to deleteJob. */ + public OperationCallSettings.Builder deleteJobOperationSettings() { + return getStubSettingsBuilder().deleteJobOperationSettings(); + } + + /** Returns the builder for the settings used for calls to runJob. */ + public UnaryCallSettings.Builder runJobSettings() { + return getStubSettingsBuilder().runJobSettings(); + } + + /** Returns the builder for the settings used for calls to runJob. */ + public OperationCallSettings.Builder + runJobOperationSettings() { + return getStubSettingsBuilder().runJobOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public JobsSettings build() throws IOException { + return new JobsSettings(this); + } + } +} diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java similarity index 97% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java index 39a62d525551..bc172a37fa1a 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java @@ -119,11 +119,7 @@ * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * RevisionsSettings revisionsSettings = - * RevisionsSettings.newBuilder() - * .setTransportChannelProvider( - * RevisionsSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * RevisionsSettings revisionsSettings = RevisionsSettings.newHttpJsonBuilder().build(); * RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); * } * @@ -317,7 +313,7 @@ public final UnaryCallable getRevisionCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Revisions from a given Service, or from a given location. + * Lists Revisions from a given Service, or from a given location. * *

Sample code: * @@ -350,7 +346,7 @@ public final ListRevisionsPagedResponse listRevisions(ServiceName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Revisions from a given Service, or from a given location. + * Lists Revisions from a given Service, or from a given location. * *

Sample code: * @@ -380,7 +376,7 @@ public final ListRevisionsPagedResponse listRevisions(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Revisions from a given Service, or from a given location. + * Lists Revisions from a given Service, or from a given location. * *

Sample code: * @@ -413,7 +409,7 @@ public final ListRevisionsPagedResponse listRevisions(ListRevisionsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Revisions from a given Service, or from a given location. + * Lists Revisions from a given Service, or from a given location. * *

Sample code: * @@ -446,7 +442,7 @@ public final ListRevisionsPagedResponse listRevisions(ListRevisionsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Revisions from a given Service, or from a given location. + * Lists Revisions from a given Service, or from a given location. * *

Sample code: * @@ -485,7 +481,7 @@ public final UnaryCallable listRevi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a Revision. + * Deletes a Revision. * *

Sample code: * @@ -513,7 +509,7 @@ public final OperationFuture deleteRevisionAsync(RevisionNam // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a Revision. + * Deletes a Revision. * *

Sample code: * @@ -541,7 +537,7 @@ public final OperationFuture deleteRevisionAsync(String name // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a Revision. + * Deletes a Revision. * *

Sample code: * @@ -573,7 +569,7 @@ public final OperationFuture deleteRevisionAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a Revision. + * Deletes a Revision. * *

Sample code: * @@ -605,7 +601,7 @@ public final OperationFuture deleteRevisionAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Delete a Revision. + * Deletes a Revision. * *

Sample code: * diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java similarity index 99% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java index dbd1ffd7778e..c4c945574b84 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.run.v2.stub.RevisionsStubSettings; diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java similarity index 98% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java index 29652a3ba603..9ecd1a1bc37f 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java @@ -124,11 +124,7 @@ * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * ServicesSettings servicesSettings = - * ServicesSettings.newBuilder() - * .setTransportChannelProvider( - * ServicesSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * ServicesSettings servicesSettings = ServicesSettings.newHttpJsonBuilder().build(); * ServicesClient servicesClient = ServicesClient.create(servicesSettings); * } * @@ -227,8 +223,9 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * } * - * @param parent The location and project in which this service should be created. Format: - * projects/{project}/locations/{location} Only lowercase characters, digits, and hyphens. + * @param parent Required. The location and project in which this service should be created. + * Format: projects/{project}/locations/{location} Only lowercase characters, digits, and + * hyphens. * @param service Required. The Service instance to create. * @param serviceId Required. The unique identifier for the Service. It must begin with letter, * and may not end with hyphen; must contain fewer than 50 characters. The name of the service @@ -266,8 +263,9 @@ public final OperationFuture createServiceAsync( * } * } * - * @param parent The location and project in which this service should be created. Format: - * projects/{project}/locations/{location} Only lowercase characters, digits, and hyphens. + * @param parent Required. The location and project in which this service should be created. + * Format: projects/{project}/locations/{location} Only lowercase characters, digits, and + * hyphens. * @param service Required. The Service instance to create. * @param serviceId Required. The unique identifier for the Service. It must begin with letter, * and may not end with hyphen; must contain fewer than 50 characters. The name of the service @@ -490,7 +488,7 @@ public final UnaryCallable getServiceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Services. + * Lists Services. * *

Sample code: * @@ -523,7 +521,7 @@ public final ListServicesPagedResponse listServices(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Services. + * Lists Services. * *

Sample code: * @@ -553,7 +551,7 @@ public final ListServicesPagedResponse listServices(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Services. + * Lists Services. * *

Sample code: * @@ -586,7 +584,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Services. + * Lists Services. * *

Sample code: * @@ -619,7 +617,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Services. + * Lists Services. * *

Sample code: * @@ -924,7 +922,7 @@ public final UnaryCallable deleteServiceCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get the IAM Access Control policy currently in effect for the given Cloud Run Service. This + * Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This * result does not include any inherited policies. * *

Sample code: @@ -954,7 +952,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get the IAM Access Control policy currently in effect for the given Cloud Run Service. This + * Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This * result does not include any inherited policies. * *

Sample code: diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java similarity index 99% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java index b2c503f16b9d..ca7c4c27b855 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.run.v2.stub.ServicesStubSettings; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java new file mode 100644 index 000000000000..afe232919c85 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java @@ -0,0 +1,550 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.stub.TasksStub; +import com.google.cloud.run.v2.stub.TasksStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Cloud Run Task Control Plane API. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TasksClient tasksClient = TasksClient.create()) {
+ *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]");
+ *   Task response = tasksClient.getTask(name);
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TasksSettings tasksSettings =
+ *     TasksSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TasksClient tasksClient = TasksClient.create(tasksSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TasksSettings tasksSettings = TasksSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TasksClient tasksClient = TasksClient.create(tasksSettings);
+ * }
+ * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TasksSettings tasksSettings = TasksSettings.newHttpJsonBuilder().build();
+ * TasksClient tasksClient = TasksClient.create(tasksSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class TasksClient implements BackgroundResource { + private final TasksSettings settings; + private final TasksStub stub; + + /** Constructs an instance of TasksClient with default settings. */ + public static final TasksClient create() throws IOException { + return create(TasksSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TasksClient, using the given settings. The channels are created based + * on the settings passed in, or defaults for any settings that are not set. + */ + public static final TasksClient create(TasksSettings settings) throws IOException { + return new TasksClient(settings); + } + + /** + * Constructs an instance of TasksClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(TasksSettings). + */ + public static final TasksClient create(TasksStub stub) { + return new TasksClient(stub); + } + + /** + * Constructs an instance of TasksClient, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected TasksClient(TasksSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TasksStubSettings) settings.getStubSettings()).createStub(); + } + + protected TasksClient(TasksStub stub) { + this.settings = null; + this.stub = stub; + } + + public final TasksSettings getSettings() { + return settings; + } + + public TasksStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a Task. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TasksClient tasksClient = TasksClient.create()) {
+   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]");
+   *   Task response = tasksClient.getTask(name);
+   * }
+   * }
+ * + * @param name Required. The full name of the Task. Format: + * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Task getTask(TaskName name) { + GetTaskRequest request = + GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTask(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a Task. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TasksClient tasksClient = TasksClient.create()) {
+   *   String name =
+   *       TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]").toString();
+   *   Task response = tasksClient.getTask(name);
+   * }
+   * }
+ * + * @param name Required. The full name of the Task. Format: + * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Task getTask(String name) { + GetTaskRequest request = GetTaskRequest.newBuilder().setName(name).build(); + return getTask(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a Task. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TasksClient tasksClient = TasksClient.create()) {
+   *   GetTaskRequest request =
+   *       GetTaskRequest.newBuilder()
+   *           .setName(
+   *               TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]")
+   *                   .toString())
+   *           .build();
+   *   Task response = tasksClient.getTask(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Task getTask(GetTaskRequest request) { + return getTaskCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a Task. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TasksClient tasksClient = TasksClient.create()) {
+   *   GetTaskRequest request =
+   *       GetTaskRequest.newBuilder()
+   *           .setName(
+   *               TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = tasksClient.getTaskCallable().futureCall(request);
+   *   // Do something.
+   *   Task response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getTaskCallable() { + return stub.getTaskCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Tasks from an Execution of a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TasksClient tasksClient = TasksClient.create()) {
+   *   ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]");
+   *   for (Task element : tasksClient.listTasks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The Execution from which the Tasks should be listed. To list all Tasks + * across Executions of a Job, use "-" instead of Execution name. To list all Tasks across + * Jobs, use "-" instead of Job name. Format: + * projects/{project}/locations/{location}/jobs/{job}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTasksPagedResponse listTasks(ExecutionName parent) { + ListTasksRequest request = + ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listTasks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Tasks from an Execution of a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TasksClient tasksClient = TasksClient.create()) {
+   *   String parent =
+   *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString();
+   *   for (Task element : tasksClient.listTasks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The Execution from which the Tasks should be listed. To list all Tasks + * across Executions of a Job, use "-" instead of Execution name. To list all Tasks across + * Jobs, use "-" instead of Job name. Format: + * projects/{project}/locations/{location}/jobs/{job}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTasksPagedResponse listTasks(String parent) { + ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent).build(); + return listTasks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Tasks from an Execution of a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TasksClient tasksClient = TasksClient.create()) {
+   *   ListTasksRequest request =
+   *       ListTasksRequest.newBuilder()
+   *           .setParent(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   for (Task element : tasksClient.listTasks(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTasksPagedResponse listTasks(ListTasksRequest request) { + return listTasksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Tasks from an Execution of a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TasksClient tasksClient = TasksClient.create()) {
+   *   ListTasksRequest request =
+   *       ListTasksRequest.newBuilder()
+   *           .setParent(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   ApiFuture future = tasksClient.listTasksPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Task element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listTasksPagedCallable() { + return stub.listTasksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Tasks from an Execution of a Job. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TasksClient tasksClient = TasksClient.create()) {
+   *   ListTasksRequest request =
+   *       ListTasksRequest.newBuilder()
+   *           .setParent(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   while (true) {
+   *     ListTasksResponse response = tasksClient.listTasksCallable().call(request);
+   *     for (Task element : response.getTasksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listTasksCallable() { + return stub.listTasksCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListTasksPagedResponse + extends AbstractPagedListResponse< + ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListTasksPagedResponse(ListTasksPage page) { + super(page, ListTasksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTasksPage + extends AbstractPage { + + private ListTasksPage( + PageContext context, + ListTasksResponse response) { + super(context, response); + } + + private static ListTasksPage createEmptyPage() { + return new ListTasksPage(null, null); + } + + @Override + protected ListTasksPage createPage( + PageContext context, + ListTasksResponse response) { + return new ListTasksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTasksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { + + private ListTasksFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTasksFixedSizeCollection createEmptyCollection() { + return new ListTasksFixedSizeCollection(null, 0); + } + + @Override + protected ListTasksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTasksFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java new file mode 100644 index 000000000000..95b1196aecd9 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java @@ -0,0 +1,216 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import static com.google.cloud.run.v2.TasksClient.ListTasksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.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.TasksStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TasksClient}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TasksSettings.Builder tasksSettingsBuilder = TasksSettings.newBuilder();
+ * tasksSettingsBuilder
+ *     .getTaskSettings()
+ *     .setRetrySettings(
+ *         tasksSettingsBuilder.getTaskSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TasksSettings tasksSettings = tasksSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class TasksSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getTask. */ + public UnaryCallSettings getTaskSettings() { + return ((TasksStubSettings) getStubSettings()).getTaskSettings(); + } + + /** Returns the object with the settings used for calls to listTasks. */ + public PagedCallSettings + listTasksSettings() { + return ((TasksStubSettings) getStubSettings()).listTasksSettings(); + } + + public static final TasksSettings create(TasksStubSettings stub) throws IOException { + return new TasksSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return TasksStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return TasksStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return TasksStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return TasksStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return TasksStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TasksStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return TasksStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TasksStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TasksSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TasksSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(TasksStubSettings.newBuilder(clientContext)); + } + + protected Builder(TasksSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(TasksStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(TasksStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(TasksStubSettings.newHttpJsonBuilder()); + } + + public TasksStubSettings.Builder getStubSettingsBuilder() { + return ((TasksStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getTask. */ + public UnaryCallSettings.Builder getTaskSettings() { + return getStubSettingsBuilder().getTaskSettings(); + } + + /** Returns the builder for the settings used for calls to listTasks. */ + public PagedCallSettings.Builder + listTasksSettings() { + return getStubSettingsBuilder().listTasksSettings(); + } + + @Override + public TasksSettings build() throws IOException { + return new TasksSettings(this); + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json new file mode 100644 index 000000000000..77a417f411b8 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json @@ -0,0 +1,129 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.run.v2", + "libraryPackage": "com.google.cloud.run.v2", + "services": { + "Executions": { + "clients": { + "grpc": { + "libraryClient": "ExecutionsClient", + "rpcs": { + "DeleteExecution": { + "methods": ["deleteExecutionAsync", "deleteExecutionAsync", "deleteExecutionAsync", "deleteExecutionOperationCallable", "deleteExecutionCallable"] + }, + "GetExecution": { + "methods": ["getExecution", "getExecution", "getExecution", "getExecutionCallable"] + }, + "ListExecutions": { + "methods": ["listExecutions", "listExecutions", "listExecutions", "listExecutionsPagedCallable", "listExecutionsCallable"] + } + } + } + } + }, + "Jobs": { + "clients": { + "grpc": { + "libraryClient": "JobsClient", + "rpcs": { + "CreateJob": { + "methods": ["createJobAsync", "createJobAsync", "createJobAsync", "createJobOperationCallable", "createJobCallable"] + }, + "DeleteJob": { + "methods": ["deleteJobAsync", "deleteJobAsync", "deleteJobAsync", "deleteJobOperationCallable", "deleteJobCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetJob": { + "methods": ["getJob", "getJob", "getJob", "getJobCallable"] + }, + "ListJobs": { + "methods": ["listJobs", "listJobs", "listJobs", "listJobsPagedCallable", "listJobsCallable"] + }, + "RunJob": { + "methods": ["runJobAsync", "runJobAsync", "runJobAsync", "runJobOperationCallable", "runJobCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateJob": { + "methods": ["updateJobAsync", "updateJobAsync", "updateJobOperationCallable", "updateJobCallable"] + } + } + } + } + }, + "Revisions": { + "clients": { + "grpc": { + "libraryClient": "RevisionsClient", + "rpcs": { + "DeleteRevision": { + "methods": ["deleteRevisionAsync", "deleteRevisionAsync", "deleteRevisionAsync", "deleteRevisionOperationCallable", "deleteRevisionCallable"] + }, + "GetRevision": { + "methods": ["getRevision", "getRevision", "getRevision", "getRevisionCallable"] + }, + "ListRevisions": { + "methods": ["listRevisions", "listRevisions", "listRevisions", "listRevisionsPagedCallable", "listRevisionsCallable"] + } + } + } + } + }, + "Services": { + "clients": { + "grpc": { + "libraryClient": "ServicesClient", + "rpcs": { + "CreateService": { + "methods": ["createServiceAsync", "createServiceAsync", "createServiceAsync", "createServiceOperationCallable", "createServiceCallable"] + }, + "DeleteService": { + "methods": ["deleteServiceAsync", "deleteServiceAsync", "deleteServiceAsync", "deleteServiceOperationCallable", "deleteServiceCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetService": { + "methods": ["getService", "getService", "getService", "getServiceCallable"] + }, + "ListServices": { + "methods": ["listServices", "listServices", "listServices", "listServicesPagedCallable", "listServicesCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateService": { + "methods": ["updateServiceAsync", "updateServiceAsync", "updateServiceOperationCallable", "updateServiceCallable"] + } + } + } + } + }, + "Tasks": { + "clients": { + "grpc": { + "libraryClient": "TasksClient", + "rpcs": { + "GetTask": { + "methods": ["getTask", "getTask", "getTask", "getTaskCallable"] + }, + "ListTasks": { + "methods": ["listTasks", "listTasks", "listTasks", "listTasksPagedCallable", "listTasksCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java similarity index 50% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java index 0e79f8677112..f7e5cb3862c4 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java @@ -19,6 +19,42 @@ * *

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

======================= ExecutionsClient ======================= + * + *

Service Description: Cloud Run Execution Control Plane API. + * + *

Sample for ExecutionsClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
+ *   ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]");
+ *   Execution response = executionsClient.getExecution(name);
+ * }
+ * }
+ * + *

======================= JobsClient ======================= + * + *

Service Description: Cloud Run Job Control Plane API. + * + *

Sample for JobsClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (JobsClient jobsClient = JobsClient.create()) {
+ *   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
+ *   Job response = jobsClient.getJob(name);
+ * }
+ * }
+ * *

======================= RevisionsClient ======================= * *

Service Description: Cloud Run Revision Control Plane API. @@ -54,6 +90,24 @@ * Service response = servicesClient.getService(name); * } * } + * + *

======================= TasksClient ======================= + * + *

Service Description: Cloud Run Task Control Plane API. + * + *

Sample for TasksClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TasksClient tasksClient = TasksClient.create()) {
+ *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]");
+ *   Task response = tasksClient.getTask(name);
+ * }
+ * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.run.v2; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java new file mode 100644 index 000000000000..842b9d7e80b9 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java @@ -0,0 +1,74 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.ExecutionsClient.ListExecutionsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.DeleteExecutionRequest; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.GetExecutionRequest; +import com.google.cloud.run.v2.ListExecutionsRequest; +import com.google.cloud.run.v2.ListExecutionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Executions service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ExecutionsStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getExecutionCallable() { + throw new UnsupportedOperationException("Not implemented: getExecutionCallable()"); + } + + public UnaryCallable + listExecutionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listExecutionsPagedCallable()"); + } + + public UnaryCallable listExecutionsCallable() { + throw new UnsupportedOperationException("Not implemented: listExecutionsCallable()"); + } + + public OperationCallable + deleteExecutionOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExecutionOperationCallable()"); + } + + public UnaryCallable deleteExecutionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExecutionCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java new file mode 100644 index 000000000000..4f9244bc1201 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java @@ -0,0 +1,477 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.ExecutionsClient.ListExecutionsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.DeleteExecutionRequest; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.GetExecutionRequest; +import com.google.cloud.run.v2.ListExecutionsRequest; +import com.google.cloud.run.v2.ListExecutionsResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ExecutionsStub}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ExecutionsStubSettings.Builder executionsSettingsBuilder = ExecutionsStubSettings.newBuilder();
+ * executionsSettingsBuilder
+ *     .getExecutionSettings()
+ *     .setRetrySettings(
+ *         executionsSettingsBuilder.getExecutionSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ExecutionsStubSettings executionsSettings = executionsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ExecutionsStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getExecutionSettings; + private final PagedCallSettings< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings; + private final UnaryCallSettings deleteExecutionSettings; + private final OperationCallSettings + deleteExecutionOperationSettings; + + private static final PagedListDescriptor + LIST_EXECUTIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListExecutionsRequest injectToken(ListExecutionsRequest payload, String token) { + return ListExecutionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListExecutionsRequest injectPageSize( + ListExecutionsRequest payload, int pageSize) { + return ListExecutionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListExecutionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListExecutionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListExecutionsResponse payload) { + return payload.getExecutionsList() == null + ? ImmutableList.of() + : payload.getExecutionsList(); + } + }; + + private static final PagedListResponseFactory< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + LIST_EXECUTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListExecutionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_EXECUTIONS_PAGE_STR_DESC, request, context); + return ListExecutionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getExecution. */ + public UnaryCallSettings getExecutionSettings() { + return getExecutionSettings; + } + + /** Returns the object with the settings used for calls to listExecutions. */ + public PagedCallSettings< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return listExecutionsSettings; + } + + /** Returns the object with the settings used for calls to deleteExecution. */ + public UnaryCallSettings deleteExecutionSettings() { + return deleteExecutionSettings; + } + + /** Returns the object with the settings used for calls to deleteExecution. */ + public OperationCallSettings + deleteExecutionOperationSettings() { + return deleteExecutionOperationSettings; + } + + public ExecutionsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcExecutionsStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonExecutionsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "run.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "run.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ExecutionsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ExecutionsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ExecutionsStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ExecutionsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getExecutionSettings = settingsBuilder.getExecutionSettings().build(); + listExecutionsSettings = settingsBuilder.listExecutionsSettings().build(); + deleteExecutionSettings = settingsBuilder.deleteExecutionSettings().build(); + deleteExecutionOperationSettings = settingsBuilder.deleteExecutionOperationSettings().build(); + } + + /** Builder for ExecutionsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getExecutionSettings; + private final PagedCallSettings.Builder< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings; + private final UnaryCallSettings.Builder + deleteExecutionSettings; + private final OperationCallSettings.Builder + deleteExecutionOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listExecutionsSettings = PagedCallSettings.newBuilder(LIST_EXECUTIONS_PAGE_STR_FACT); + deleteExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExecutionOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getExecutionSettings, listExecutionsSettings, deleteExecutionSettings); + initDefaults(this); + } + + protected Builder(ExecutionsStubSettings settings) { + super(settings); + + getExecutionSettings = settings.getExecutionSettings.toBuilder(); + listExecutionsSettings = settings.listExecutionsSettings.toBuilder(); + deleteExecutionSettings = settings.deleteExecutionSettings.toBuilder(); + deleteExecutionOperationSettings = settings.deleteExecutionOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getExecutionSettings, listExecutionsSettings, deleteExecutionSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getExecutionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listExecutionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteExecutionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteExecutionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Execution.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Execution.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getExecution. */ + public UnaryCallSettings.Builder getExecutionSettings() { + return getExecutionSettings; + } + + /** Returns the builder for the settings used for calls to listExecutions. */ + public PagedCallSettings.Builder< + ListExecutionsRequest, ListExecutionsResponse, ListExecutionsPagedResponse> + listExecutionsSettings() { + return listExecutionsSettings; + } + + /** Returns the builder for the settings used for calls to deleteExecution. */ + public UnaryCallSettings.Builder deleteExecutionSettings() { + return deleteExecutionSettings; + } + + /** Returns the builder for the settings used for calls to deleteExecution. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteExecutionOperationSettings() { + return deleteExecutionOperationSettings; + } + + @Override + public ExecutionsStubSettings build() throws IOException { + return new ExecutionsStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsCallableFactory.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsCallableFactory.java new file mode 100644 index 000000000000..6e81edc5a132 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the Executions service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcExecutionsCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.java new file mode 100644 index 000000000000..e3285c7cda59 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.java @@ -0,0 +1,252 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.ExecutionsClient.ListExecutionsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.DeleteExecutionRequest; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.GetExecutionRequest; +import com.google.cloud.run.v2.ListExecutionsRequest; +import com.google.cloud.run.v2.ListExecutionsResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the Executions service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcExecutionsStub extends ExecutionsStub { + private static final MethodDescriptor + getExecutionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Executions/GetExecution") + .setRequestMarshaller(ProtoUtils.marshaller(GetExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Execution.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listExecutionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Executions/ListExecutions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExecutionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExecutionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteExecutionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Executions/DeleteExecution") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable getExecutionCallable; + private final UnaryCallable listExecutionsCallable; + private final UnaryCallable + listExecutionsPagedCallable; + private final UnaryCallable deleteExecutionCallable; + private final OperationCallable + deleteExecutionOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcExecutionsStub create(ExecutionsStubSettings settings) + throws IOException { + return new GrpcExecutionsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcExecutionsStub create(ClientContext clientContext) throws IOException { + return new GrpcExecutionsStub(ExecutionsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcExecutionsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcExecutionsStub( + ExecutionsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcExecutionsStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcExecutionsStub(ExecutionsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcExecutionsCallableFactory()); + } + + /** + * Constructs an instance of GrpcExecutionsStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcExecutionsStub( + ExecutionsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getExecutionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExecutionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listExecutionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listExecutionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteExecutionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExecutionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + this.getExecutionCallable = + callableFactory.createUnaryCallable( + getExecutionTransportSettings, settings.getExecutionSettings(), clientContext); + this.listExecutionsCallable = + callableFactory.createUnaryCallable( + listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); + this.listExecutionsPagedCallable = + callableFactory.createPagedCallable( + listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); + this.deleteExecutionCallable = + callableFactory.createUnaryCallable( + deleteExecutionTransportSettings, settings.deleteExecutionSettings(), clientContext); + this.deleteExecutionOperationCallable = + callableFactory.createOperationCallable( + deleteExecutionTransportSettings, + settings.deleteExecutionOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getExecutionCallable() { + return getExecutionCallable; + } + + @Override + public UnaryCallable listExecutionsCallable() { + return listExecutionsCallable; + } + + @Override + public UnaryCallable + listExecutionsPagedCallable() { + return listExecutionsPagedCallable; + } + + @Override + public UnaryCallable deleteExecutionCallable() { + return deleteExecutionCallable; + } + + @Override + public OperationCallable + deleteExecutionOperationCallable() { + return deleteExecutionOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsCallableFactory.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsCallableFactory.java new file mode 100644 index 000000000000..7d6644b12c17 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the Jobs service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcJobsCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java new file mode 100644 index 000000000000..be3b49e60811 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java @@ -0,0 +1,453 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.JobsClient.ListJobsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.CreateJobRequest; +import com.google.cloud.run.v2.DeleteJobRequest; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.GetJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.ListJobsRequest; +import com.google.cloud.run.v2.ListJobsResponse; +import com.google.cloud.run.v2.RunJobRequest; +import com.google.cloud.run.v2.UpdateJobRequest; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the Jobs service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcJobsStub extends JobsStub { + private static final MethodDescriptor createJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Jobs/CreateJob") + .setRequestMarshaller(ProtoUtils.marshaller(CreateJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Jobs/GetJob") + .setRequestMarshaller(ProtoUtils.marshaller(GetJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Jobs/ListJobs") + .setRequestMarshaller(ProtoUtils.marshaller(ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListJobsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Jobs/UpdateJob") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Jobs/DeleteJob") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor runJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Jobs/RunJob") + .setRequestMarshaller(ProtoUtils.marshaller(RunJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Jobs/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Jobs/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Jobs/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable createJobCallable; + private final OperationCallable createJobOperationCallable; + private final UnaryCallable getJobCallable; + private final UnaryCallable listJobsCallable; + private final UnaryCallable listJobsPagedCallable; + private final UnaryCallable updateJobCallable; + private final OperationCallable updateJobOperationCallable; + private final UnaryCallable deleteJobCallable; + private final OperationCallable deleteJobOperationCallable; + private final UnaryCallable runJobCallable; + private final OperationCallable runJobOperationCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcJobsStub create(JobsStubSettings settings) throws IOException { + return new GrpcJobsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcJobsStub create(ClientContext clientContext) throws IOException { + return new GrpcJobsStub(JobsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcJobsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcJobsStub(JobsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcJobsStub, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected GrpcJobsStub(JobsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcJobsCallableFactory()); + } + + /** + * Constructs an instance of GrpcJobsStub, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected GrpcJobsStub( + JobsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listJobsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job.name", String.valueOf(request.getJob().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings runJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + + this.createJobCallable = + callableFactory.createUnaryCallable( + createJobTransportSettings, settings.createJobSettings(), clientContext); + this.createJobOperationCallable = + callableFactory.createOperationCallable( + createJobTransportSettings, + settings.createJobOperationSettings(), + clientContext, + operationsStub); + this.getJobCallable = + callableFactory.createUnaryCallable( + getJobTransportSettings, settings.getJobSettings(), clientContext); + this.listJobsCallable = + callableFactory.createUnaryCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.listJobsPagedCallable = + callableFactory.createPagedCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.updateJobCallable = + callableFactory.createUnaryCallable( + updateJobTransportSettings, settings.updateJobSettings(), clientContext); + this.updateJobOperationCallable = + callableFactory.createOperationCallable( + updateJobTransportSettings, + settings.updateJobOperationSettings(), + clientContext, + operationsStub); + this.deleteJobCallable = + callableFactory.createUnaryCallable( + deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); + this.deleteJobOperationCallable = + callableFactory.createOperationCallable( + deleteJobTransportSettings, + settings.deleteJobOperationSettings(), + clientContext, + operationsStub); + this.runJobCallable = + callableFactory.createUnaryCallable( + runJobTransportSettings, settings.runJobSettings(), clientContext); + this.runJobOperationCallable = + callableFactory.createOperationCallable( + runJobTransportSettings, + settings.runJobOperationSettings(), + clientContext, + operationsStub); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createJobCallable() { + return createJobCallable; + } + + @Override + public OperationCallable createJobOperationCallable() { + return createJobOperationCallable; + } + + @Override + public UnaryCallable getJobCallable() { + return getJobCallable; + } + + @Override + public UnaryCallable listJobsCallable() { + return listJobsCallable; + } + + @Override + public UnaryCallable listJobsPagedCallable() { + return listJobsPagedCallable; + } + + @Override + public UnaryCallable updateJobCallable() { + return updateJobCallable; + } + + @Override + public OperationCallable updateJobOperationCallable() { + return updateJobOperationCallable; + } + + @Override + public UnaryCallable deleteJobCallable() { + return deleteJobCallable; + } + + @Override + public OperationCallable deleteJobOperationCallable() { + return deleteJobOperationCallable; + } + + @Override + public UnaryCallable runJobCallable() { + return runJobCallable; + } + + @Override + public OperationCallable runJobOperationCallable() { + return runJobOperationCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java similarity index 100% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java similarity index 99% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java index 6f89f0c2d78f..8369429e2c54 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java similarity index 100% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java similarity index 99% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java index f2fe4ebcb026..0133af02c2b4 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java @@ -45,6 +45,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksCallableFactory.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksCallableFactory.java new file mode 100644 index 000000000000..d5da80972069 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the Tasks service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcTasksCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java new file mode 100644 index 000000000000..28e33f14aacc --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java @@ -0,0 +1,197 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.TasksClient.ListTasksPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.GetTaskRequest; +import com.google.cloud.run.v2.ListTasksRequest; +import com.google.cloud.run.v2.ListTasksResponse; +import com.google.cloud.run.v2.Task; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the Tasks service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcTasksStub extends TasksStub { + private static final MethodDescriptor getTaskMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Tasks/GetTask") + .setRequestMarshaller(ProtoUtils.marshaller(GetTaskRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listTasksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.run.v2.Tasks/ListTasks") + .setRequestMarshaller(ProtoUtils.marshaller(ListTasksRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListTasksResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable getTaskCallable; + private final UnaryCallable listTasksCallable; + private final UnaryCallable listTasksPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcTasksStub create(TasksStubSettings settings) throws IOException { + return new GrpcTasksStub(settings, ClientContext.create(settings)); + } + + public static final GrpcTasksStub create(ClientContext clientContext) throws IOException { + return new GrpcTasksStub(TasksStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcTasksStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcTasksStub( + TasksStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcTasksStub, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected GrpcTasksStub(TasksStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcTasksCallableFactory()); + } + + /** + * Constructs an instance of GrpcTasksStub, using the given settings. This is protected so that it + * is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected GrpcTasksStub( + TasksStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getTaskTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTaskMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listTasksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listTasksMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + + this.getTaskCallable = + callableFactory.createUnaryCallable( + getTaskTransportSettings, settings.getTaskSettings(), clientContext); + this.listTasksCallable = + callableFactory.createUnaryCallable( + listTasksTransportSettings, settings.listTasksSettings(), clientContext); + this.listTasksPagedCallable = + callableFactory.createPagedCallable( + listTasksTransportSettings, settings.listTasksSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getTaskCallable() { + return getTaskCallable; + } + + @Override + public UnaryCallable listTasksCallable() { + return listTasksCallable; + } + + @Override + public UnaryCallable listTasksPagedCallable() { + return listTasksPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsCallableFactory.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsCallableFactory.java new file mode 100644 index 000000000000..02b9f0f018ad --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Executions service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonExecutionsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java new file mode 100644 index 000000000000..2fdf55e65786 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java @@ -0,0 +1,341 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.ExecutionsClient.ListExecutionsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.DeleteExecutionRequest; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.GetExecutionRequest; +import com.google.cloud.run.v2.ListExecutionsRequest; +import com.google.cloud.run.v2.ListExecutionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Executions service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonExecutionsStub extends ExecutionsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Execution.getDescriptor()).build(); + + private static final ApiMethodDescriptor + getExecutionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Executions/GetExecution") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/jobs/*/executions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Execution.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listExecutionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Executions/ListExecutions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*/jobs/*}/executions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "showDeleted", request.getShowDeleted()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListExecutionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteExecutionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Executions/DeleteExecution") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/jobs/*/executions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteExecutionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable getExecutionCallable; + private final UnaryCallable listExecutionsCallable; + private final UnaryCallable + listExecutionsPagedCallable; + private final UnaryCallable deleteExecutionCallable; + private final OperationCallable + deleteExecutionOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonExecutionsStub create(ExecutionsStubSettings settings) + throws IOException { + return new HttpJsonExecutionsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonExecutionsStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonExecutionsStub( + ExecutionsStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonExecutionsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonExecutionsStub( + ExecutionsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonExecutionsStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonExecutionsStub(ExecutionsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonExecutionsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonExecutionsStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonExecutionsStub( + ExecutionsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings getExecutionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getExecutionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listExecutionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listExecutionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteExecutionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteExecutionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.getExecutionCallable = + callableFactory.createUnaryCallable( + getExecutionTransportSettings, settings.getExecutionSettings(), clientContext); + this.listExecutionsCallable = + callableFactory.createUnaryCallable( + listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); + this.listExecutionsPagedCallable = + callableFactory.createPagedCallable( + listExecutionsTransportSettings, settings.listExecutionsSettings(), clientContext); + this.deleteExecutionCallable = + callableFactory.createUnaryCallable( + deleteExecutionTransportSettings, settings.deleteExecutionSettings(), clientContext); + this.deleteExecutionOperationCallable = + callableFactory.createOperationCallable( + deleteExecutionTransportSettings, + settings.deleteExecutionOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getExecutionMethodDescriptor); + methodDescriptors.add(listExecutionsMethodDescriptor); + methodDescriptors.add(deleteExecutionMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getExecutionCallable() { + return getExecutionCallable; + } + + @Override + public UnaryCallable listExecutionsCallable() { + return listExecutionsCallable; + } + + @Override + public UnaryCallable + listExecutionsPagedCallable() { + return listExecutionsPagedCallable; + } + + @Override + public UnaryCallable deleteExecutionCallable() { + return deleteExecutionCallable; + } + + @Override + public OperationCallable + deleteExecutionOperationCallable() { + return deleteExecutionOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsCallableFactory.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsCallableFactory.java new file mode 100644 index 000000000000..9575507004c6 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Jobs service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonJobsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java new file mode 100644 index 000000000000..a57f0c8c52be --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java @@ -0,0 +1,690 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.JobsClient.ListJobsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.CreateJobRequest; +import com.google.cloud.run.v2.DeleteJobRequest; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.GetJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.ListJobsRequest; +import com.google.cloud.run.v2.ListJobsResponse; +import com.google.cloud.run.v2.RunJobRequest; +import com.google.cloud.run.v2.UpdateJobRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Jobs service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonJobsStub extends JobsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Execution.getDescriptor()).add(Job.getDescriptor()).build(); + + private static final ApiMethodDescriptor createJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Jobs/CreateJob") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/jobs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "jobId", request.getJobId()); + serializer.putQueryParam(fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("job", request.getJob(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateJobRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Jobs/GetJob") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/jobs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Jobs/ListJobs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/jobs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "showDeleted", request.getShowDeleted()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListJobsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Jobs/UpdateJob") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{job.name=projects/*/locations/*/jobs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "job.name", request.getJob().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("job", request.getJob(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateJobRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor deleteJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Jobs/DeleteJob") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/jobs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "validateOnly", request.getValidateOnly()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteJobRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor runJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Jobs/RunJob") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/jobs/*}:run", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RunJobRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Jobs/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/jobs/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "options", request.getOptions()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Jobs/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/jobs/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Jobs/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/jobs/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createJobCallable; + private final OperationCallable createJobOperationCallable; + private final UnaryCallable getJobCallable; + private final UnaryCallable listJobsCallable; + private final UnaryCallable listJobsPagedCallable; + private final UnaryCallable updateJobCallable; + private final OperationCallable updateJobOperationCallable; + private final UnaryCallable deleteJobCallable; + private final OperationCallable deleteJobOperationCallable; + private final UnaryCallable runJobCallable; + private final OperationCallable runJobOperationCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonJobsStub create(JobsStubSettings settings) throws IOException { + return new HttpJsonJobsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonJobsStub create(ClientContext clientContext) throws IOException { + return new HttpJsonJobsStub(JobsStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonJobsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonJobsStub( + JobsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonJobsStub, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected HttpJsonJobsStub(JobsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonJobsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonJobsStub, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected HttpJsonJobsStub( + JobsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings runJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createJobCallable = + callableFactory.createUnaryCallable( + createJobTransportSettings, settings.createJobSettings(), clientContext); + this.createJobOperationCallable = + callableFactory.createOperationCallable( + createJobTransportSettings, + settings.createJobOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getJobCallable = + callableFactory.createUnaryCallable( + getJobTransportSettings, settings.getJobSettings(), clientContext); + this.listJobsCallable = + callableFactory.createUnaryCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.listJobsPagedCallable = + callableFactory.createPagedCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.updateJobCallable = + callableFactory.createUnaryCallable( + updateJobTransportSettings, settings.updateJobSettings(), clientContext); + this.updateJobOperationCallable = + callableFactory.createOperationCallable( + updateJobTransportSettings, + settings.updateJobOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteJobCallable = + callableFactory.createUnaryCallable( + deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); + this.deleteJobOperationCallable = + callableFactory.createOperationCallable( + deleteJobTransportSettings, + settings.deleteJobOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.runJobCallable = + callableFactory.createUnaryCallable( + runJobTransportSettings, settings.runJobSettings(), clientContext); + this.runJobOperationCallable = + callableFactory.createOperationCallable( + runJobTransportSettings, + settings.runJobOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createJobMethodDescriptor); + methodDescriptors.add(getJobMethodDescriptor); + methodDescriptors.add(listJobsMethodDescriptor); + methodDescriptors.add(updateJobMethodDescriptor); + methodDescriptors.add(deleteJobMethodDescriptor); + methodDescriptors.add(runJobMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createJobCallable() { + return createJobCallable; + } + + @Override + public OperationCallable createJobOperationCallable() { + return createJobOperationCallable; + } + + @Override + public UnaryCallable getJobCallable() { + return getJobCallable; + } + + @Override + public UnaryCallable listJobsCallable() { + return listJobsCallable; + } + + @Override + public UnaryCallable listJobsPagedCallable() { + return listJobsPagedCallable; + } + + @Override + public UnaryCallable updateJobCallable() { + return updateJobCallable; + } + + @Override + public OperationCallable updateJobOperationCallable() { + return updateJobOperationCallable; + } + + @Override + public UnaryCallable deleteJobCallable() { + return deleteJobCallable; + } + + @Override + public OperationCallable deleteJobOperationCallable() { + return deleteJobOperationCallable; + } + + @Override + public UnaryCallable runJobCallable() { + return runJobCallable; + } + + @Override + public OperationCallable runJobOperationCallable() { + return runJobOperationCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java similarity index 100% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java similarity index 99% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java index c01acd40f0bc..3f9e8729d023 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java similarity index 100% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java similarity index 99% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java index 4933b88363ce..04cdabce8504 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksCallableFactory.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksCallableFactory.java new file mode 100644 index 000000000000..032977034fe2 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Tasks service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTasksCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksStub.java new file mode 100644 index 000000000000..4dc759b4d9cc --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksStub.java @@ -0,0 +1,252 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.TasksClient.ListTasksPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.GetTaskRequest; +import com.google.cloud.run.v2.ListTasksRequest; +import com.google.cloud.run.v2.ListTasksResponse; +import com.google.cloud.run.v2.Task; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Tasks service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTasksStub extends TasksStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor getTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Tasks/GetTask") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/jobs/*/executions/*/tasks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTasksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.run.v2.Tasks/ListTasks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*/jobs/*/executions/*}/tasks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "showDeleted", request.getShowDeleted()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTasksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getTaskCallable; + private final UnaryCallable listTasksCallable; + private final UnaryCallable listTasksPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTasksStub create(TasksStubSettings settings) throws IOException { + return new HttpJsonTasksStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTasksStub create(ClientContext clientContext) throws IOException { + return new HttpJsonTasksStub(TasksStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonTasksStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTasksStub( + TasksStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonTasksStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonTasksStub(TasksStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonTasksCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTasksStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonTasksStub( + TasksStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listTasksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTasksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.getTaskCallable = + callableFactory.createUnaryCallable( + getTaskTransportSettings, settings.getTaskSettings(), clientContext); + this.listTasksCallable = + callableFactory.createUnaryCallable( + listTasksTransportSettings, settings.listTasksSettings(), clientContext); + this.listTasksPagedCallable = + callableFactory.createPagedCallable( + listTasksTransportSettings, settings.listTasksSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getTaskMethodDescriptor); + methodDescriptors.add(listTasksMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getTaskCallable() { + return getTaskCallable; + } + + @Override + public UnaryCallable listTasksCallable() { + return listTasksCallable; + } + + @Override + public UnaryCallable listTasksPagedCallable() { + return listTasksPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java new file mode 100644 index 000000000000..3489e724fed8 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java @@ -0,0 +1,118 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.JobsClient.ListJobsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.CreateJobRequest; +import com.google.cloud.run.v2.DeleteJobRequest; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.GetJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.ListJobsRequest; +import com.google.cloud.run.v2.ListJobsResponse; +import com.google.cloud.run.v2.RunJobRequest; +import com.google.cloud.run.v2.UpdateJobRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Jobs service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class JobsStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable createJobOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createJobOperationCallable()"); + } + + public UnaryCallable createJobCallable() { + throw new UnsupportedOperationException("Not implemented: createJobCallable()"); + } + + public UnaryCallable getJobCallable() { + throw new UnsupportedOperationException("Not implemented: getJobCallable()"); + } + + public UnaryCallable listJobsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listJobsPagedCallable()"); + } + + public UnaryCallable listJobsCallable() { + throw new UnsupportedOperationException("Not implemented: listJobsCallable()"); + } + + public OperationCallable updateJobOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateJobOperationCallable()"); + } + + public UnaryCallable updateJobCallable() { + throw new UnsupportedOperationException("Not implemented: updateJobCallable()"); + } + + public OperationCallable deleteJobOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteJobOperationCallable()"); + } + + public UnaryCallable deleteJobCallable() { + throw new UnsupportedOperationException("Not implemented: deleteJobCallable()"); + } + + public OperationCallable runJobOperationCallable() { + throw new UnsupportedOperationException("Not implemented: runJobOperationCallable()"); + } + + public UnaryCallable runJobCallable() { + throw new UnsupportedOperationException("Not implemented: runJobCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java new file mode 100644 index 000000000000..dc21d514d29d --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java @@ -0,0 +1,732 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.JobsClient.ListJobsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.CreateJobRequest; +import com.google.cloud.run.v2.DeleteJobRequest; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.GetJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.ListJobsRequest; +import com.google.cloud.run.v2.ListJobsResponse; +import com.google.cloud.run.v2.RunJobRequest; +import com.google.cloud.run.v2.UpdateJobRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link JobsStub}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * JobsStubSettings.Builder jobsSettingsBuilder = JobsStubSettings.newBuilder();
+ * jobsSettingsBuilder
+ *     .getJobSettings()
+ *     .setRetrySettings(
+ *         jobsSettingsBuilder.getJobSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * JobsStubSettings jobsSettings = jobsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class JobsStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createJobSettings; + private final OperationCallSettings createJobOperationSettings; + private final UnaryCallSettings getJobSettings; + private final PagedCallSettings + listJobsSettings; + private final UnaryCallSettings updateJobSettings; + private final OperationCallSettings updateJobOperationSettings; + private final UnaryCallSettings deleteJobSettings; + private final OperationCallSettings deleteJobOperationSettings; + private final UnaryCallSettings runJobSettings; + private final OperationCallSettings runJobOperationSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor + LIST_JOBS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListJobsRequest injectToken(ListJobsRequest payload, String token) { + return ListJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListJobsRequest injectPageSize(ListJobsRequest payload, int pageSize) { + return ListJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListJobsResponse payload) { + return payload.getJobsList() == null + ? ImmutableList.of() + : payload.getJobsList(); + } + }; + + private static final PagedListResponseFactory< + ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> + LIST_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_JOBS_PAGE_STR_DESC, request, context); + return ListJobsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createJob. */ + public UnaryCallSettings createJobSettings() { + return createJobSettings; + } + + /** Returns the object with the settings used for calls to createJob. */ + public OperationCallSettings createJobOperationSettings() { + return createJobOperationSettings; + } + + /** Returns the object with the settings used for calls to getJob. */ + public UnaryCallSettings getJobSettings() { + return getJobSettings; + } + + /** Returns the object with the settings used for calls to listJobs. */ + public PagedCallSettings + listJobsSettings() { + return listJobsSettings; + } + + /** Returns the object with the settings used for calls to updateJob. */ + public UnaryCallSettings updateJobSettings() { + return updateJobSettings; + } + + /** Returns the object with the settings used for calls to updateJob. */ + public OperationCallSettings updateJobOperationSettings() { + return updateJobOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteJob. */ + public UnaryCallSettings deleteJobSettings() { + return deleteJobSettings; + } + + /** Returns the object with the settings used for calls to deleteJob. */ + public OperationCallSettings deleteJobOperationSettings() { + return deleteJobOperationSettings; + } + + /** Returns the object with the settings used for calls to runJob. */ + public UnaryCallSettings runJobSettings() { + return runJobSettings; + } + + /** Returns the object with the settings used for calls to runJob. */ + public OperationCallSettings runJobOperationSettings() { + return runJobOperationSettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public JobsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcJobsStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonJobsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "run.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "run.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(JobsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(JobsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return JobsStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected JobsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createJobSettings = settingsBuilder.createJobSettings().build(); + createJobOperationSettings = settingsBuilder.createJobOperationSettings().build(); + getJobSettings = settingsBuilder.getJobSettings().build(); + listJobsSettings = settingsBuilder.listJobsSettings().build(); + updateJobSettings = settingsBuilder.updateJobSettings().build(); + updateJobOperationSettings = settingsBuilder.updateJobOperationSettings().build(); + deleteJobSettings = settingsBuilder.deleteJobSettings().build(); + deleteJobOperationSettings = settingsBuilder.deleteJobOperationSettings().build(); + runJobSettings = settingsBuilder.runJobSettings().build(); + runJobOperationSettings = settingsBuilder.runJobOperationSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for JobsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder createJobSettings; + private final OperationCallSettings.Builder + createJobOperationSettings; + private final UnaryCallSettings.Builder getJobSettings; + private final PagedCallSettings.Builder< + ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> + listJobsSettings; + private final UnaryCallSettings.Builder updateJobSettings; + private final OperationCallSettings.Builder + updateJobOperationSettings; + private final UnaryCallSettings.Builder deleteJobSettings; + private final OperationCallSettings.Builder + deleteJobOperationSettings; + private final UnaryCallSettings.Builder runJobSettings; + private final OperationCallSettings.Builder + runJobOperationSettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createJobOperationSettings = OperationCallSettings.newBuilder(); + getJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listJobsSettings = PagedCallSettings.newBuilder(LIST_JOBS_PAGE_STR_FACT); + updateJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateJobOperationSettings = OperationCallSettings.newBuilder(); + deleteJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteJobOperationSettings = OperationCallSettings.newBuilder(); + runJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + runJobOperationSettings = OperationCallSettings.newBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createJobSettings, + getJobSettings, + listJobsSettings, + updateJobSettings, + deleteJobSettings, + runJobSettings, + getIamPolicySettings, + setIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(JobsStubSettings settings) { + super(settings); + + createJobSettings = settings.createJobSettings.toBuilder(); + createJobOperationSettings = settings.createJobOperationSettings.toBuilder(); + getJobSettings = settings.getJobSettings.toBuilder(); + listJobsSettings = settings.listJobsSettings.toBuilder(); + updateJobSettings = settings.updateJobSettings.toBuilder(); + updateJobOperationSettings = settings.updateJobOperationSettings.toBuilder(); + deleteJobSettings = settings.deleteJobSettings.toBuilder(); + deleteJobOperationSettings = settings.deleteJobOperationSettings.toBuilder(); + runJobSettings = settings.runJobSettings.toBuilder(); + runJobOperationSettings = settings.runJobOperationSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createJobSettings, + getJobSettings, + listJobsSettings, + updateJobSettings, + deleteJobSettings, + runJobSettings, + getIamPolicySettings, + setIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .runJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createJobOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Job.class)) + .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Job.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateJobOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Job.class)) + .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Job.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteJobOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Job.class)) + .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Job.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .runJobOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Execution.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(Execution.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createJob. */ + public UnaryCallSettings.Builder createJobSettings() { + return createJobSettings; + } + + /** Returns the builder for the settings used for calls to createJob. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder createJobOperationSettings() { + return createJobOperationSettings; + } + + /** Returns the builder for the settings used for calls to getJob. */ + public UnaryCallSettings.Builder getJobSettings() { + return getJobSettings; + } + + /** Returns the builder for the settings used for calls to listJobs. */ + public PagedCallSettings.Builder + listJobsSettings() { + return listJobsSettings; + } + + /** Returns the builder for the settings used for calls to updateJob. */ + public UnaryCallSettings.Builder updateJobSettings() { + return updateJobSettings; + } + + /** Returns the builder for the settings used for calls to updateJob. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder updateJobOperationSettings() { + return updateJobOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteJob. */ + public UnaryCallSettings.Builder deleteJobSettings() { + return deleteJobSettings; + } + + /** Returns the builder for the settings used for calls to deleteJob. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder deleteJobOperationSettings() { + return deleteJobOperationSettings; + } + + /** Returns the builder for the settings used for calls to runJob. */ + public UnaryCallSettings.Builder runJobSettings() { + return runJobSettings; + } + + /** Returns the builder for the settings used for calls to runJob. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + runJobOperationSettings() { + return runJobOperationSettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public JobsStubSettings build() throws IOException { + return new JobsStubSettings(this); + } + } +} diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java similarity index 100% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java similarity index 100% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java similarity index 100% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java similarity index 100% rename from java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStub.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStub.java new file mode 100644 index 000000000000..9a376d626518 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStub.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.TasksClient.ListTasksPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.GetTaskRequest; +import com.google.cloud.run.v2.ListTasksRequest; +import com.google.cloud.run.v2.ListTasksResponse; +import com.google.cloud.run.v2.Task; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Tasks service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class TasksStub implements BackgroundResource { + + public UnaryCallable getTaskCallable() { + throw new UnsupportedOperationException("Not implemented: getTaskCallable()"); + } + + public UnaryCallable listTasksPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTasksPagedCallable()"); + } + + public UnaryCallable listTasksCallable() { + throw new UnsupportedOperationException("Not implemented: listTasksCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java new file mode 100644 index 000000000000..e398354c4701 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java @@ -0,0 +1,396 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub; + +import static com.google.cloud.run.v2.TasksClient.ListTasksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.run.v2.GetTaskRequest; +import com.google.cloud.run.v2.ListTasksRequest; +import com.google.cloud.run.v2.ListTasksResponse; +import com.google.cloud.run.v2.Task; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link TasksStub}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TasksStubSettings.Builder tasksSettingsBuilder = TasksStubSettings.newBuilder();
+ * tasksSettingsBuilder
+ *     .getTaskSettings()
+ *     .setRetrySettings(
+ *         tasksSettingsBuilder.getTaskSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * TasksStubSettings tasksSettings = tasksSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class TasksStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getTaskSettings; + private final PagedCallSettings + listTasksSettings; + + private static final PagedListDescriptor + LIST_TASKS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTasksRequest injectToken(ListTasksRequest payload, String token) { + return ListTasksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTasksRequest injectPageSize(ListTasksRequest payload, int pageSize) { + return ListTasksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTasksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTasksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTasksResponse payload) { + return payload.getTasksList() == null + ? ImmutableList.of() + : payload.getTasksList(); + } + }; + + private static final PagedListResponseFactory< + ListTasksRequest, ListTasksResponse, ListTasksPagedResponse> + LIST_TASKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTasksRequest, ListTasksResponse, ListTasksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTasksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TASKS_PAGE_STR_DESC, request, context); + return ListTasksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getTask. */ + public UnaryCallSettings getTaskSettings() { + return getTaskSettings; + } + + /** Returns the object with the settings used for calls to listTasks. */ + public PagedCallSettings + listTasksSettings() { + return listTasksSettings; + } + + public TasksStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcTasksStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTasksStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "run.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "run.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(TasksStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(TasksStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TasksStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TasksStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getTaskSettings = settingsBuilder.getTaskSettings().build(); + listTasksSettings = settingsBuilder.listTasksSettings().build(); + } + + /** Builder for TasksStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getTaskSettings; + private final PagedCallSettings.Builder< + ListTasksRequest, ListTasksResponse, ListTasksPagedResponse> + listTasksSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listTasksSettings = PagedCallSettings.newBuilder(LIST_TASKS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getTaskSettings, listTasksSettings); + initDefaults(this); + } + + protected Builder(TasksStubSettings settings) { + super(settings); + + getTaskSettings = settings.getTaskSettings.toBuilder(); + listTasksSettings = settings.listTasksSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getTaskSettings, listTasksSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getTaskSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listTasksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getTask. */ + public UnaryCallSettings.Builder getTaskSettings() { + return getTaskSettings; + } + + /** Returns the builder for the settings used for calls to listTasks. */ + public PagedCallSettings.Builder + listTasksSettings() { + return listTasksSettings; + } + + @Override + public TasksStubSettings build() throws IOException { + return new TasksStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java new file mode 100644 index 000000000000..69fb5b2701e9 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java @@ -0,0 +1,461 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import static com.google.cloud.run.v2.ExecutionsClient.ListExecutionsPagedResponse; + +import com.google.api.LaunchStage; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.run.v2.stub.HttpJsonExecutionsStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ExecutionsClientHttpJsonTest { + private static MockHttpService mockService; + private static ExecutionsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonExecutionsStub.getMethodDescriptors(), ExecutionsSettings.getDefaultEndpoint()); + ExecutionsSettings settings = + ExecutionsSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ExecutionsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ExecutionsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getExecutionTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + + Execution actualResponse = client.getExecution(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getExecutionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + client.getExecution(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExecutionTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3087/locations/location-3087/jobs/job-3087/executions/execution-3087"; + + Execution actualResponse = client.getExecution(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getExecutionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3087/locations/location-3087/jobs/job-3087/executions/execution-3087"; + client.getExecution(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExecutionsTest() throws Exception { + Execution responsesElement = Execution.newBuilder().build(); + ListExecutionsResponse expectedResponse = + ListExecutionsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + ListExecutionsPagedResponse pagedListResponse = client.listExecutions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listExecutionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + client.listExecutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExecutionsTest2() throws Exception { + Execution responsesElement = Execution.newBuilder().build(); + ListExecutionsResponse expectedResponse = + ListExecutionsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7113/locations/location-7113/jobs/job-7113"; + + ListExecutionsPagedResponse pagedListResponse = client.listExecutions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listExecutionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7113/locations/location-7113/jobs/job-7113"; + client.listExecutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExecutionTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExecutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + + Execution actualResponse = client.deleteExecutionAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteExecutionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + client.deleteExecutionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteExecutionTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExecutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-3087/locations/location-3087/jobs/job-3087/executions/execution-3087"; + + Execution actualResponse = client.deleteExecutionAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteExecutionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3087/locations/location-3087/jobs/job-3087/executions/execution-3087"; + client.deleteExecutionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java new file mode 100644 index 000000000000..2893eb694924 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java @@ -0,0 +1,435 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import static com.google.cloud.run.v2.ExecutionsClient.ListExecutionsPagedResponse; + +import com.google.api.LaunchStage; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ExecutionsClientTest { + private static MockExecutions mockExecutions; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ExecutionsClient client; + + @BeforeClass + public static void startStaticServer() { + mockExecutions = new MockExecutions(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockExecutions, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ExecutionsSettings settings = + ExecutionsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ExecutionsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getExecutionTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + mockExecutions.addResponse(expectedResponse); + + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + + Execution actualResponse = client.getExecution(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockExecutions.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExecutionRequest actualRequest = ((GetExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExecutionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockExecutions.addException(exception); + + try { + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + client.getExecution(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExecutionTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + mockExecutions.addResponse(expectedResponse); + + String name = "name3373707"; + + Execution actualResponse = client.getExecution(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockExecutions.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExecutionRequest actualRequest = ((GetExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExecutionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockExecutions.addException(exception); + + try { + String name = "name3373707"; + client.getExecution(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExecutionsTest() throws Exception { + Execution responsesElement = Execution.newBuilder().build(); + ListExecutionsResponse expectedResponse = + ListExecutionsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutions(Arrays.asList(responsesElement)) + .build(); + mockExecutions.addResponse(expectedResponse); + + JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + ListExecutionsPagedResponse pagedListResponse = client.listExecutions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionsList().get(0), resources.get(0)); + + List actualRequests = mockExecutions.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExecutionsRequest actualRequest = ((ListExecutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExecutionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockExecutions.addException(exception); + + try { + JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + client.listExecutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExecutionsTest2() throws Exception { + Execution responsesElement = Execution.newBuilder().build(); + ListExecutionsResponse expectedResponse = + ListExecutionsResponse.newBuilder() + .setNextPageToken("") + .addAllExecutions(Arrays.asList(responsesElement)) + .build(); + mockExecutions.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListExecutionsPagedResponse pagedListResponse = client.listExecutions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExecutionsList().get(0), resources.get(0)); + + List actualRequests = mockExecutions.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExecutionsRequest actualRequest = ((ListExecutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExecutionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockExecutions.addException(exception); + + try { + String parent = "parent-995424086"; + client.listExecutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExecutionTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExecutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockExecutions.addResponse(resultOperation); + + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + + Execution actualResponse = client.deleteExecutionAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockExecutions.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExecutionRequest actualRequest = ((DeleteExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExecutionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockExecutions.addException(exception); + + try { + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + client.deleteExecutionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteExecutionTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExecutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockExecutions.addResponse(resultOperation); + + String name = "name3373707"; + + Execution actualResponse = client.deleteExecutionAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockExecutions.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExecutionRequest actualRequest = ((DeleteExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExecutionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockExecutions.addException(exception); + + try { + String name = "name3373707"; + client.deleteExecutionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java new file mode 100644 index 000000000000..50edf84a8da5 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java @@ -0,0 +1,1042 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import static com.google.cloud.run.v2.JobsClient.ListJobsPagedResponse; + +import com.google.api.LaunchStage; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.run.v2.stub.HttpJsonJobsStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class JobsClientHttpJsonTest { + private static MockHttpService mockService; + private static JobsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonJobsStub.getMethodDescriptors(), JobsSettings.getDefaultEndpoint()); + JobsSettings settings = + JobsSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + JobsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = JobsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Job job = Job.newBuilder().build(); + String jobId = "jobId101296568"; + + Job actualResponse = client.createJobAsync(parent, job, jobId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Job job = Job.newBuilder().build(); + String jobId = "jobId101296568"; + client.createJobAsync(parent, job, jobId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createJobTest2() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Job job = Job.newBuilder().build(); + String jobId = "jobId101296568"; + + Job actualResponse = client.createJobAsync(parent, job, jobId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Job job = Job.newBuilder().build(); + String jobId = "jobId101296568"; + client.createJobAsync(parent, job, jobId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getJobTest2() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3306/locations/location-3306/jobs/job-3306"; + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3306/locations/location-3306/jobs/job-3306"; + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobsTest() throws Exception { + Job responsesElement = Job.newBuilder().build(); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobsTest2() throws Exception { + Job responsesElement = Job.newBuilder().build(); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listJobsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Job job = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + + Job actualResponse = client.updateJobAsync(job).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Job job = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + client.updateJobAsync(job).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + Job actualResponse = client.deleteJobAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + client.deleteJobAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteJobTest2() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-3306/locations/location-3306/jobs/job-3306"; + + Job actualResponse = client.deleteJobAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3306/locations/location-3306/jobs/job-3306"; + client.deleteJobAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void runJobTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + Execution actualResponse = client.runJobAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + client.runJobAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void runJobTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-3306/locations/location-3306/jobs/job-3306"; + + Execution actualResponse = client.runJobAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3306/locations/location-3306/jobs/job-3306"; + client.runJobAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java new file mode 100644 index 000000000000..8aa1cf4b479b --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java @@ -0,0 +1,944 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import static com.google.cloud.run.v2.JobsClient.ListJobsPagedResponse; + +import com.google.api.LaunchStage; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class JobsClientTest { + private static MockJobs mockJobs; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private JobsClient client; + + @BeforeClass + public static void startStaticServer() { + mockJobs = new MockJobs(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockJobs, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + JobsSettings settings = + JobsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = JobsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockJobs.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Job job = Job.newBuilder().build(); + String jobId = "jobId101296568"; + + Job actualResponse = client.createJobAsync(parent, job, jobId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateJobRequest actualRequest = ((CreateJobRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertEquals(jobId, actualRequest.getJobId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Job job = Job.newBuilder().build(); + String jobId = "jobId101296568"; + client.createJobAsync(parent, job, jobId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createJobTest2() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockJobs.addResponse(resultOperation); + + String parent = "parent-995424086"; + Job job = Job.newBuilder().build(); + String jobId = "jobId101296568"; + + Job actualResponse = client.createJobAsync(parent, job, jobId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateJobRequest actualRequest = ((CreateJobRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertEquals(jobId, actualRequest.getJobId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + String parent = "parent-995424086"; + Job job = Job.newBuilder().build(); + String jobId = "jobId101296568"; + client.createJobAsync(parent, job, jobId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + mockJobs.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetJobRequest actualRequest = ((GetJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getJobTest2() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + mockJobs.addResponse(expectedResponse); + + String name = "name3373707"; + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetJobRequest actualRequest = ((GetJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + String name = "name3373707"; + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobsTest() throws Exception { + Job responsesElement = Job.newBuilder().build(); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); + mockJobs.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListJobsRequest actualRequest = ((ListJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobsTest2() throws Exception { + Job responsesElement = Job.newBuilder().build(); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); + mockJobs.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListJobsRequest actualRequest = ((ListJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listJobsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + String parent = "parent-995424086"; + client.listJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockJobs.addResponse(resultOperation); + + Job job = Job.newBuilder().build(); + + Job actualResponse = client.updateJobAsync(job).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateJobRequest actualRequest = ((UpdateJobRequest) actualRequests.get(0)); + + Assert.assertEquals(job, actualRequest.getJob()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + Job job = Job.newBuilder().build(); + client.updateJobAsync(job).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockJobs.addResponse(resultOperation); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + Job actualResponse = client.deleteJobAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteJobRequest actualRequest = ((DeleteJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + client.deleteJobAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteJobTest2() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .setLastModifier("lastModifier1959003021") + .setClient("client-1357712437") + .setClientVersion("clientVersion771880589") + .setLaunchStage(LaunchStage.forNumber(0)) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setTemplate(ExecutionTemplate.newBuilder().build()) + .setObservedGeneration(900833007) + .setTerminalCondition(Condition.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setExecutionCount(1646136616) + .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) + .setReconciling(true) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockJobs.addResponse(resultOperation); + + String name = "name3373707"; + + Job actualResponse = client.deleteJobAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteJobRequest actualRequest = ((DeleteJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + String name = "name3373707"; + client.deleteJobAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void runJobTest() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockJobs.addResponse(resultOperation); + + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + + Execution actualResponse = client.runJobAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunJobRequest actualRequest = ((RunJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + client.runJobAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void runJobTest2() throws Exception { + Execution expectedResponse = + Execution.newBuilder() + .setName(ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setLaunchStage(LaunchStage.forNumber(0)) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setParallelism(635164956) + .setTaskCount(1297805781) + .setTemplate(TaskTemplate.newBuilder().build()) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setRunningCount(261439119) + .setSucceededCount(633694641) + .setFailedCount(-2013829491) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockJobs.addResponse(resultOperation); + + String name = "name3373707"; + + Execution actualResponse = client.runJobAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunJobRequest actualRequest = ((RunJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + String name = "name3373707"; + client.runJobAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockJobs.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockJobs.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockJobs.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockJobs.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockJobs.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutions.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutions.java new file mode 100644 index 000000000000..224f8e5ab6f1 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutions.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockExecutions implements MockGrpcService { + private final MockExecutionsImpl serviceImpl; + + public MockExecutions() { + serviceImpl = new MockExecutionsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutionsImpl.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutionsImpl.java new file mode 100644 index 000000000000..410c6652b759 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutionsImpl.java @@ -0,0 +1,124 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.core.BetaApi; +import com.google.cloud.run.v2.ExecutionsGrpc.ExecutionsImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockExecutionsImpl extends ExecutionsImplBase { + private List requests; + private Queue responses; + + public MockExecutionsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getExecution( + GetExecutionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Execution) { + requests.add(request); + responseObserver.onNext(((Execution) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetExecution, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Execution.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listExecutions( + ListExecutionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExecutionsResponse) { + requests.add(request); + responseObserver.onNext(((ListExecutionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListExecutions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListExecutionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteExecution( + DeleteExecutionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteExecution, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobs.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobs.java new file mode 100644 index 000000000000..a16326355a51 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobs.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockJobs implements MockGrpcService { + private final MockJobsImpl serviceImpl; + + public MockJobs() { + serviceImpl = new MockJobsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobsImpl.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobsImpl.java new file mode 100644 index 000000000000..f92186cecdad --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobsImpl.java @@ -0,0 +1,248 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.core.BetaApi; +import com.google.cloud.run.v2.JobsGrpc.JobsImplBase; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockJobsImpl extends JobsImplBase { + private List requests; + private Queue responses; + + public MockJobsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createJob(CreateJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getJob(GetJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Job) { + requests.add(request); + responseObserver.onNext(((Job) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Job.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listJobs(ListJobsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListJobsResponse) { + requests.add(request); + responseObserver.onNext(((ListJobsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListJobs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListJobsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateJob(UpdateJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteJob(DeleteJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void runJob(RunJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RunJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocations.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocations.java similarity index 100% rename from java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocations.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocations.java diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocationsImpl.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocationsImpl.java similarity index 100% rename from java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocationsImpl.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocationsImpl.java diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java similarity index 100% rename from java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java similarity index 100% rename from java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java similarity index 100% rename from java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java similarity index 100% rename from java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasks.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasks.java new file mode 100644 index 000000000000..a7389bfc1303 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasks.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTasks implements MockGrpcService { + private final MockTasksImpl serviceImpl; + + public MockTasks() { + serviceImpl = new MockTasksImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasksImpl.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasksImpl.java new file mode 100644 index 000000000000..9eb3d5b44583 --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasksImpl.java @@ -0,0 +1,101 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.core.BetaApi; +import com.google.cloud.run.v2.TasksGrpc.TasksImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTasksImpl extends TasksImplBase { + private List requests; + private Queue responses; + + public MockTasksImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getTask(GetTaskRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Task) { + requests.add(request); + responseObserver.onNext(((Task) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTask, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Task.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTasks( + ListTasksRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTasksResponse) { + requests.add(request); + responseObserver.onNext(((ListTasksResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTasks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTasksResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java similarity index 100% rename from java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java similarity index 100% rename from java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java similarity index 100% rename from java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java similarity index 100% rename from java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java rename to owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java new file mode 100644 index 000000000000..d62e8ab42d5f --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java @@ -0,0 +1,330 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import static com.google.cloud.run.v2.TasksClient.ListTasksPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.run.v2.stub.HttpJsonTasksStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Duration; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TasksClientHttpJsonTest { + private static MockHttpService mockService; + private static TasksClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTasksStub.getMethodDescriptors(), TasksSettings.getDefaultEndpoint()); + TasksSettings settings = + TasksSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TasksSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TasksClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName( + TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setExecution( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .addAllContainers(new ArrayList()) + .addAllVolumes(new ArrayList()) + .setMaxRetries(1129288043) + .setTimeout(Duration.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setExecutionEnvironment(ExecutionEnvironment.forNumber(0)) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setIndex(100346066) + .setRetried(1098377527) + .setLastAttemptResult(TaskAttemptResult.newBuilder().build()) + .setEncryptionKey("encryptionKey-36224036") + .setVpcAccess(VpcAccess.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]"); + + Task actualResponse = client.getTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]"); + client.getTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName( + TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setExecution( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .addAllContainers(new ArrayList()) + .addAllVolumes(new ArrayList()) + .setMaxRetries(1129288043) + .setTimeout(Duration.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setExecutionEnvironment(ExecutionEnvironment.forNumber(0)) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setIndex(100346066) + .setRetried(1098377527) + .setLastAttemptResult(TaskAttemptResult.newBuilder().build()) + .setEncryptionKey("encryptionKey-36224036") + .setVpcAccess(VpcAccess.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-119/locations/location-119/jobs/job-119/executions/execution-119/tasks/task-119"; + + Task actualResponse = client.getTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-119/locations/location-119/jobs/job-119/executions/execution-119/tasks/task-119"; + client.getTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTasksTest() throws Exception { + Task responsesElement = Task.newBuilder().build(); + ListTasksResponse expectedResponse = + ListTasksResponse.newBuilder() + .setNextPageToken("") + .addAllTasks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + + ListTasksPagedResponse pagedListResponse = client.listTasks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTasksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + client.listTasks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTasksTest2() throws Exception { + Task responsesElement = Task.newBuilder().build(); + ListTasksResponse expectedResponse = + ListTasksResponse.newBuilder() + .setNextPageToken("") + .addAllTasks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-1154/locations/location-1154/jobs/job-1154/executions/execution-1154"; + + ListTasksPagedResponse pagedListResponse = client.listTasks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTasksExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1154/locations/location-1154/jobs/job-1154/executions/execution-1154"; + client.listTasks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java new file mode 100644 index 000000000000..9ea41fda007b --- /dev/null +++ b/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java @@ -0,0 +1,308 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import static com.google.cloud.run.v2.TasksClient.ListTasksPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Duration; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TasksClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockTasks mockTasks; + private LocalChannelProvider channelProvider; + private TasksClient client; + + @BeforeClass + public static void startStaticServer() { + mockTasks = new MockTasks(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTasks, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TasksSettings settings = + TasksSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TasksClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName( + TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setExecution( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .addAllContainers(new ArrayList()) + .addAllVolumes(new ArrayList()) + .setMaxRetries(1129288043) + .setTimeout(Duration.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setExecutionEnvironment(ExecutionEnvironment.forNumber(0)) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setIndex(100346066) + .setRetried(1098377527) + .setLastAttemptResult(TaskAttemptResult.newBuilder().build()) + .setEncryptionKey("encryptionKey-36224036") + .setVpcAccess(VpcAccess.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockTasks.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]"); + + Task actualResponse = client.getTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTasks.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTaskRequest actualRequest = ((GetTaskRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTaskExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTasks.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]"); + client.getTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName( + TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]").toString()) + .setUid("uid115792") + .setGeneration(305703192) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setCompletionTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .setJob(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setExecution( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .addAllContainers(new ArrayList()) + .addAllVolumes(new ArrayList()) + .setMaxRetries(1129288043) + .setTimeout(Duration.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setExecutionEnvironment(ExecutionEnvironment.forNumber(0)) + .setReconciling(true) + .addAllConditions(new ArrayList()) + .setObservedGeneration(900833007) + .setIndex(100346066) + .setRetried(1098377527) + .setLastAttemptResult(TaskAttemptResult.newBuilder().build()) + .setEncryptionKey("encryptionKey-36224036") + .setVpcAccess(VpcAccess.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockTasks.addResponse(expectedResponse); + + String name = "name3373707"; + + Task actualResponse = client.getTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTasks.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTaskRequest actualRequest = ((GetTaskRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTaskExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTasks.addException(exception); + + try { + String name = "name3373707"; + client.getTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTasksTest() throws Exception { + Task responsesElement = Task.newBuilder().build(); + ListTasksResponse expectedResponse = + ListTasksResponse.newBuilder() + .setNextPageToken("") + .addAllTasks(Arrays.asList(responsesElement)) + .build(); + mockTasks.addResponse(expectedResponse); + + ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + + ListTasksPagedResponse pagedListResponse = client.listTasks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); + + List actualRequests = mockTasks.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTasksRequest actualRequest = ((ListTasksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTasksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTasks.addException(exception); + + try { + ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + client.listTasks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTasksTest2() throws Exception { + Task responsesElement = Task.newBuilder().build(); + ListTasksResponse expectedResponse = + ListTasksResponse.newBuilder() + .setNextPageToken("") + .addAllTasks(Arrays.asList(responsesElement)) + .build(); + mockTasks.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTasksPagedResponse pagedListResponse = client.listTasks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); + + List actualRequests = mockTasks.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTasksRequest actualRequest = ((ListTasksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTasksExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTasks.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTasks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java new file mode 100644 index 000000000000..f4dc9b6d4019 --- /dev/null +++ b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java @@ -0,0 +1,475 @@ +package com.google.cloud.run.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Cloud Run Execution Control Plane API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/run/v2/execution.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ExecutionsGrpc { + + private ExecutionsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.run.v2.Executions"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExecution", + requestType = com.google.cloud.run.v2.GetExecutionRequest.class, + responseType = com.google.cloud.run.v2.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetExecutionMethod() { + io.grpc.MethodDescriptor getGetExecutionMethod; + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + ExecutionsGrpc.getGetExecutionMethod = getGetExecutionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.GetExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.Execution.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) + .build(); + } + } + } + return getGetExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExecutions", + requestType = com.google.cloud.run.v2.ListExecutionsRequest.class, + responseType = com.google.cloud.run.v2.ListExecutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListExecutionsMethod() { + io.grpc.MethodDescriptor getListExecutionsMethod; + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + ExecutionsGrpc.getListExecutionsMethod = getListExecutionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListExecutionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListExecutionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) + .build(); + } + } + } + return getListExecutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteExecution", + requestType = com.google.cloud.run.v2.DeleteExecutionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteExecutionMethod() { + io.grpc.MethodDescriptor getDeleteExecutionMethod; + if ((getDeleteExecutionMethod = ExecutionsGrpc.getDeleteExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getDeleteExecutionMethod = ExecutionsGrpc.getDeleteExecutionMethod) == null) { + ExecutionsGrpc.getDeleteExecutionMethod = getDeleteExecutionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.DeleteExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("DeleteExecution")) + .build(); + } + } + } + return getDeleteExecutionMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ExecutionsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + }; + return ExecutionsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ExecutionsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + }; + return ExecutionsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ExecutionsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + }; + return ExecutionsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Cloud Run Execution Control Plane API.
+   * 
+ */ + public static abstract class ExecutionsImplBase implements io.grpc.BindableService { + + /** + *
+     * Gets information about an Execution.
+     * 
+ */ + public void getExecution(com.google.cloud.run.v2.GetExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExecutionMethod(), responseObserver); + } + + /** + *
+     * Lists Executions from a Job.
+     * 
+ */ + public void listExecutions(com.google.cloud.run.v2.ListExecutionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExecutionsMethod(), responseObserver); + } + + /** + *
+     * Deletes an Execution.
+     * 
+ */ + public void deleteExecution(com.google.cloud.run.v2.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteExecutionMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.GetExecutionRequest, + com.google.cloud.run.v2.Execution>( + this, METHODID_GET_EXECUTION))) + .addMethod( + getListExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.ListExecutionsRequest, + com.google.cloud.run.v2.ListExecutionsResponse>( + this, METHODID_LIST_EXECUTIONS))) + .addMethod( + getDeleteExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.DeleteExecutionRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_EXECUTION))) + .build(); + } + } + + /** + *
+   * Cloud Run Execution Control Plane API.
+   * 
+ */ + public static final class ExecutionsStub extends io.grpc.stub.AbstractAsyncStub { + private ExecutionsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + + /** + *
+     * Gets information about an Execution.
+     * 
+ */ + public void getExecution(com.google.cloud.run.v2.GetExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Executions from a Job.
+     * 
+ */ + public void listExecutions(com.google.cloud.run.v2.ListExecutionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an Execution.
+     * 
+ */ + public void deleteExecution(com.google.cloud.run.v2.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Cloud Run Execution Control Plane API.
+   * 
+ */ + public static final class ExecutionsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ExecutionsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + + /** + *
+     * Gets information about an Execution.
+     * 
+ */ + public com.google.cloud.run.v2.Execution getExecution(com.google.cloud.run.v2.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Executions from a Job.
+     * 
+ */ + public com.google.cloud.run.v2.ListExecutionsResponse listExecutions(com.google.cloud.run.v2.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an Execution.
+     * 
+ */ + public com.google.longrunning.Operation deleteExecution(com.google.cloud.run.v2.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Cloud Run Execution Control Plane API.
+   * 
+ */ + public static final class ExecutionsFutureStub extends io.grpc.stub.AbstractFutureStub { + private ExecutionsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + + /** + *
+     * Gets information about an Execution.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getExecution( + com.google.cloud.run.v2.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Executions from a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listExecutions( + com.google.cloud.run.v2.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an Execution.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteExecution( + com.google.cloud.run.v2.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_EXECUTION = 0; + private static final int METHODID_LIST_EXECUTIONS = 1; + private static final int METHODID_DELETE_EXECUTION = 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 ExecutionsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ExecutionsImplBase 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_EXECUTION: + serviceImpl.getExecution((com.google.cloud.run.v2.GetExecutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EXECUTIONS: + serviceImpl.listExecutions((com.google.cloud.run.v2.ListExecutionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EXECUTION: + serviceImpl.deleteExecution((com.google.cloud.run.v2.DeleteExecutionRequest) 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 ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ExecutionsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Executions"); + } + } + + private static final class ExecutionsFileDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier { + ExecutionsFileDescriptorSupplier() {} + } + + private static final class ExecutionsMethodDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ExecutionsMethodDescriptorSupplier(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 (ExecutionsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) + .addMethod(getGetExecutionMethod()) + .addMethod(getListExecutionsMethod()) + .addMethod(getDeleteExecutionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java new file mode 100644 index 000000000000..606030cb6ebb --- /dev/null +++ b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java @@ -0,0 +1,1003 @@ +package com.google.cloud.run.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Cloud Run Job Control Plane API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/run/v2/job.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class JobsGrpc { + + private JobsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.run.v2.Jobs"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateJob", + requestType = com.google.cloud.run.v2.CreateJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateJobMethod() { + io.grpc.MethodDescriptor getCreateJobMethod; + if ((getCreateJobMethod = JobsGrpc.getCreateJobMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getCreateJobMethod = JobsGrpc.getCreateJobMethod) == null) { + JobsGrpc.getCreateJobMethod = getCreateJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.CreateJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("CreateJob")) + .build(); + } + } + } + return getCreateJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetJob", + requestType = com.google.cloud.run.v2.GetJobRequest.class, + responseType = com.google.cloud.run.v2.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetJobMethod() { + io.grpc.MethodDescriptor getGetJobMethod; + if ((getGetJobMethod = JobsGrpc.getGetJobMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getGetJobMethod = JobsGrpc.getGetJobMethod) == null) { + JobsGrpc.getGetJobMethod = getGetJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.GetJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("GetJob")) + .build(); + } + } + } + return getGetJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getListJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListJobs", + requestType = com.google.cloud.run.v2.ListJobsRequest.class, + responseType = com.google.cloud.run.v2.ListJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListJobsMethod() { + io.grpc.MethodDescriptor getListJobsMethod; + if ((getListJobsMethod = JobsGrpc.getListJobsMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getListJobsMethod = JobsGrpc.getListJobsMethod) == null) { + JobsGrpc.getListJobsMethod = getListJobsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListJobsResponse.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("ListJobs")) + .build(); + } + } + } + return getListJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateJob", + requestType = com.google.cloud.run.v2.UpdateJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateJobMethod() { + io.grpc.MethodDescriptor getUpdateJobMethod; + if ((getUpdateJobMethod = JobsGrpc.getUpdateJobMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getUpdateJobMethod = JobsGrpc.getUpdateJobMethod) == null) { + JobsGrpc.getUpdateJobMethod = getUpdateJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.UpdateJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("UpdateJob")) + .build(); + } + } + } + return getUpdateJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteJob", + requestType = com.google.cloud.run.v2.DeleteJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteJobMethod() { + io.grpc.MethodDescriptor getDeleteJobMethod; + if ((getDeleteJobMethod = JobsGrpc.getDeleteJobMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getDeleteJobMethod = JobsGrpc.getDeleteJobMethod) == null) { + JobsGrpc.getDeleteJobMethod = getDeleteJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.DeleteJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("DeleteJob")) + .build(); + } + } + } + return getDeleteJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getRunJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunJob", + requestType = com.google.cloud.run.v2.RunJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRunJobMethod() { + io.grpc.MethodDescriptor getRunJobMethod; + if ((getRunJobMethod = JobsGrpc.getRunJobMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getRunJobMethod = JobsGrpc.getRunJobMethod) == null) { + JobsGrpc.getRunJobMethod = getRunJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.RunJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("RunJob")) + .build(); + } + } + } + return getRunJobMethod; + } + + 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 = JobsGrpc.getGetIamPolicyMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getGetIamPolicyMethod = JobsGrpc.getGetIamPolicyMethod) == null) { + JobsGrpc.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 JobsMethodDescriptorSupplier("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 = JobsGrpc.getSetIamPolicyMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getSetIamPolicyMethod = JobsGrpc.getSetIamPolicyMethod) == null) { + JobsGrpc.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 JobsMethodDescriptorSupplier("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 = JobsGrpc.getTestIamPermissionsMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getTestIamPermissionsMethod = JobsGrpc.getTestIamPermissionsMethod) == null) { + JobsGrpc.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 JobsMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static JobsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsStub(channel, callOptions); + } + }; + return JobsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static JobsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsBlockingStub(channel, callOptions); + } + }; + return JobsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static JobsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsFutureStub(channel, callOptions); + } + }; + return JobsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Cloud Run Job Control Plane API.
+   * 
+ */ + public static abstract class JobsImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a Job.
+     * 
+ */ + public void createJob(com.google.cloud.run.v2.CreateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateJobMethod(), responseObserver); + } + + /** + *
+     * Gets information about a Job.
+     * 
+ */ + public void getJob(com.google.cloud.run.v2.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); + } + + /** + *
+     * Lists Jobs.
+     * 
+ */ + public void listJobs(com.google.cloud.run.v2.ListJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); + } + + /** + *
+     * Updates a Job.
+     * 
+ */ + public void updateJob(com.google.cloud.run.v2.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); + } + + /** + *
+     * Deletes a Job.
+     * 
+ */ + public void deleteJob(com.google.cloud.run.v2.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); + } + + /** + *
+     * Triggers creation of a new Execution of this Job.
+     * 
+ */ + public void runJob(com.google.cloud.run.v2.RunJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunJobMethod(), responseObserver); + } + + /** + *
+     * Get the IAM Access Control policy currently in effect for the given Job.
+     * 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 Job. 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( + getCreateJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.CreateJobRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_JOB))) + .addMethod( + getGetJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.GetJobRequest, + com.google.cloud.run.v2.Job>( + this, METHODID_GET_JOB))) + .addMethod( + getListJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.ListJobsRequest, + com.google.cloud.run.v2.ListJobsResponse>( + this, METHODID_LIST_JOBS))) + .addMethod( + getUpdateJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.UpdateJobRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_JOB))) + .addMethod( + getDeleteJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.DeleteJobRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_JOB))) + .addMethod( + getRunJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.RunJobRequest, + com.google.longrunning.Operation>( + this, METHODID_RUN_JOB))) + .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 Job Control Plane API.
+   * 
+ */ + public static final class JobsStub extends io.grpc.stub.AbstractAsyncStub { + private JobsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsStub(channel, callOptions); + } + + /** + *
+     * Creates a Job.
+     * 
+ */ + public void createJob(com.google.cloud.run.v2.CreateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets information about a Job.
+     * 
+ */ + public void getJob(com.google.cloud.run.v2.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Jobs.
+     * 
+ */ + public void listJobs(com.google.cloud.run.v2.ListJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a Job.
+     * 
+ */ + public void updateJob(com.google.cloud.run.v2.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a Job.
+     * 
+ */ + public void deleteJob(com.google.cloud.run.v2.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Triggers creation of a new Execution of this Job.
+     * 
+ */ + public void runJob(com.google.cloud.run.v2.RunJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get the IAM Access Control policy currently in effect for the given Job.
+     * 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 Job. 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 Job Control Plane API.
+   * 
+ */ + public static final class JobsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private JobsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a Job.
+     * 
+ */ + public com.google.longrunning.Operation createJob(com.google.cloud.run.v2.CreateJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets information about a Job.
+     * 
+ */ + public com.google.cloud.run.v2.Job getJob(com.google.cloud.run.v2.GetJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Jobs.
+     * 
+ */ + public com.google.cloud.run.v2.ListJobsResponse listJobs(com.google.cloud.run.v2.ListJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListJobsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a Job.
+     * 
+ */ + public com.google.longrunning.Operation updateJob(com.google.cloud.run.v2.UpdateJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a Job.
+     * 
+ */ + public com.google.longrunning.Operation deleteJob(com.google.cloud.run.v2.DeleteJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Triggers creation of a new Execution of this Job.
+     * 
+ */ + public com.google.longrunning.Operation runJob(com.google.cloud.run.v2.RunJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Get the IAM Access Control policy currently in effect for the given Job.
+     * 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 Job. 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 Job Control Plane API.
+   * 
+ */ + public static final class JobsFutureStub extends io.grpc.stub.AbstractFutureStub { + private JobsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createJob( + com.google.cloud.run.v2.CreateJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets information about a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getJob( + com.google.cloud.run.v2.GetJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Jobs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listJobs( + com.google.cloud.run.v2.ListJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListJobsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateJob( + com.google.cloud.run.v2.UpdateJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteJob( + com.google.cloud.run.v2.DeleteJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Triggers creation of a new Execution of this Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture runJob( + com.google.cloud.run.v2.RunJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Get the IAM Access Control policy currently in effect for the given Job.
+     * 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 Job. 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_JOB = 0; + private static final int METHODID_GET_JOB = 1; + private static final int METHODID_LIST_JOBS = 2; + private static final int METHODID_UPDATE_JOB = 3; + private static final int METHODID_DELETE_JOB = 4; + private static final int METHODID_RUN_JOB = 5; + private static final int METHODID_GET_IAM_POLICY = 6; + private static final int METHODID_SET_IAM_POLICY = 7; + private static final int METHODID_TEST_IAM_PERMISSIONS = 8; + + 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 JobsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(JobsImplBase 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_JOB: + serviceImpl.createJob((com.google.cloud.run.v2.CreateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_JOB: + serviceImpl.getJob((com.google.cloud.run.v2.GetJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_JOBS: + serviceImpl.listJobs((com.google.cloud.run.v2.ListJobsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_JOB: + serviceImpl.updateJob((com.google.cloud.run.v2.UpdateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_JOB: + serviceImpl.deleteJob((com.google.cloud.run.v2.DeleteJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RUN_JOB: + serviceImpl.runJob((com.google.cloud.run.v2.RunJobRequest) 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 JobsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + JobsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.run.v2.JobProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Jobs"); + } + } + + private static final class JobsFileDescriptorSupplier + extends JobsBaseDescriptorSupplier { + JobsFileDescriptorSupplier() {} + } + + private static final class JobsMethodDescriptorSupplier + extends JobsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + JobsMethodDescriptorSupplier(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 (JobsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new JobsFileDescriptorSupplier()) + .addMethod(getCreateJobMethod()) + .addMethod(getGetJobMethod()) + .addMethod(getListJobsMethod()) + .addMethod(getUpdateJobMethod()) + .addMethod(getDeleteJobMethod()) + .addMethod(getRunJobMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java new file mode 100644 index 000000000000..0276297fd4ae --- /dev/null +++ b/owl-bot-staging/java-run/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); + } + + /** + *
+     * Lists 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); + } + + /** + *
+     * Deletes 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); + } + + /** + *
+     * Lists 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); + } + + /** + *
+     * Deletes 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); + } + + /** + *
+     * Lists 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); + } + + /** + *
+     * Deletes 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); + } + + /** + *
+     * Lists 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); + } + + /** + *
+     * Deletes 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/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java new file mode 100644 index 000000000000..c61b0f4f020f --- /dev/null +++ b/owl-bot-staging/java-run/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); + } + + /** + *
+     * Lists 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); + } + + /** + *
+     * Gets 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); + } + + /** + *
+     * Lists 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); + } + + /** + *
+     * Gets 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); + } + + /** + *
+     * Lists 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); + } + + /** + *
+     * Gets 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); + } + + /** + *
+     * Lists 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); + } + + /** + *
+     * Gets 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/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java new file mode 100644 index 000000000000..fb9c85040af0 --- /dev/null +++ b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java @@ -0,0 +1,389 @@ +package com.google.cloud.run.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Cloud Run Task Control Plane API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/run/v2/task.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TasksGrpc { + + private TasksGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.run.v2.Tasks"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetTaskMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTask", + requestType = com.google.cloud.run.v2.GetTaskRequest.class, + responseType = com.google.cloud.run.v2.Task.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTaskMethod() { + io.grpc.MethodDescriptor getGetTaskMethod; + if ((getGetTaskMethod = TasksGrpc.getGetTaskMethod) == null) { + synchronized (TasksGrpc.class) { + if ((getGetTaskMethod = TasksGrpc.getGetTaskMethod) == null) { + TasksGrpc.getGetTaskMethod = getGetTaskMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTask")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.GetTaskRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.Task.getDefaultInstance())) + .setSchemaDescriptor(new TasksMethodDescriptorSupplier("GetTask")) + .build(); + } + } + } + return getGetTaskMethod; + } + + private static volatile io.grpc.MethodDescriptor getListTasksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTasks", + requestType = com.google.cloud.run.v2.ListTasksRequest.class, + responseType = com.google.cloud.run.v2.ListTasksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTasksMethod() { + io.grpc.MethodDescriptor getListTasksMethod; + if ((getListTasksMethod = TasksGrpc.getListTasksMethod) == null) { + synchronized (TasksGrpc.class) { + if ((getListTasksMethod = TasksGrpc.getListTasksMethod) == null) { + TasksGrpc.getListTasksMethod = getListTasksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTasks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListTasksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListTasksResponse.getDefaultInstance())) + .setSchemaDescriptor(new TasksMethodDescriptorSupplier("ListTasks")) + .build(); + } + } + } + return getListTasksMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TasksStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TasksStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksStub(channel, callOptions); + } + }; + return TasksStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TasksBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TasksBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksBlockingStub(channel, callOptions); + } + }; + return TasksBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TasksFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TasksFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksFutureStub(channel, callOptions); + } + }; + return TasksFutureStub.newStub(factory, channel); + } + + /** + *
+   * Cloud Run Task Control Plane API.
+   * 
+ */ + public static abstract class TasksImplBase implements io.grpc.BindableService { + + /** + *
+     * Gets information about a Task.
+     * 
+ */ + public void getTask(com.google.cloud.run.v2.GetTaskRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); + } + + /** + *
+     * Lists Tasks from an Execution of a Job.
+     * 
+ */ + public void listTasks(com.google.cloud.run.v2.ListTasksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetTaskMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.GetTaskRequest, + com.google.cloud.run.v2.Task>( + this, METHODID_GET_TASK))) + .addMethod( + getListTasksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.ListTasksRequest, + com.google.cloud.run.v2.ListTasksResponse>( + this, METHODID_LIST_TASKS))) + .build(); + } + } + + /** + *
+   * Cloud Run Task Control Plane API.
+   * 
+ */ + public static final class TasksStub extends io.grpc.stub.AbstractAsyncStub { + private TasksStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TasksStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksStub(channel, callOptions); + } + + /** + *
+     * Gets information about a Task.
+     * 
+ */ + public void getTask(com.google.cloud.run.v2.GetTaskRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Tasks from an Execution of a Job.
+     * 
+ */ + public void listTasks(com.google.cloud.run.v2.ListTasksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Cloud Run Task Control Plane API.
+   * 
+ */ + public static final class TasksBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private TasksBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TasksBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksBlockingStub(channel, callOptions); + } + + /** + *
+     * Gets information about a Task.
+     * 
+ */ + public com.google.cloud.run.v2.Task getTask(com.google.cloud.run.v2.GetTaskRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTaskMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Tasks from an Execution of a Job.
+     * 
+ */ + public com.google.cloud.run.v2.ListTasksResponse listTasks(com.google.cloud.run.v2.ListTasksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTasksMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Cloud Run Task Control Plane API.
+   * 
+ */ + public static final class TasksFutureStub extends io.grpc.stub.AbstractFutureStub { + private TasksFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TasksFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksFutureStub(channel, callOptions); + } + + /** + *
+     * Gets information about a Task.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTask( + com.google.cloud.run.v2.GetTaskRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Tasks from an Execution of a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTasks( + com.google.cloud.run.v2.ListTasksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTasksMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_TASK = 0; + private static final int METHODID_LIST_TASKS = 1; + + 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 TasksImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TasksImplBase 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_TASK: + serviceImpl.getTask((com.google.cloud.run.v2.GetTaskRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TASKS: + serviceImpl.listTasks((com.google.cloud.run.v2.ListTasksRequest) 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 TasksBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TasksBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.run.v2.TaskProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Tasks"); + } + } + + private static final class TasksFileDescriptorSupplier + extends TasksBaseDescriptorSupplier { + TasksFileDescriptorSupplier() {} + } + + private static final class TasksMethodDescriptorSupplier + extends TasksBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TasksMethodDescriptorSupplier(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 (TasksGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TasksFileDescriptorSupplier()) + .addMethod(getGetTaskMethod()) + .addMethod(getListTasksMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java similarity index 70% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java index cdab7f9e9a1a..7a1397239e49 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java @@ -1,83 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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; } - - 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; } @@ -93,35 +71,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 @@ -129,15 +102,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 @@ -151,8 +121,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.
@@ -161,7 +129,6 @@ public boolean getUseDefault() {
    * 
* * string breakglass_justification = 2; - * * @return The breakglassJustification. */ @java.lang.Override @@ -170,15 +137,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.
@@ -187,15 +153,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 { @@ -204,7 +171,6 @@ public com.google.protobuf.ByteString getBreakglassJustificationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,9 +182,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_); @@ -233,9 +201,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_); @@ -248,19 +216,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: @@ -281,7 +250,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: @@ -291,136 +261,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -432,9 +396,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 @@ -453,8 +417,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_; } @@ -468,39 +431,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; @@ -514,15 +476,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.getUnknownFields()); onChanged(); @@ -550,25 +510,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - binauthzMethod_ = input.readBool(); - binauthzMethodCase_ = 1; - break; - } // case 8 - case 18: - { - breakglassJustification_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + binauthzMethod_ = input.readBool(); + binauthzMethodCase_ = 1; + break; + } // case 8 + case 18: { + breakglassJustification_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,12 +535,12 @@ public Builder mergeFrom( } // finally 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() { @@ -593,31 +550,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() { @@ -627,15 +579,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. */ @@ -646,15 +595,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() { @@ -668,8 +614,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.
@@ -678,13 +622,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; @@ -693,8 +637,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.
@@ -703,14 +645,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 { @@ -718,8 +661,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.
@@ -728,22 +669,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.
@@ -752,18 +691,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.
@@ -772,23 +708,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); } @@ -798,12 +734,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(); } @@ -812,27 +748,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,4 +783,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.BinaryAuthorization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java similarity index 69% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java index e5d7041eb156..5080ca3d785c 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java similarity index 71% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java index b63a2340121d..86b52826d3f6 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java @@ -1,77 +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; /** - * - * *
  * Represents a specific Cloud SQL instance.
  * 
* * Protobuf type {@code google.cloud.run.v2.CloudSqlInstance} */ -public final class CloudSqlInstance extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CloudSqlInstance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.CloudSqlInstance) CloudSqlInstanceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CloudSqlInstance.newBuilder() to construct. private CloudSqlInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudSqlInstance() { instances_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CloudSqlInstance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CloudSqlInstance.class, - com.google.cloud.run.v2.CloudSqlInstance.Builder.class); + com.google.cloud.run.v2.CloudSqlInstance.class, com.google.cloud.run.v2.CloudSqlInstance.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList instances_; /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -81,15 +60,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string instances = 1; - * * @return A list containing the instances. */ - public com.google.protobuf.ProtocolStringList getInstancesList() { + public com.google.protobuf.ProtocolStringList + getInstancesList() { return instances_; } /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -99,15 +76,12 @@ public com.google.protobuf.ProtocolStringList getInstancesList() {
    * 
* * repeated string instances = 1; - * * @return The count of instances. */ public int getInstancesCount() { return instances_.size(); } /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -117,7 +91,6 @@ public int getInstancesCount() {
    * 
* * repeated string instances = 1; - * * @param index The index of the element to return. * @return The instances at the given index. */ @@ -125,8 +98,6 @@ public java.lang.String getInstances(int index) { return instances_.get(index); } /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -136,16 +107,15 @@ public java.lang.String getInstances(int index) {
    * 
* * repeated string instances = 1; - * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - public com.google.protobuf.ByteString getInstancesBytes(int index) { + public com.google.protobuf.ByteString + getInstancesBytes(int index) { return instances_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,7 +127,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instances_.getRaw(i)); } @@ -186,14 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.CloudSqlInstance)) { return super.equals(obj); } com.google.cloud.run.v2.CloudSqlInstance other = (com.google.cloud.run.v2.CloudSqlInstance) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,136 +186,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +319,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 @@ -374,8 +340,7 @@ public com.google.cloud.run.v2.CloudSqlInstance build() { @java.lang.Override public com.google.cloud.run.v2.CloudSqlInstance buildPartial() { - com.google.cloud.run.v2.CloudSqlInstance result = - new com.google.cloud.run.v2.CloudSqlInstance(this); + com.google.cloud.run.v2.CloudSqlInstance result = new com.google.cloud.run.v2.CloudSqlInstance(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { instances_ = instances_.getUnmodifiableView(); @@ -390,39 +355,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; @@ -467,20 +431,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstancesIsMutable(); - instances_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstancesIsMutable(); + instances_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -490,21 +452,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList instances_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList instances_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new com.google.protobuf.LazyStringArrayList(instances_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -514,15 +471,13 @@ private void ensureInstancesIsMutable() {
      * 
* * repeated string instances = 1; - * * @return A list containing the instances. */ - public com.google.protobuf.ProtocolStringList getInstancesList() { + public com.google.protobuf.ProtocolStringList + getInstancesList() { return instances_.getUnmodifiableView(); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -532,15 +487,12 @@ public com.google.protobuf.ProtocolStringList getInstancesList() {
      * 
* * repeated string instances = 1; - * * @return The count of instances. */ public int getInstancesCount() { return instances_.size(); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -550,7 +502,6 @@ public int getInstancesCount() {
      * 
* * repeated string instances = 1; - * * @param index The index of the element to return. * @return The instances at the given index. */ @@ -558,8 +509,6 @@ public java.lang.String getInstances(int index) { return instances_.get(index); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -569,16 +518,14 @@ public java.lang.String getInstances(int index) {
      * 
* * repeated string instances = 1; - * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - public com.google.protobuf.ByteString getInstancesBytes(int index) { + public com.google.protobuf.ByteString + getInstancesBytes(int index) { return instances_.getByteString(index); } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -588,23 +535,21 @@ public com.google.protobuf.ByteString getInstancesBytes(int index) {
      * 
* * repeated string instances = 1; - * * @param index The index to set the value at. * @param value The instances to set. * @return This builder for chaining. */ - public Builder setInstances(int index, java.lang.String value) { + public Builder setInstances( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); + throw new NullPointerException(); + } + ensureInstancesIsMutable(); instances_.set(index, value); onChanged(); return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -614,22 +559,20 @@ public Builder setInstances(int index, java.lang.String value) {
      * 
* * repeated string instances = 1; - * * @param value The instances to add. * @return This builder for chaining. */ - public Builder addInstances(java.lang.String value) { + public Builder addInstances( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); + throw new NullPointerException(); + } + ensureInstancesIsMutable(); instances_.add(value); onChanged(); return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -639,19 +582,18 @@ public Builder addInstances(java.lang.String value) {
      * 
* * repeated string instances = 1; - * * @param values The instances to add. * @return This builder for chaining. */ - public Builder addAllInstances(java.lang.Iterable values) { + public Builder addAllInstances( + java.lang.Iterable values) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instances_); onChanged(); return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -661,7 +603,6 @@ public Builder addAllInstances(java.lang.Iterable values) {
      * 
* * repeated string instances = 1; - * * @return This builder for chaining. */ public Builder clearInstances() { @@ -671,8 +612,6 @@ public Builder clearInstances() { return this; } /** - * - * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -682,23 +621,23 @@ public Builder clearInstances() {
      * 
* * repeated string instances = 1; - * * @param value The bytes of the instances to add. * @return This builder for chaining. */ - public Builder addInstancesBytes(com.google.protobuf.ByteString value) { + public Builder addInstancesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInstancesIsMutable(); instances_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -708,12 +647,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(); } @@ -722,27 +661,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -757,4 +696,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.CloudSqlInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java similarity index 72% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java index e3e803e2dd2a..7d86c2e56e33 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface CloudSqlInstanceOrBuilder - extends +public interface CloudSqlInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.CloudSqlInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -35,13 +17,11 @@ public interface CloudSqlInstanceOrBuilder
    * 
* * repeated string instances = 1; - * * @return A list containing the instances. */ - java.util.List getInstancesList(); + java.util.List + getInstancesList(); /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -51,13 +31,10 @@ public interface CloudSqlInstanceOrBuilder
    * 
* * repeated string instances = 1; - * * @return The count of instances. */ int getInstancesCount(); /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -67,14 +44,11 @@ public interface CloudSqlInstanceOrBuilder
    * 
* * repeated string instances = 1; - * * @param index The index of the element to return. * @return The instances at the given index. */ java.lang.String getInstances(int index); /** - * - * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -84,9 +58,9 @@ public interface CloudSqlInstanceOrBuilder
    * 
* * repeated string instances = 1; - * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - com.google.protobuf.ByteString getInstancesBytes(int index); + com.google.protobuf.ByteString + getInstancesBytes(int index); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java similarity index 75% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java index e6506791795d..e6edf8e4877b 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java +++ b/owl-bot-staging/java-run/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,43 +28,39 @@ 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; } - - 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.
      * 
@@ -91,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -101,8 +77,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CONDITION_PENDING(1), /** - * - * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -111,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CONDITION_RECONCILING(2), /** - * - * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -121,8 +93,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CONDITION_FAILED(3), /** - * - * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -134,8 +104,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -144,8 +112,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -154,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONDITION_PENDING_VALUE = 1; /** - * - * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -164,8 +128,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONDITION_RECONCILING_VALUE = 2; /** - * - * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -174,8 +136,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONDITION_FAILED_VALUE = 3; /** - * - * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -184,6 +144,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( @@ -208,53 +169,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CONDITION_PENDING; - case 2: - return CONDITION_RECONCILING; - case 3: - return CONDITION_FAILED; - case 4: - return CONDITION_SUCCEEDED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return STATE_UNSPECIFIED; + case 1: return CONDITION_PENDING; + case 2: return CONDITION_RECONCILING; + case 3: return CONDITION_FAILED; + case 4: return CONDITION_SUCCEEDED; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -272,18 +231,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
      * 
@@ -292,8 +248,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ SEVERITY_UNSPECIFIED(0), /** - * - * *
      * Error severity.
      * 
@@ -302,8 +256,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(1), /** - * - * *
      * Warning severity.
      * 
@@ -312,8 +264,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ WARNING(2), /** - * - * *
      * Info severity.
      * 
@@ -325,8 +275,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified severity
      * 
@@ -335,8 +283,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Error severity.
      * 
@@ -345,8 +291,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 1; /** - * - * *
      * Warning severity.
      * 
@@ -355,8 +299,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARNING_VALUE = 2; /** - * - * *
      * Info severity.
      * 
@@ -365,6 +307,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( @@ -389,51 +332,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; @@ -451,18 +393,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.
      * 
@@ -471,8 +410,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ COMMON_REASON_UNDEFINED(0), /** - * - * *
      * Reason unknown. Further details will be in message.
      * 
@@ -481,8 +418,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ UNKNOWN(1), /** - * - * *
      * Revision creation process failed.
      * 
@@ -491,8 +426,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ REVISION_FAILED(3), /** - * - * *
      * Timed out waiting for completion.
      * 
@@ -501,8 +434,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ PROGRESS_DEADLINE_EXCEEDED(4), /** - * - * *
      * The container image path is incorrect.
      * 
@@ -511,8 +442,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_MISSING(6), /** - * - * *
      * Insufficient permissions on the container image.
      * 
@@ -521,8 +450,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_PERMISSION_DENIED(7), /** - * - * *
      * Container image is not authorized by policy.
      * 
@@ -531,8 +458,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_IMAGE_UNAUTHORIZED(8), /** - * - * *
      * Container image policy authorization check failed.
      * 
@@ -541,8 +466,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED(9), /** - * - * *
      * Insufficient permissions on encryption key.
      * 
@@ -551,8 +474,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_KEY_PERMISSION_DENIED(10), /** - * - * *
      * Permission check on encryption key failed.
      * 
@@ -561,8 +482,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ ENCRYPTION_KEY_CHECK_FAILED(11), /** - * - * *
      * At least one Access check on secrets failed.
      * 
@@ -571,8 +490,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ SECRETS_ACCESS_CHECK_FAILED(12), /** - * - * *
      * Waiting for operation to complete.
      * 
@@ -581,8 +498,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ WAITING_FOR_OPERATION(13), /** - * - * *
      * System will retry immediately.
      * 
@@ -591,8 +506,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ IMMEDIATE_RETRY(14), /** - * - * *
      * System will retry later; current attempt failed.
      * 
@@ -601,8 +514,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ POSTPONED_RETRY(15), /** - * - * *
      * An internal error occurred. Further information may be in the message.
      * 
@@ -614,8 +525,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value.
      * 
@@ -624,8 +533,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.
      * 
@@ -634,8 +541,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNKNOWN_VALUE = 1; /** - * - * *
      * Revision creation process failed.
      * 
@@ -644,8 +549,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REVISION_FAILED_VALUE = 3; /** - * - * *
      * Timed out waiting for completion.
      * 
@@ -654,8 +557,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROGRESS_DEADLINE_EXCEEDED_VALUE = 4; /** - * - * *
      * The container image path is incorrect.
      * 
@@ -664,8 +565,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTAINER_MISSING_VALUE = 6; /** - * - * *
      * Insufficient permissions on the container image.
      * 
@@ -674,8 +573,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.
      * 
@@ -684,8 +581,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTAINER_IMAGE_UNAUTHORIZED_VALUE = 8; /** - * - * *
      * Container image policy authorization check failed.
      * 
@@ -694,8 +589,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.
      * 
@@ -704,8 +597,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.
      * 
@@ -714,8 +605,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.
      * 
@@ -724,8 +613,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SECRETS_ACCESS_CHECK_FAILED_VALUE = 12; /** - * - * *
      * Waiting for operation to complete.
      * 
@@ -734,8 +621,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WAITING_FOR_OPERATION_VALUE = 13; /** - * - * *
      * System will retry immediately.
      * 
@@ -744,8 +629,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMMEDIATE_RETRY_VALUE = 14; /** - * - * *
      * System will retry later; current attempt failed.
      * 
@@ -754,8 +637,6 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTPONED_RETRY_VALUE = 15; /** - * - * *
      * An internal error occurred. Further information may be in the message.
      * 
@@ -764,6 +645,7 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERNAL_VALUE = 16; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -788,73 +670,61 @@ public static CommonReason valueOf(int value) { */ public static CommonReason forNumber(int value) { switch (value) { - case 0: - return COMMON_REASON_UNDEFINED; - case 1: - return UNKNOWN; - case 3: - return REVISION_FAILED; - case 4: - return PROGRESS_DEADLINE_EXCEEDED; - case 6: - return CONTAINER_MISSING; - case 7: - return CONTAINER_PERMISSION_DENIED; - case 8: - return CONTAINER_IMAGE_UNAUTHORIZED; - case 9: - return CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED; - case 10: - return ENCRYPTION_KEY_PERMISSION_DENIED; - case 11: - return ENCRYPTION_KEY_CHECK_FAILED; - case 12: - return SECRETS_ACCESS_CHECK_FAILED; - case 13: - return WAITING_FOR_OPERATION; - case 14: - return IMMEDIATE_RETRY; - case 15: - return POSTPONED_RETRY; - case 16: - return INTERNAL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + case 0: return COMMON_REASON_UNDEFINED; + case 1: return UNKNOWN; + case 3: return REVISION_FAILED; + case 4: return PROGRESS_DEADLINE_EXCEEDED; + case 6: return CONTAINER_MISSING; + case 7: return CONTAINER_PERMISSION_DENIED; + case 8: return CONTAINER_IMAGE_UNAUTHORIZED; + case 9: return CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED; + case 10: return ENCRYPTION_KEY_PERMISSION_DENIED; + case 11: return ENCRYPTION_KEY_CHECK_FAILED; + case 12: return SECRETS_ACCESS_CHECK_FAILED; + case 13: return WAITING_FOR_OPERATION; + case 14: return IMMEDIATE_RETRY; + case 15: return POSTPONED_RETRY; + case 16: return INTERNAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + CommonReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CommonReason findValueByNumber(int number) { + return CommonReason.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CommonReason findValueByNumber(int number) { - return CommonReason.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(2); } private static final CommonReason[] VALUES = values(); - public static CommonReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CommonReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -872,18 +742,15 @@ private CommonReason(int value) { } /** - * - * *
    * Reasons specific to Revision resource.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.RevisionReason} */ - public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { + public enum RevisionReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value.
      * 
@@ -892,8 +759,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ REVISION_REASON_UNDEFINED(0), /** - * - * *
      * Revision in Pending state.
      * 
@@ -902,8 +767,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(1), /** - * - * *
      * Revision is in Reserve state.
      * 
@@ -912,8 +775,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RESERVE(2), /** - * - * *
      * Revision is Retired.
      * 
@@ -922,8 +783,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RETIRED(3), /** - * - * *
      * Revision is being retired.
      * 
@@ -932,8 +791,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RETIRING(4), /** - * - * *
      * Revision is being recreated.
      * 
@@ -942,8 +799,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ RECREATING(5), /** - * - * *
      * There was a health check error.
      * 
@@ -952,8 +807,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.
@@ -963,8 +816,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
@@ -975,8 +826,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     MIN_INSTANCES_NOT_PROVISIONED(8),
     /**
-     *
-     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -985,8 +834,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
@@ -997,8 +844,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
@@ -1011,8 +856,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value.
      * 
@@ -1021,8 +864,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REVISION_REASON_UNDEFINED_VALUE = 0; /** - * - * *
      * Revision in Pending state.
      * 
@@ -1031,8 +872,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 1; /** - * - * *
      * Revision is in Reserve state.
      * 
@@ -1041,8 +880,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESERVE_VALUE = 2; /** - * - * *
      * Revision is Retired.
      * 
@@ -1051,8 +888,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETIRED_VALUE = 3; /** - * - * *
      * Revision is being retired.
      * 
@@ -1061,8 +896,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETIRING_VALUE = 4; /** - * - * *
      * Revision is being recreated.
      * 
@@ -1071,8 +904,6 @@ public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RECREATING_VALUE = 5; /** - * - * *
      * There was a health check error.
      * 
@@ -1081,8 +912,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.
@@ -1092,8 +921,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
@@ -1104,8 +931,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.
      * 
@@ -1114,8 +939,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
@@ -1126,8 +949,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
@@ -1137,6 +958,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(
@@ -1161,67 +983,58 @@ public static RevisionReason valueOf(int value) {
      */
     public static RevisionReason forNumber(int value) {
       switch (value) {
-        case 0:
-          return REVISION_REASON_UNDEFINED;
-        case 1:
-          return PENDING;
-        case 2:
-          return RESERVE;
-        case 3:
-          return RETIRED;
-        case 4:
-          return RETIRING;
-        case 5:
-          return RECREATING;
-        case 6:
-          return HEALTH_CHECK_CONTAINER_ERROR;
-        case 7:
-          return CUSTOMIZED_PATH_RESPONSE_PENDING;
-        case 8:
-          return MIN_INSTANCES_NOT_PROVISIONED;
-        case 9:
-          return ACTIVE_REVISION_LIMIT_REACHED;
-        case 10:
-          return NO_DEPLOYMENT;
-        case 11:
-          return HEALTH_CHECK_SKIPPED;
-        default:
-          return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+        case 0: return REVISION_REASON_UNDEFINED;
+        case 1: return PENDING;
+        case 2: return RESERVE;
+        case 3: return RETIRED;
+        case 4: return RETIRING;
+        case 5: return RECREATING;
+        case 6: return HEALTH_CHECK_CONTAINER_ERROR;
+        case 7: return CUSTOMIZED_PATH_RESPONSE_PENDING;
+        case 8: return MIN_INSTANCES_NOT_PROVISIONED;
+        case 9: return ACTIVE_REVISION_LIMIT_REACHED;
+        case 10: return NO_DEPLOYMENT;
+        case 11: return HEALTH_CHECK_SKIPPED;
+        default: return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        RevisionReason> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public RevisionReason findValueByNumber(int number) {
+              return RevisionReason.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public RevisionReason findValueByNumber(int number) {
-            return RevisionReason.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(3);
     }
 
     private static final RevisionReason[] VALUES = values();
 
-    public static RevisionReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static RevisionReason valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -1239,18 +1052,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.
      * 
@@ -1259,8 +1069,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { */ EXECUTION_REASON_UNDEFINED(0), /** - * - * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1269,8 +1077,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.
@@ -1280,8 +1086,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     NON_ZERO_EXIT_CODE(2),
     /**
-     *
-     *
      * 
      * The execution was cancelled by users.
      * 
@@ -1293,8 +1097,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value.
      * 
@@ -1303,8 +1105,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.
      * 
@@ -1313,8 +1113,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.
@@ -1324,8 +1122,6 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NON_ZERO_EXIT_CODE_VALUE = 2;
     /**
-     *
-     *
      * 
      * The execution was cancelled by users.
      * 
@@ -1334,6 +1130,7 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1358,44 +1155,40 @@ 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; - case 3: - return CANCELLED; - default: - return null; + case 0: return EXECUTION_REASON_UNDEFINED; + case 1: return JOB_STATUS_SERVICE_POLLING_ERROR; + case 2: return NON_ZERO_EXIT_CODE; + case 3: return CANCELLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionReason findValueByNumber(int number) { + return ExecutionReason.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionReason findValueByNumber(int number) { - return ExecutionReason.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(4); } @@ -1404,7 +1197,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; @@ -1423,17 +1217,14 @@ private ExecutionReason(int value) { private int reasonsCase_ = 0; private java.lang.Object reasons_; - public enum ReasonsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REASON(6), REVISION_REASON(9), EXECUTION_REASON(11), REASONS_NOT_SET(0); private final int value; - private ReasonsCase(int value) { this.value = value; } @@ -1449,33 +1240,27 @@ public static ReasonsCase valueOf(int value) { public static ReasonsCase forNumber(int value) { switch (value) { - case 6: - return REASON; - case 9: - return REVISION_REASON; - case 11: - return EXECUTION_REASON; - case 0: - return REASONS_NOT_SET; - default: - return null; + case 6: return REASON; + case 9: return REVISION_REASON; + case 11: return EXECUTION_REASON; + case 0: return REASONS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ReasonsCase getReasonsCase() { - return ReasonsCase.forNumber(reasonsCase_); + public ReasonsCase + getReasonsCase() { + return ReasonsCase.forNumber( + reasonsCase_); } public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** - * - * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -1485,7 +1270,6 @@ public ReasonsCase getReasonsCase() {
    * 
* * string type = 1; - * * @return The type. */ @java.lang.Override @@ -1494,15 +1278,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:
@@ -1512,15 +1295,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 { @@ -1531,50 +1315,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 @@ -1583,29 +1355,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 { @@ -1616,14 +1388,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 @@ -1631,25 +1400,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.
    * 
@@ -1664,63 +1426,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() { @@ -1730,21 +1477,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; @@ -1752,28 +1496,22 @@ public com.google.cloud.run.v2.Condition.CommonReason getReason() { public static final int REVISION_REASON_FIELD_NUMBER = 9; /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return Whether the revisionReason field is set. */ public boolean hasRevisionReason() { return reasonsCase_ == 9; } /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return The enum numeric value on the wire for revisionReason. */ public int getRevisionReasonValue() { @@ -1783,52 +1521,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() { @@ -1838,30 +1565,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; @@ -1873,7 +1594,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_); } @@ -1911,28 +1633,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (state_ != com.google.cloud.run.v2.Condition.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (lastTransitionTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLastTransitionTime()); } if (severity_ != com.google.cloud.run.v2.Condition.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, severity_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, severity_); } if (reasonsCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(6, ((java.lang.Integer) reasons_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(9, ((java.lang.Integer) reasons_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(11, ((java.lang.Integer) reasons_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, ((java.lang.Integer) reasons_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1942,31 +1667,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.Condition)) { return super.equals(obj); } com.google.cloud.run.v2.Condition other = (com.google.cloud.run.v2.Condition) obj; - if (!getType().equals(other.getType())) return false; + if (!getType() + .equals(other.getType())) return false; if (state_ != other.state_) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (hasLastTransitionTime() != other.hasLastTransitionTime()) return false; if (hasLastTransitionTime()) { - if (!getLastTransitionTime().equals(other.getLastTransitionTime())) return false; + if (!getLastTransitionTime() + .equals(other.getLastTransitionTime())) return false; } if (severity_ != other.severity_) return false; if (!getReasonsCase().equals(other.getReasonsCase())) return false; switch (reasonsCase_) { case 6: - if (getReasonValue() != other.getReasonValue()) return false; + if (getReasonValue() + != other.getReasonValue()) return false; break; case 9: - if (getRevisionReasonValue() != other.getRevisionReasonValue()) return false; + if (getRevisionReasonValue() + != other.getRevisionReasonValue()) return false; break; case 11: - if (getExecutionReasonValue() != other.getExecutionReasonValue()) return false; + if (getExecutionReasonValue() + != other.getExecutionReasonValue()) return false; break; case 0: default: @@ -2015,135 +1746,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2167,9 +1893,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 @@ -2216,39 +1942,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; @@ -2275,25 +2000,21 @@ public Builder mergeFrom(com.google.cloud.run.v2.Condition other) { setSeverityValue(other.getSeverityValue()); } switch (other.getReasonsCase()) { - case REASON: - { - setReasonValue(other.getReasonValue()); - break; - } - case REVISION_REASON: - { - setRevisionReasonValue(other.getRevisionReasonValue()); - break; - } - case EXECUTION_REASON: - { - setExecutionReasonValue(other.getExecutionReasonValue()); - break; - } - case REASONS_NOT_SET: - { - break; - } + case REASON: { + setReasonValue(other.getReasonValue()); + break; + } + case REVISION_REASON: { + setRevisionReasonValue(other.getRevisionReasonValue()); + break; + } + case EXECUTION_REASON: { + setExecutionReasonValue(other.getExecutionReasonValue()); + break; + } + case REASONS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2321,65 +2042,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - type_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - state_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - message_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage( - getLastTransitionTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 40: - { - severity_ = input.readEnum(); - - break; - } // case 40 - case 48: - { - int rawValue = input.readEnum(); - reasonsCase_ = 6; - reasons_ = rawValue; - break; - } // case 48 - case 72: - { - int rawValue = input.readEnum(); - reasonsCase_ = 9; - reasons_ = rawValue; - break; - } // case 72 - case 88: - { - int rawValue = input.readEnum(); - reasonsCase_ = 11; - reasons_ = rawValue; - break; - } // case 88 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + type_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + state_ = input.readEnum(); + + break; + } // case 16 + case 26: { + message_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + input.readMessage( + getLastTransitionTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 40: { + severity_ = input.readEnum(); + + break; + } // case 40 + case 48: { + int rawValue = input.readEnum(); + reasonsCase_ = 6; + reasons_ = rawValue; + break; + } // case 48 + case 72: { + int rawValue = input.readEnum(); + reasonsCase_ = 9; + reasons_ = rawValue; + break; + } // case 72 + case 88: { + int rawValue = input.readEnum(); + reasonsCase_ = 11; + reasons_ = rawValue; + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2389,12 +2102,12 @@ public Builder mergeFrom( } // finally 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() { @@ -2404,10 +2117,9 @@ public Builder clearReasons() { return this; } + private java.lang.Object type_ = ""; /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2417,13 +2129,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; @@ -2432,8 +2144,6 @@ public java.lang.String getType() { } } /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2443,14 +2153,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 { @@ -2458,8 +2169,6 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2469,22 +2178,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:
@@ -2494,18 +2201,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:
@@ -2515,16 +2219,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; @@ -2532,65 +2236,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. */ @@ -2598,24 +2288,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; @@ -2623,20 +2310,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; @@ -2645,21 +2330,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 { @@ -2667,61 +2351,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; @@ -2729,47 +2406,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.
      * 
@@ -2790,15 +2454,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(); @@ -2809,8 +2472,6 @@ public Builder setLastTransitionTime(com.google.protobuf.Timestamp.Builder build return this; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2821,9 +2482,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; } @@ -2835,8 +2494,6 @@ public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2855,8 +2512,6 @@ public Builder clearLastTransitionTime() { return this; } /** - * - * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2864,13 +2519,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.
      * 
@@ -2881,14 +2534,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.
      * 
@@ -2896,17 +2546,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_; @@ -2914,65 +2561,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. */ @@ -2980,38 +2613,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 @@ -3019,14 +2646,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 @@ -3037,14 +2661,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. */ @@ -3055,37 +2676,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. */ @@ -3099,14 +2712,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() { @@ -3119,14 +2729,11 @@ public Builder clearReason() { } /** - * - * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return Whether the revisionReason field is set. */ @java.lang.Override @@ -3134,14 +2741,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 @@ -3152,14 +2756,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. */ @@ -3170,37 +2771,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. */ @@ -3214,14 +2807,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() { @@ -3234,14 +2824,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 @@ -3249,14 +2836,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 @@ -3267,14 +2851,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. */ @@ -3285,37 +2866,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. */ @@ -3329,14 +2902,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() { @@ -3347,9 +2917,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); } @@ -3359,12 +2929,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(); } @@ -3373,27 +2943,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3408,4 +2978,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java similarity index 84% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java index 94495056b83a..759ebdc178a9 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/condition.proto package com.google.cloud.run.v2; -public interface ConditionOrBuilder - extends +public interface ConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Condition) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -35,13 +17,10 @@ public interface ConditionOrBuilder
    * 
* * string type = 1; - * * @return The type. */ java.lang.String getType(); /** - * - * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -51,88 +30,69 @@ public interface ConditionOrBuilder
    * 
* * string type = 1; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; - * * @return The state. */ com.google.cloud.run.v2.Condition.State getState(); /** - * - * *
    * Human readable message indicating details about the current status.
    * 
* * string message = 3; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
    * Human readable message indicating details about the current status.
    * 
* * string message = 3; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); /** - * - * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; - * * @return Whether the lastTransitionTime field is set. */ boolean hasLastTransitionTime(); /** - * - * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; - * * @return The lastTransitionTime. */ com.google.protobuf.Timestamp getLastTransitionTime(); /** - * - * *
    * Last time the condition transitioned from one status to another.
    * 
@@ -142,137 +102,104 @@ public interface ConditionOrBuilder com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder(); /** - * - * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; - * * @return The severity. */ com.google.cloud.run.v2.Condition.Severity getSeverity(); /** - * - * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return Whether the reason field is set. */ boolean hasReason(); /** - * - * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** - * - * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; - * * @return The reason. */ com.google.cloud.run.v2.Condition.CommonReason getReason(); /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return Whether the revisionReason field is set. */ boolean hasRevisionReason(); /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return The enum numeric value on the wire for revisionReason. */ int getRevisionReasonValue(); /** - * - * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; - * * @return The revisionReason. */ com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason(); /** - * - * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return Whether the executionReason field is set. */ boolean hasExecutionReason(); /** - * - * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return The enum numeric value on the wire for executionReason. */ int getExecutionReasonValue(); /** - * - * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; - * * @return The executionReason. */ com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason(); diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java new file mode 100644 index 000000000000..6be466ee100a --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/condition.proto + +package com.google.cloud.run.v2; + +public final class ConditionProto { + private ConditionProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Condition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Condition_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n#google/cloud/run/v2/condition.proto\022\023g" + + "oogle.cloud.run.v2\032\037google/protobuf/time" + + "stamp.proto\"\344\013\n\tCondition\022\014\n\004type\030\001 \001(\t\022" + + "3\n\005state\030\002 \001(\0162$.google.cloud.run.v2.Con" + + "dition.State\022\017\n\007message\030\003 \001(\t\0228\n\024last_tr" + + "ansition_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\0229\n\010severity\030\005 \001(\0162\'.google.cloud" + + ".run.v2.Condition.Severity\022=\n\006reason\030\006 \001" + + "(\0162+.google.cloud.run.v2.Condition.Commo" + + "nReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goo" + + "gle.cloud.run.v2.Condition.RevisionReaso" + + "nH\000\022J\n\020execution_reason\030\013 \001(\0162..google.c" + + "loud.run.v2.Condition.ExecutionReasonH\000\"" + + "\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDI" + + "TION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020" + + "\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUC" + + "CEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECI" + + "FIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003" + + "\"\262\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEF" + + "INED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_FAILED\020\003" + + "\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004\022\025\n\021CONT" + + "AINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION_" + + "DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZED" + + "\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHEC" + + "K_FAILED\020\t\022$\n ENCRYPTION_KEY_PERMISSION_" + + "DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK_FAILED\020" + + "\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED\020\014\022\031\n\025WA" + + "ITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETRY" + + "\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTERNAL\020\020\"\257\002" + + "\n\016RevisionReason\022\035\n\031REVISION_REASON_UNDE" + + "FINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020\002\022\013\n\007RET" + + "IRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATING\020\005\022 \n\034" + + "HEALTH_CHECK_CONTAINER_ERROR\020\006\022$\n CUSTOM" + + "IZED_PATH_RESPONSE_PENDING\020\007\022!\n\035MIN_INST" + + "ANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIVE_REVISI" + + "ON_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYMENT\020\n\022\030\n" + + "\024HEALTH_CHECK_SKIPPED\020\013\"~\n\017ExecutionReas" + + "on\022\036\n\032EXECUTION_REASON_UNDEFINED\020\000\022$\n JO" + + "B_STATUS_SERVICE_POLLING_ERROR\020\001\022\026\n\022NON_" + + "ZERO_EXIT_CODE\020\002\022\r\n\tCANCELLED\020\003B\t\n\007reaso" + + "nsBc\n\027com.google.cloud.run.v2B\016Condition" + + "ProtoP\001Z6google.golang.org/genproto/goog" + + "leapis/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", "RevisionReason", "ExecutionReason", "Reasons", }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java similarity index 81% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java index 6391762216bb..8f5c3db8d849 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java +++ b/owl-bot-staging/java-run/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_ = "";
@@ -54,41 +36,37 @@ 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;
   }
-
-  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 @@ -97,29 +75,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 { @@ -130,15 +108,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object image_; /** - * - * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The image. */ @java.lang.Override @@ -147,30 +122,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** - * - * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -181,8 +156,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.
@@ -196,15 +169,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.
@@ -218,15 +189,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.
@@ -240,7 +208,6 @@ public int getCommandCount() {
    * 
* * repeated string command = 3; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -248,8 +215,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.
@@ -263,19 +228,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.
@@ -289,15 +252,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.
@@ -311,15 +272,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.
@@ -333,7 +291,6 @@ public int getArgsCount() {
    * 
* * repeated string args = 4; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -341,8 +298,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.
@@ -356,19 +311,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.
    * 
@@ -380,8 +333,6 @@ public java.util.List getEnvList() { return env_; } /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -389,12 +340,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.
    * 
@@ -406,8 +356,6 @@ public int getEnvCount() { return env_.size(); } /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -419,8 +367,6 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { return env_.get(index); } /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -428,15 +374,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:
@@ -444,7 +389,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 @@ -452,8 +396,6 @@ public boolean hasResources() { return resources_ != null; } /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -461,18 +403,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:
@@ -489,8 +426,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
@@ -506,8 +441,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
@@ -519,13 +452,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
@@ -541,8 +472,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
@@ -558,8 +487,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
@@ -571,15 +498,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.
    * 
@@ -591,8 +517,6 @@ public java.util.List getVolumeMountsList() return volumeMounts_; } /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -600,13 +524,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.
    * 
@@ -618,8 +540,6 @@ public int getVolumeMountsCount() { return volumeMounts_.size(); } /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -631,8 +551,6 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { return volumeMounts_.get(index); } /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -640,15 +558,14 @@ 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); } public static final int WORKING_DIR_FIELD_NUMBER = 9; private volatile java.lang.Object workingDir_; /** - * - * *
    * Container's working directory.
    * If not specified, the container runtime's default will be used, which
@@ -656,7 +573,6 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int
    * 
* * string working_dir = 9; - * * @return The workingDir. */ @java.lang.Override @@ -665,15 +581,14 @@ public java.lang.String getWorkingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; } } /** - * - * *
    * Container's working directory.
    * If not specified, the container runtime's default will be used, which
@@ -681,15 +596,16 @@ public java.lang.String getWorkingDir() {
    * 
* * string working_dir = 9; - * * @return The bytes for workingDir. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkingDirBytes() { + public com.google.protobuf.ByteString + getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workingDir_ = b; return b; } else { @@ -700,8 +616,6 @@ public com.google.protobuf.ByteString getWorkingDirBytes() { public static final int LIVENESS_PROBE_FIELD_NUMBER = 10; private com.google.cloud.run.v2.Probe livenessProbe_; /** - * - * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -710,7 +624,6 @@ public com.google.protobuf.ByteString getWorkingDirBytes() {
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; - * * @return Whether the livenessProbe field is set. */ @java.lang.Override @@ -718,8 +631,6 @@ public boolean hasLivenessProbe() { return livenessProbe_ != null; } /** - * - * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -728,18 +639,13 @@ public boolean hasLivenessProbe() {
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; - * * @return The livenessProbe. */ @java.lang.Override public com.google.cloud.run.v2.Probe getLivenessProbe() { - return livenessProbe_ == null - ? com.google.cloud.run.v2.Probe.getDefaultInstance() - : livenessProbe_; + return livenessProbe_ == null ? com.google.cloud.run.v2.Probe.getDefaultInstance() : livenessProbe_; } /** - * - * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -757,8 +663,6 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
   public static final int STARTUP_PROBE_FIELD_NUMBER = 11;
   private com.google.cloud.run.v2.Probe startupProbe_;
   /**
-   *
-   *
    * 
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
@@ -769,7 +673,6 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
    * 
* * .google.cloud.run.v2.Probe startup_probe = 11; - * * @return Whether the startupProbe field is set. */ @java.lang.Override @@ -777,8 +680,6 @@ public boolean hasStartupProbe() { return startupProbe_ != null; } /** - * - * *
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
@@ -789,18 +690,13 @@ public boolean hasStartupProbe() {
    * 
* * .google.cloud.run.v2.Probe startup_probe = 11; - * * @return The startupProbe. */ @java.lang.Override public com.google.cloud.run.v2.Probe getStartupProbe() { - return startupProbe_ == null - ? com.google.cloud.run.v2.Probe.getDefaultInstance() - : startupProbe_; + return startupProbe_ == null ? com.google.cloud.run.v2.Probe.getDefaultInstance() : startupProbe_; } /** - * - * *
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
@@ -818,7 +714,6 @@ public com.google.cloud.run.v2.ProbeOrBuilder getStartupProbeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -830,7 +725,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_);
     }
@@ -896,25 +792,31 @@ 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));
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, workingDir_);
     }
     if (livenessProbe_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLivenessProbe());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getLivenessProbe());
     }
     if (startupProbe_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStartupProbe());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(11, getStartupProbe());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -924,32 +826,43 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.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 (!getPortsList().equals(other.getPortsList())) return false;
-    if (!getVolumeMountsList().equals(other.getVolumeMountsList())) return false;
-    if (!getWorkingDir().equals(other.getWorkingDir())) return false;
+      if (!getResources()
+          .equals(other.getResources())) return false;
+    }
+    if (!getPortsList()
+        .equals(other.getPortsList())) return false;
+    if (!getVolumeMountsList()
+        .equals(other.getVolumeMountsList())) return false;
+    if (!getWorkingDir()
+        .equals(other.getWorkingDir())) return false;
     if (hasLivenessProbe() != other.hasLivenessProbe()) return false;
     if (hasLivenessProbe()) {
-      if (!getLivenessProbe().equals(other.getLivenessProbe())) return false;
+      if (!getLivenessProbe()
+          .equals(other.getLivenessProbe())) return false;
     }
     if (hasStartupProbe() != other.hasStartupProbe()) return false;
     if (hasStartupProbe()) {
-      if (!getStartupProbe().equals(other.getStartupProbe())) return false;
+      if (!getStartupProbe()
+          .equals(other.getStartupProbe())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1005,103 +918,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
@@ -1112,32 +1019,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1194,9 +1102,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
@@ -1280,39 +1188,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;
@@ -1367,10 +1274,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_);
           }
@@ -1397,10 +1303,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_);
           }
@@ -1424,10 +1329,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_);
           }
@@ -1469,101 +1373,99 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                image_ = input.readStringRequireUtf8();
+              break;
+            } // case 10
+            case 18: {
+              image_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureCommandIsMutable();
-                command_.add(s);
-                break;
-              } // case 26
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureArgsIsMutable();
-                args_.add(s);
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.cloud.run.v2.EnvVar m =
-                    input.readMessage(com.google.cloud.run.v2.EnvVar.parser(), extensionRegistry);
-                if (envBuilder_ == null) {
-                  ensureEnvIsMutable();
-                  env_.add(m);
-                } else {
-                  envBuilder_.addMessage(m);
-                }
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getResourcesFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureCommandIsMutable();
+              command_.add(s);
+              break;
+            } // case 26
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArgsIsMutable();
+              args_.add(s);
+              break;
+            } // case 34
+            case 42: {
+              com.google.cloud.run.v2.EnvVar m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.EnvVar.parser(),
+                      extensionRegistry);
+              if (envBuilder_ == null) {
+                ensureEnvIsMutable();
+                env_.add(m);
+              } else {
+                envBuilder_.addMessage(m);
+              }
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getResourcesFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 50
-            case 58:
-              {
-                com.google.cloud.run.v2.ContainerPort m =
-                    input.readMessage(
-                        com.google.cloud.run.v2.ContainerPort.parser(), extensionRegistry);
-                if (portsBuilder_ == null) {
-                  ensurePortsIsMutable();
-                  ports_.add(m);
-                } else {
-                  portsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 58
-            case 66:
-              {
-                com.google.cloud.run.v2.VolumeMount m =
-                    input.readMessage(
-                        com.google.cloud.run.v2.VolumeMount.parser(), extensionRegistry);
-                if (volumeMountsBuilder_ == null) {
-                  ensureVolumeMountsIsMutable();
-                  volumeMounts_.add(m);
-                } else {
-                  volumeMountsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 66
-            case 74:
-              {
-                workingDir_ = input.readStringRequireUtf8();
+              break;
+            } // case 50
+            case 58: {
+              com.google.cloud.run.v2.ContainerPort m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.ContainerPort.parser(),
+                      extensionRegistry);
+              if (portsBuilder_ == null) {
+                ensurePortsIsMutable();
+                ports_.add(m);
+              } else {
+                portsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 58
+            case 66: {
+              com.google.cloud.run.v2.VolumeMount m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.VolumeMount.parser(),
+                      extensionRegistry);
+              if (volumeMountsBuilder_ == null) {
+                ensureVolumeMountsIsMutable();
+                volumeMounts_.add(m);
+              } else {
+                volumeMountsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 66
+            case 74: {
+              workingDir_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getLivenessProbeFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getLivenessProbeFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getStartupProbeFieldBuilder().getBuilder(), extensionRegistry);
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getStartupProbeFieldBuilder().getBuilder(),
+                  extensionRegistry);
 
-                break;
-              } // case 90
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 90
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1573,25 +1475,22 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1600,21 +1499,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 { @@ -1622,61 +1520,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; @@ -1684,21 +1575,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object image_ = ""; /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -1707,22 +1596,21 @@ public java.lang.String getImage() { } } /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for image. */ - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -1730,81 +1618,70 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { + public Builder setImage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** - * - * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { + public Builder setImageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList command_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1818,15 +1695,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.
@@ -1840,15 +1715,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.
@@ -1862,7 +1734,6 @@ public int getCommandCount() {
      * 
* * repeated string command = 3; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -1870,8 +1741,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.
@@ -1885,16 +1754,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.
@@ -1908,23 +1775,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.
@@ -1938,22 +1803,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.
@@ -1967,19 +1830,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.
@@ -1993,7 +1855,6 @@ public Builder addAllCommand(java.lang.Iterable values) {
      * 
* * repeated string command = 3; - * * @return This builder for chaining. */ public Builder clearCommand() { @@ -2003,8 +1864,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.
@@ -2018,33 +1877,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.
@@ -2058,15 +1913,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.
@@ -2080,15 +1933,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.
@@ -2102,7 +1952,6 @@ public int getArgsCount() {
      * 
* * repeated string args = 4; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -2110,8 +1959,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.
@@ -2125,16 +1972,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.
@@ -2148,23 +1993,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.
@@ -2178,22 +2021,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.
@@ -2207,19 +2048,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.
@@ -2233,7 +2073,6 @@ public Builder addAllArgs(java.lang.Iterable values) {
      * 
* * repeated string args = 4; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -2243,8 +2082,6 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -2258,39 +2095,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.
      * 
@@ -2305,8 +2137,6 @@ public java.util.List getEnvList() { } } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2321,8 +2151,6 @@ public int getEnvCount() { } } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2337,15 +2165,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(); @@ -2359,15 +2186,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()); @@ -2378,8 +2204,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.
      * 
@@ -2400,15 +2224,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(); @@ -2422,15 +2245,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()); @@ -2441,15 +2263,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()); @@ -2460,18 +2281,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); @@ -2479,8 +2300,6 @@ public Builder addAllEnv(java.lang.Iterable * List of environment variables to set in the container. *
@@ -2498,8 +2317,6 @@ public Builder clearEnv() { return this; } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2517,43 +2334,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 { @@ -2561,8 +2374,6 @@ public java.util.List getEnvO } } /** - * - * *
      * List of environment variables to set in the container.
      * 
@@ -2570,46 +2381,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_; @@ -2617,13 +2424,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:
@@ -2631,15 +2433,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:
@@ -2647,21 +2446,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:
@@ -2684,8 +2478,6 @@ public Builder setResources(com.google.cloud.run.v2.ResourceRequirements value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2706,8 +2498,6 @@ public Builder setResources(
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2720,9 +2510,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;
         }
@@ -2734,8 +2522,6 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2756,8 +2542,6 @@ public Builder clearResources() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2767,13 +2551,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:
@@ -2786,14 +2568,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:
@@ -2803,41 +2582,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
@@ -2856,8 +2626,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
@@ -2876,8 +2644,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
@@ -2896,8 +2662,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
@@ -2908,7 +2672,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();
@@ -2922,8 +2687,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
@@ -2946,8 +2709,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
@@ -2972,8 +2733,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
@@ -2984,7 +2743,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();
@@ -2998,8 +2758,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
@@ -3010,7 +2768,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());
@@ -3021,8 +2780,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
@@ -3045,8 +2802,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
@@ -3061,7 +2816,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);
@@ -3069,8 +2825,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
@@ -3092,8 +2846,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
@@ -3115,8 +2867,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
@@ -3127,12 +2877,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
@@ -3143,16 +2892,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
@@ -3163,8 +2910,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 {
@@ -3172,8 +2919,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
@@ -3185,12 +2930,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
@@ -3201,13 +2944,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
@@ -3218,46 +2960,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.
      * 
@@ -3272,8 +3006,6 @@ public java.util.List getVolumeMountsList() } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3288,8 +3020,6 @@ public int getVolumeMountsCount() { } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3304,15 +3034,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(); @@ -3326,8 +3055,6 @@ public Builder setVolumeMounts(int index, com.google.cloud.run.v2.VolumeMount va return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3346,8 +3073,6 @@ public Builder setVolumeMounts( return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3368,15 +3093,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(); @@ -3390,15 +3114,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()); @@ -3409,8 +3132,6 @@ public Builder addVolumeMounts(com.google.cloud.run.v2.VolumeMount.Builder build return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3429,8 +3150,6 @@ public Builder addVolumeMounts( return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3441,7 +3160,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); @@ -3449,8 +3169,6 @@ public Builder addAllVolumeMounts( return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3468,8 +3186,6 @@ public Builder clearVolumeMounts() { return this; } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3487,44 +3203,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 { @@ -3532,8 +3243,6 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(int } } /** - * - * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3541,48 +3250,42 @@ 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_; @@ -3590,8 +3293,6 @@ public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder(int in private java.lang.Object workingDir_ = ""; /** - * - * *
      * Container's working directory.
      * If not specified, the container runtime's default will be used, which
@@ -3599,13 +3300,13 @@ public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder(int in
      * 
* * string working_dir = 9; - * * @return The workingDir. */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; @@ -3614,8 +3315,6 @@ public java.lang.String getWorkingDir() { } } /** - * - * *
      * Container's working directory.
      * If not specified, the container runtime's default will be used, which
@@ -3623,14 +3322,15 @@ public java.lang.String getWorkingDir() {
      * 
* * string working_dir = 9; - * * @return The bytes for workingDir. */ - public com.google.protobuf.ByteString getWorkingDirBytes() { + public com.google.protobuf.ByteString + getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workingDir_ = b; return b; } else { @@ -3638,8 +3338,6 @@ public com.google.protobuf.ByteString getWorkingDirBytes() { } } /** - * - * *
      * Container's working directory.
      * If not specified, the container runtime's default will be used, which
@@ -3647,22 +3345,20 @@ public com.google.protobuf.ByteString getWorkingDirBytes() {
      * 
* * string working_dir = 9; - * * @param value The workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDir(java.lang.String value) { + public Builder setWorkingDir( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workingDir_ = value; onChanged(); return this; } /** - * - * *
      * Container's working directory.
      * If not specified, the container runtime's default will be used, which
@@ -3670,18 +3366,15 @@ public Builder setWorkingDir(java.lang.String value) {
      * 
* * string working_dir = 9; - * * @return This builder for chaining. */ public Builder clearWorkingDir() { - + workingDir_ = getDefaultInstance().getWorkingDir(); onChanged(); return this; } /** - * - * *
      * Container's working directory.
      * If not specified, the container runtime's default will be used, which
@@ -3689,16 +3382,16 @@ public Builder clearWorkingDir() {
      * 
* * string working_dir = 9; - * * @param value The bytes for workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { + public Builder setWorkingDirBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workingDir_ = value; onChanged(); return this; @@ -3706,13 +3399,8 @@ public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { private com.google.cloud.run.v2.Probe livenessProbe_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Probe, - com.google.cloud.run.v2.Probe.Builder, - com.google.cloud.run.v2.ProbeOrBuilder> - livenessProbeBuilder_; + com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder> livenessProbeBuilder_; /** - * - * *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3721,15 +3409,12 @@ public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; - * * @return Whether the livenessProbe field is set. */ public boolean hasLivenessProbe() { return livenessProbeBuilder_ != null || livenessProbe_ != null; } /** - * - * *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3738,21 +3423,16 @@ public boolean hasLivenessProbe() {
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; - * * @return The livenessProbe. */ public com.google.cloud.run.v2.Probe getLivenessProbe() { if (livenessProbeBuilder_ == null) { - return livenessProbe_ == null - ? com.google.cloud.run.v2.Probe.getDefaultInstance() - : livenessProbe_; + return livenessProbe_ == null ? com.google.cloud.run.v2.Probe.getDefaultInstance() : livenessProbe_; } else { return livenessProbeBuilder_.getMessage(); } } /** - * - * *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3776,8 +3456,6 @@ public Builder setLivenessProbe(com.google.cloud.run.v2.Probe value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3787,7 +3465,8 @@ public Builder setLivenessProbe(com.google.cloud.run.v2.Probe value) {
      *
      * .google.cloud.run.v2.Probe liveness_probe = 10;
      */
-    public Builder setLivenessProbe(com.google.cloud.run.v2.Probe.Builder builderForValue) {
+    public Builder setLivenessProbe(
+        com.google.cloud.run.v2.Probe.Builder builderForValue) {
       if (livenessProbeBuilder_ == null) {
         livenessProbe_ = builderForValue.build();
         onChanged();
@@ -3798,8 +3477,6 @@ public Builder setLivenessProbe(com.google.cloud.run.v2.Probe.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3813,9 +3490,7 @@ public Builder mergeLivenessProbe(com.google.cloud.run.v2.Probe value) {
       if (livenessProbeBuilder_ == null) {
         if (livenessProbe_ != null) {
           livenessProbe_ =
-              com.google.cloud.run.v2.Probe.newBuilder(livenessProbe_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.run.v2.Probe.newBuilder(livenessProbe_).mergeFrom(value).buildPartial();
         } else {
           livenessProbe_ = value;
         }
@@ -3827,8 +3502,6 @@ public Builder mergeLivenessProbe(com.google.cloud.run.v2.Probe value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3850,8 +3523,6 @@ public Builder clearLivenessProbe() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3862,13 +3533,11 @@ public Builder clearLivenessProbe() {
      * .google.cloud.run.v2.Probe liveness_probe = 10;
      */
     public com.google.cloud.run.v2.Probe.Builder getLivenessProbeBuilder() {
-
+      
       onChanged();
       return getLivenessProbeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3882,14 +3551,11 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
       if (livenessProbeBuilder_ != null) {
         return livenessProbeBuilder_.getMessageOrBuilder();
       } else {
-        return livenessProbe_ == null
-            ? com.google.cloud.run.v2.Probe.getDefaultInstance()
-            : livenessProbe_;
+        return livenessProbe_ == null ?
+            com.google.cloud.run.v2.Probe.getDefaultInstance() : livenessProbe_;
       }
     }
     /**
-     *
-     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3900,17 +3566,14 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
      * .google.cloud.run.v2.Probe liveness_probe = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.Probe,
-            com.google.cloud.run.v2.Probe.Builder,
-            com.google.cloud.run.v2.ProbeOrBuilder>
+        com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder> 
         getLivenessProbeFieldBuilder() {
       if (livenessProbeBuilder_ == null) {
-        livenessProbeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.Probe,
-                com.google.cloud.run.v2.Probe.Builder,
-                com.google.cloud.run.v2.ProbeOrBuilder>(
-                getLivenessProbe(), getParentForChildren(), isClean());
+        livenessProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder>(
+                getLivenessProbe(),
+                getParentForChildren(),
+                isClean());
         livenessProbe_ = null;
       }
       return livenessProbeBuilder_;
@@ -3918,13 +3581,8 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
 
     private com.google.cloud.run.v2.Probe startupProbe_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.Probe,
-            com.google.cloud.run.v2.Probe.Builder,
-            com.google.cloud.run.v2.ProbeOrBuilder>
-        startupProbeBuilder_;
+        com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder> startupProbeBuilder_;
     /**
-     *
-     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3935,15 +3593,12 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
      * 
* * .google.cloud.run.v2.Probe startup_probe = 11; - * * @return Whether the startupProbe field is set. */ public boolean hasStartupProbe() { return startupProbeBuilder_ != null || startupProbe_ != null; } /** - * - * *
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3954,21 +3609,16 @@ public boolean hasStartupProbe() {
      * 
* * .google.cloud.run.v2.Probe startup_probe = 11; - * * @return The startupProbe. */ public com.google.cloud.run.v2.Probe getStartupProbe() { if (startupProbeBuilder_ == null) { - return startupProbe_ == null - ? com.google.cloud.run.v2.Probe.getDefaultInstance() - : startupProbe_; + return startupProbe_ == null ? com.google.cloud.run.v2.Probe.getDefaultInstance() : startupProbe_; } else { return startupProbeBuilder_.getMessage(); } } /** - * - * *
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3994,8 +3644,6 @@ public Builder setStartupProbe(com.google.cloud.run.v2.Probe value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -4007,7 +3655,8 @@ public Builder setStartupProbe(com.google.cloud.run.v2.Probe value) {
      *
      * .google.cloud.run.v2.Probe startup_probe = 11;
      */
-    public Builder setStartupProbe(com.google.cloud.run.v2.Probe.Builder builderForValue) {
+    public Builder setStartupProbe(
+        com.google.cloud.run.v2.Probe.Builder builderForValue) {
       if (startupProbeBuilder_ == null) {
         startupProbe_ = builderForValue.build();
         onChanged();
@@ -4018,8 +3667,6 @@ public Builder setStartupProbe(com.google.cloud.run.v2.Probe.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -4035,9 +3682,7 @@ public Builder mergeStartupProbe(com.google.cloud.run.v2.Probe value) {
       if (startupProbeBuilder_ == null) {
         if (startupProbe_ != null) {
           startupProbe_ =
-              com.google.cloud.run.v2.Probe.newBuilder(startupProbe_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.run.v2.Probe.newBuilder(startupProbe_).mergeFrom(value).buildPartial();
         } else {
           startupProbe_ = value;
         }
@@ -4049,8 +3694,6 @@ public Builder mergeStartupProbe(com.google.cloud.run.v2.Probe value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -4074,8 +3717,6 @@ public Builder clearStartupProbe() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -4088,13 +3729,11 @@ public Builder clearStartupProbe() {
      * .google.cloud.run.v2.Probe startup_probe = 11;
      */
     public com.google.cloud.run.v2.Probe.Builder getStartupProbeBuilder() {
-
+      
       onChanged();
       return getStartupProbeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -4110,14 +3749,11 @@ public com.google.cloud.run.v2.ProbeOrBuilder getStartupProbeOrBuilder() {
       if (startupProbeBuilder_ != null) {
         return startupProbeBuilder_.getMessageOrBuilder();
       } else {
-        return startupProbe_ == null
-            ? com.google.cloud.run.v2.Probe.getDefaultInstance()
-            : startupProbe_;
+        return startupProbe_ == null ?
+            com.google.cloud.run.v2.Probe.getDefaultInstance() : startupProbe_;
       }
     }
     /**
-     *
-     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -4130,24 +3766,21 @@ public com.google.cloud.run.v2.ProbeOrBuilder getStartupProbeOrBuilder() {
      * .google.cloud.run.v2.Probe startup_probe = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.Probe,
-            com.google.cloud.run.v2.Probe.Builder,
-            com.google.cloud.run.v2.ProbeOrBuilder>
+        com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder> 
         getStartupProbeFieldBuilder() {
       if (startupProbeBuilder_ == null) {
-        startupProbeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.Probe,
-                com.google.cloud.run.v2.Probe.Builder,
-                com.google.cloud.run.v2.ProbeOrBuilder>(
-                getStartupProbe(), getParentForChildren(), isClean());
+        startupProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder>(
+                getStartupProbe(),
+                getParentForChildren(),
+                isClean());
         startupProbe_ = null;
       }
       return startupProbeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -4157,12 +3790,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();
   }
@@ -4171,27 +3804,27 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -4206,4 +3839,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.run.v2.Container getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java
similarity index 89%
rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java
rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java
index 0f3d15674301..0d91a79d8f66 100644
--- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java
+++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java
@@ -1,83 +1,55 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/run/v2/k8s.min.proto
 
 package com.google.cloud.run.v2;
 
-public interface ContainerOrBuilder
-    extends
+public interface ContainerOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Container)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Name of the container specified as a DNS_LABEL.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the container specified as a DNS_LABEL.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for image. */ - com.google.protobuf.ByteString getImageBytes(); + com.google.protobuf.ByteString + getImageBytes(); /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -91,13 +63,11 @@ public interface ContainerOrBuilder
    * 
* * repeated string command = 3; - * * @return A list containing the command. */ - java.util.List getCommandList(); + java.util.List + getCommandList(); /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -111,13 +81,10 @@ public interface ContainerOrBuilder
    * 
* * repeated string command = 3; - * * @return The count of command. */ int getCommandCount(); /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -131,14 +98,11 @@ public interface ContainerOrBuilder
    * 
* * repeated string command = 3; - * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** - * - * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -152,15 +116,13 @@ public interface ContainerOrBuilder
    * 
* * repeated string command = 3; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString getCommandBytes(int index); + com.google.protobuf.ByteString + getCommandBytes(int index); /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -174,13 +136,11 @@ public interface ContainerOrBuilder
    * 
* * repeated string args = 4; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -194,13 +154,10 @@ public interface ContainerOrBuilder
    * 
* * repeated string args = 4; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -214,14 +171,11 @@ public interface ContainerOrBuilder
    * 
* * repeated string args = 4; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -235,25 +189,22 @@ public interface ContainerOrBuilder
    * 
* * repeated string args = 4; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - java.util.List getEnvList(); + java.util.List + getEnvList(); /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -262,8 +213,6 @@ public interface ContainerOrBuilder */ com.google.cloud.run.v2.EnvVar getEnv(int index); /** - * - * *
    * List of environment variables to set in the container.
    * 
@@ -272,29 +221,25 @@ public interface ContainerOrBuilder */ int getEnvCount(); /** - * - * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - java.util.List getEnvOrBuilderList(); + java.util.List + getEnvOrBuilderList(); /** - * - * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index); + com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( + int index); /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -302,13 +247,10 @@ public interface ContainerOrBuilder
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; - * * @return Whether the resources field is set. */ boolean hasResources(); /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -316,13 +258,10 @@ public interface ContainerOrBuilder
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; - * * @return The resources. */ com.google.cloud.run.v2.ResourceRequirements getResources(); /** - * - * *
    * Compute Resource requirements by this container.
    * More info:
@@ -334,8 +273,6 @@ public interface ContainerOrBuilder
   com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuilder();
 
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -346,10 +283,9 @@ public interface ContainerOrBuilder
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  java.util.List getPortsList();
+  java.util.List 
+      getPortsList();
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -362,8 +298,6 @@ public interface ContainerOrBuilder
    */
   com.google.cloud.run.v2.ContainerPort getPorts(int index);
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -376,8 +310,6 @@ public interface ContainerOrBuilder
    */
   int getPortsCount();
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -388,10 +320,9 @@ public interface ContainerOrBuilder
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  java.util.List getPortsOrBuilderList();
+  java.util.List 
+      getPortsOrBuilderList();
   /**
-   *
-   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -402,21 +333,19 @@ public interface ContainerOrBuilder
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int index);
+  com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Volume to mount into the container's filesystem.
    * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - java.util.List getVolumeMountsList(); + java.util.List + getVolumeMountsList(); /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -425,8 +354,6 @@ public interface ContainerOrBuilder */ com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index); /** - * - * *
    * Volume to mount into the container's filesystem.
    * 
@@ -435,30 +362,25 @@ 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); /** - * - * *
    * Container's working directory.
    * If not specified, the container runtime's default will be used, which
@@ -466,13 +388,10 @@ public interface ContainerOrBuilder
    * 
* * string working_dir = 9; - * * @return The workingDir. */ java.lang.String getWorkingDir(); /** - * - * *
    * Container's working directory.
    * If not specified, the container runtime's default will be used, which
@@ -480,14 +399,12 @@ public interface ContainerOrBuilder
    * 
* * string working_dir = 9; - * * @return The bytes for workingDir. */ - com.google.protobuf.ByteString getWorkingDirBytes(); + com.google.protobuf.ByteString + getWorkingDirBytes(); /** - * - * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -496,13 +413,10 @@ public interface ContainerOrBuilder
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; - * * @return Whether the livenessProbe field is set. */ boolean hasLivenessProbe(); /** - * - * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -511,13 +425,10 @@ public interface ContainerOrBuilder
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; - * * @return The livenessProbe. */ com.google.cloud.run.v2.Probe getLivenessProbe(); /** - * - * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -530,8 +441,6 @@ public interface ContainerOrBuilder
   com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
@@ -542,13 +451,10 @@ public interface ContainerOrBuilder
    * 
* * .google.cloud.run.v2.Probe startup_probe = 11; - * * @return Whether the startupProbe field is set. */ boolean hasStartupProbe(); /** - * - * *
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
@@ -559,13 +465,10 @@ public interface ContainerOrBuilder
    * 
* * .google.cloud.run.v2.Probe startup_probe = 11; - * * @return The startupProbe. */ com.google.cloud.run.v2.Probe getStartupProbe(); /** - * - * *
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java
similarity index 67%
rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java
rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java
index fc52e2f3d4cb..8aab1ae3d135 100644
--- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java
+++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java
@@ -1,84 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/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; } - - 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 @@ -87,30 +65,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 { @@ -121,15 +99,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 @@ -138,7 +113,6 @@ public int getContainerPort() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,7 +124,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_); } @@ -170,7 +145,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,15 +156,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -209,135 +187,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +322,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 @@ -370,8 +343,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(); @@ -382,39 +354,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; @@ -456,25 +427,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 24: - { - containerPort_ = input.readInt32(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: { + containerPort_ = input.readInt32(); + + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -487,21 +455,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; @@ -510,22 +476,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 { @@ -533,80 +498,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 @@ -614,45 +569,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); } @@ -662,12 +611,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(); } @@ -676,27 +625,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -711,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ContainerPort getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java similarity index 56% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java index 20e42eb63669..10acaadf2f91 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java +++ b/owl-bot-staging/java-run/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/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.java new file mode 100644 index 000000000000..2bb9c7f2035f --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.java @@ -0,0 +1,1068 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message for creating a Job.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.CreateJobRequest} + */ +public final class CreateJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.CreateJobRequest) + CreateJobRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateJobRequest.newBuilder() to construct. + private CreateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateJobRequest() { + parent_ = ""; + jobId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.CreateJobRequest.class, com.google.cloud.run.v2.CreateJobRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The location and project in which this Job should be created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The location and project in which this Job should be created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_FIELD_NUMBER = 2; + private com.google.cloud.run.v2.Job job_; + /** + *
+   * Required. The Job instance to create.
+   * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the job field is set. + */ + @java.lang.Override + public boolean hasJob() { + return job_ != null; + } + /** + *
+   * Required. The Job instance to create.
+   * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The job. + */ + @java.lang.Override + public com.google.cloud.run.v2.Job getJob() { + return job_ == null ? com.google.cloud.run.v2.Job.getDefaultInstance() : job_; + } + /** + *
+   * Required. The Job instance to create.
+   * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + public static final int JOB_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object jobId_; + /** + *
+   * Required. The unique identifier for the Job. The name of the job becomes
+   * {parent}/jobs/{job_id}.
+   * 
+ * + * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The jobId. + */ + @java.lang.Override + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } + } + /** + *
+   * Required. The unique identifier for the Job. The name of the job becomes
+   * {parent}/jobs/{job_id}.
+   * 
+ * + * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for jobId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (job_ != null) { + output.writeMessage(2, getJob()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getJob()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.CreateJobRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.CreateJobRequest other = (com.google.cloud.run.v2.CreateJobRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasJob() != other.hasJob()) return false; + if (hasJob()) { + if (!getJob() + .equals(other.getJob())) return false; + } + if (!getJobId() + .equals(other.getJobId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (37 * hash) + JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobId().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( + com.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.CreateJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.CreateJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.CreateJobRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.CreateJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for creating a Job.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.CreateJobRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.CreateJobRequest) + com.google.cloud.run.v2.CreateJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_CreateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.CreateJobRequest.class, com.google.cloud.run.v2.CreateJobRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.CreateJobRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + jobId_ = ""; + + validateOnly_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_CreateJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.CreateJobRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.CreateJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.CreateJobRequest build() { + com.google.cloud.run.v2.CreateJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.CreateJobRequest buildPartial() { + com.google.cloud.run.v2.CreateJobRequest result = new com.google.cloud.run.v2.CreateJobRequest(this); + result.parent_ = parent_; + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + result.jobId_ = jobId_; + result.validateOnly_ = validateOnly_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.CreateJobRequest) { + return mergeFrom((com.google.cloud.run.v2.CreateJobRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.CreateJobRequest other) { + if (other == com.google.cloud.run.v2.CreateJobRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (!other.getJobId().isEmpty()) { + jobId_ = other.jobId_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getJobFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The location and project in which this Job should be created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The location and project in which this Job should be created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The location and project in which this Job should be created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The location and project in which this Job should be created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * 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 Job should be created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.run.v2.Job job_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> jobBuilder_; + /** + *
+     * Required. The Job instance to create.
+     * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the job field is set. + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + *
+     * Required. The Job instance to create.
+     * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The job. + */ + public com.google.cloud.run.v2.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.run.v2.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + *
+     * Required. The Job instance to create.
+     * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setJob(com.google.cloud.run.v2.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The Job instance to create.
+     * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setJob( + com.google.cloud.run.v2.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The Job instance to create.
+     * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeJob(com.google.cloud.run.v2.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.run.v2.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The Job instance to create.
+     * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The Job instance to create.
+     * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.run.v2.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The Job instance to create.
+     * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? + com.google.cloud.run.v2.Job.getDefaultInstance() : job_; + } + } + /** + *
+     * Required. The Job instance to create.
+     * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder>( + getJob(), + getParentForChildren(), + isClean()); + job_ = null; + } + return jobBuilder_; + } + + private java.lang.Object jobId_ = ""; + /** + *
+     * Required. The unique identifier for the Job. The name of the job becomes
+     * {parent}/jobs/{job_id}.
+     * 
+ * + * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The jobId. + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The unique identifier for the Job. The name of the job becomes
+     * {parent}/jobs/{job_id}.
+     * 
+ * + * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for jobId. + */ + public com.google.protobuf.ByteString + getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The unique identifier for the Job. The name of the job becomes
+     * {parent}/jobs/{job_id}.
+     * 
+ * + * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The jobId to set. + * @return This builder for chaining. + */ + public Builder setJobId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobId_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The unique identifier for the Job. The name of the job becomes
+     * {parent}/jobs/{job_id}.
+     * 
+ * + * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearJobId() { + + jobId_ = getDefaultInstance().getJobId(); + onChanged(); + return this; + } + /** + *
+     * Required. The unique identifier for the Job. The name of the job becomes
+     * {parent}/jobs/{job_id}.
+     * 
+ * + * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for jobId to set. + * @return This builder for chaining. + */ + public Builder setJobIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobId_ = value; + onChanged(); + return this; + } + + 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 + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.CreateJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.CreateJobRequest) + private static final com.google.cloud.run.v2.CreateJobRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.CreateJobRequest(); + } + + public static com.google.cloud.run.v2.CreateJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.CreateJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java new file mode 100644 index 000000000000..0684b88e496e --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public interface CreateJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.CreateJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The location and project in which this Job should be created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * 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 Job should be created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The Job instance to create.
+   * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the job field is set. + */ + boolean hasJob(); + /** + *
+   * Required. The Job instance to create.
+   * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The job. + */ + com.google.cloud.run.v2.Job getJob(); + /** + *
+   * Required. The Job instance to create.
+   * 
+ * + * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder(); + + /** + *
+   * Required. The unique identifier for the Job. The name of the job becomes
+   * {parent}/jobs/{job_id}.
+   * 
+ * + * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The jobId. + */ + java.lang.String getJobId(); + /** + *
+   * Required. The unique identifier for the Job. The name of the job becomes
+   * {parent}/jobs/{job_id}.
+   * 
+ * + * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for jobId. + */ + com.google.protobuf.ByteString + getJobIdBytes(); + + /** + *
+   * 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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java similarity index 68% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java index 415dbba2568d..add7d779e581 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java +++ b/owl-bot-staging/java-run/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,45 +26,39 @@ 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; } - - 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_; /** - * - * *
-   * The location and project in which this service should be created.
+   * Required. The location and project in which this service should be created.
    * Format: projects/{project}/locations/{location}
    * Only lowercase characters, digits, and hyphens.
    * 
* - * - * 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 @@ -91,33 +67,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; } } /** - * - * *
-   * The location and project in which this service should be created.
+   * Required. The location and project in which this service should be created.
    * Format: projects/{project}/locations/{location}
    * Only lowercase characters, digits, and hyphens.
    * 
* - * - * 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 { @@ -128,15 +102,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 @@ -144,15 +114,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 @@ -160,14 +126,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() { @@ -177,8 +140,6 @@ 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. It must begin with letter,
    * and may not end with hyphen; must contain fewer than 50 characters.
@@ -186,7 +147,6 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() {
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serviceId. */ @java.lang.Override @@ -195,15 +155,14 @@ 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. It must begin with letter,
    * and may not end with hyphen; must contain fewer than 50 characters.
@@ -211,15 +170,16 @@ public java.lang.String getServiceId() {
    * 
* * 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 { @@ -230,15 +190,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 @@ -247,7 +204,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +215,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_); } @@ -285,13 +242,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -301,21 +260,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,142 +298,137 @@ 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) + getUnknownFields().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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -491,9 +448,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 @@ -512,8 +469,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_; @@ -530,39 +486,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; @@ -611,37 +566,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); + case 10: { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getServiceFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - serviceId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + serviceId_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -654,24 +606,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
-     * The location and project in which this service should be created.
+     * Required. The location and project in which this service should be created.
      * Format: projects/{project}/locations/{location}
      * Only lowercase characters, digits, and hyphens.
      * 
* - * - * 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; @@ -680,25 +628,22 @@ public java.lang.String getParent() { } } /** - * - * *
-     * The location and project in which this service should be created.
+     * Required. The location and project in which this service should be created.
      * Format: projects/{project}/locations/{location}
      * Only lowercase characters, digits, and hyphens.
      * 
* - * - * 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 { @@ -706,73 +651,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * The location and project in which this service should be created.
+     * Required. The location and project in which this service should be created.
      * Format: projects/{project}/locations/{location}
      * Only lowercase characters, digits, and hyphens.
      * 
* - * - * 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; } /** - * - * *
-     * The location and project in which this service should be created.
+     * Required. The location and project in which this service should be created.
      * Format: projects/{project}/locations/{location}
      * Only lowercase characters, digits, and hyphens.
      * 
* - * - * 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; } /** - * - * *
-     * The location and project in which this service should be created.
+     * Required. The location and project in which this service should be created.
      * Format: projects/{project}/locations/{location}
      * Only lowercase characters, digits, and hyphens.
      * 
* - * - * 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; @@ -780,35 +712,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() { @@ -819,14 +740,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) { @@ -842,16 +760,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(); @@ -862,20 +778,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; } @@ -887,14 +800,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) { @@ -908,59 +818,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_; @@ -968,8 +867,6 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { private java.lang.Object serviceId_ = ""; /** - * - * *
      * Required. The unique identifier for the Service. It must begin with letter,
      * and may not end with hyphen; must contain fewer than 50 characters.
@@ -977,13 +874,13 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() {
      * 
* * 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; @@ -992,8 +889,6 @@ public java.lang.String getServiceId() { } } /** - * - * *
      * Required. The unique identifier for the Service. It must begin with letter,
      * and may not end with hyphen; must contain fewer than 50 characters.
@@ -1001,14 +896,15 @@ public java.lang.String getServiceId() {
      * 
* * 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 { @@ -1016,8 +912,6 @@ public com.google.protobuf.ByteString getServiceIdBytes() { } } /** - * - * *
      * Required. The unique identifier for the Service. It must begin with letter,
      * and may not end with hyphen; must contain fewer than 50 characters.
@@ -1025,22 +919,20 @@ public com.google.protobuf.ByteString getServiceIdBytes() {
      * 
* * 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. It must begin with letter,
      * and may not end with hyphen; must contain fewer than 50 characters.
@@ -1048,18 +940,15 @@ public Builder setServiceId(java.lang.String value) {
      * 
* * 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. It must begin with letter,
      * and may not end with hyphen; must contain fewer than 50 characters.
@@ -1067,32 +956,29 @@ public Builder clearServiceId() {
      * 
* * 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 @@ -1100,45 +986,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); } @@ -1148,12 +1028,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(); } @@ -1162,27 +1042,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1197,4 +1077,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.CreateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java similarity index 63% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java index 0c244e8585d3..25839e8f1076 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java @@ -1,102 +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 CreateServiceRequestOrBuilder - extends +public interface CreateServiceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.CreateServiceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * The location and project in which this service should be created.
+   * Required. The location and project in which this service should be created.
    * Format: projects/{project}/locations/{location}
    * Only lowercase characters, digits, and hyphens.
    * 
* - * - * 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(); /** - * - * *
-   * The location and project in which this service should be created.
+   * Required. The location and project in which this service should be created.
    * Format: projects/{project}/locations/{location}
    * Only lowercase characters, digits, and hyphens.
    * 
* - * - * 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. It must begin with letter,
    * and may not end with hyphen; must contain fewer than 50 characters.
@@ -104,13 +66,10 @@ public interface CreateServiceRequestOrBuilder
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serviceId. */ java.lang.String getServiceId(); /** - * - * *
    * Required. The unique identifier for the Service. It must begin with letter,
    * and may not end with hyphen; must contain fewer than 50 characters.
@@ -118,21 +77,18 @@ public interface CreateServiceRequestOrBuilder
    * 
* * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.java new file mode 100644 index 000000000000..8661c795e80b --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.java @@ -0,0 +1,845 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message for deleting an Execution.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.DeleteExecutionRequest} + */ +public final class DeleteExecutionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.DeleteExecutionRequest) + DeleteExecutionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteExecutionRequest.newBuilder() to construct. + private DeleteExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteExecutionRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteExecutionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.DeleteExecutionRequest.class, com.google.cloud.run.v2.DeleteExecutionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The name of the Execution to delete.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The name of the Execution to delete.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getValidateOnly() { + return validateOnly_; + } + + 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 + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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() { + 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); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.DeleteExecutionRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.DeleteExecutionRequest other = (com.google.cloud.run.v2.DeleteExecutionRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + 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 = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( + com.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.DeleteExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.DeleteExecutionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for deleting an Execution.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.DeleteExecutionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.DeleteExecutionRequest) + com.google.cloud.run.v2.DeleteExecutionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.DeleteExecutionRequest.class, com.google.cloud.run.v2.DeleteExecutionRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.DeleteExecutionRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + validateOnly_ = false; + + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.DeleteExecutionRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.DeleteExecutionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.DeleteExecutionRequest build() { + com.google.cloud.run.v2.DeleteExecutionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.DeleteExecutionRequest buildPartial() { + com.google.cloud.run.v2.DeleteExecutionRequest result = new com.google.cloud.run.v2.DeleteExecutionRequest(this); + result.name_ = name_; + result.validateOnly_ = validateOnly_; + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.DeleteExecutionRequest) { + return mergeFrom((com.google.cloud.run.v2.DeleteExecutionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.DeleteExecutionRequest other) { + if (other == com.google.cloud.run.v2.DeleteExecutionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The name of the Execution to delete.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the Execution to delete.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the Execution to delete.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The name of the Execution to delete.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * 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 Execution to delete.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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 + 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; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) { + if (value == null) { + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.DeleteExecutionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.DeleteExecutionRequest) + private static final com.google.cloud.run.v2.DeleteExecutionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.DeleteExecutionRequest(); + } + + public static com.google.cloud.run.v2.DeleteExecutionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.DeleteExecutionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..bdebe44b29ed --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +public interface DeleteExecutionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.DeleteExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Execution to delete.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the Execution to delete.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + 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(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.java new file mode 100644 index 000000000000..e2dd76338666 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.java @@ -0,0 +1,838 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message to delete a Job by its full name.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.DeleteJobRequest} + */ +public final class DeleteJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.DeleteJobRequest) + DeleteJobRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteJobRequest.newBuilder() to construct. + private DeleteJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteJobRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.DeleteJobRequest.class, com.google.cloud.run.v2.DeleteJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The full name of the Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The full name of the Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_; + /** + *
+   * Indicates that the request should be validated without actually
+   * deleting any resources.
+   * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ETAG_FIELD_NUMBER = 4; + 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 = 4; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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 = 4; + * @return The bytes for etag. + */ + @java.lang.Override + 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); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.DeleteJobRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.DeleteJobRequest other = (com.google.cloud.run.v2.DeleteJobRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + 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 = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( + com.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.DeleteJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.DeleteJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.DeleteJobRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.DeleteJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message to delete a Job by its full name.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.DeleteJobRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.DeleteJobRequest) + com.google.cloud.run.v2.DeleteJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.DeleteJobRequest.class, com.google.cloud.run.v2.DeleteJobRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.DeleteJobRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + validateOnly_ = false; + + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.DeleteJobRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.DeleteJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.DeleteJobRequest build() { + com.google.cloud.run.v2.DeleteJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.DeleteJobRequest buildPartial() { + com.google.cloud.run.v2.DeleteJobRequest result = new com.google.cloud.run.v2.DeleteJobRequest(this); + result.name_ = name_; + result.validateOnly_ = validateOnly_; + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.DeleteJobRequest) { + return mergeFrom((com.google.cloud.run.v2.DeleteJobRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.DeleteJobRequest other) { + if (other == com.google.cloud.run.v2.DeleteJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: { + validateOnly_ = input.readBool(); + + break; + } // case 24 + case 34: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * 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 Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * Indicates that the request should be validated without actually
+     * deleting any resources.
+     * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * Indicates that the request should be validated without actually
+     * deleting 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 without actually
+     * deleting any resources.
+     * 
+ * + * bool validate_only = 3; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } + + 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 = 4; + * @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; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A system-generated fingerprint for this version of the
+     * resource. May be used to detect modification conflict during updates.
+     * 
+ * + * string etag = 4; + * @return The bytes for etag. + */ + 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); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A system-generated fingerprint for this version of the
+     * resource. May be used to detect modification conflict during updates.
+     * 
+ * + * string etag = 4; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { + 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 = 4; + * @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 = 4; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.DeleteJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.DeleteJobRequest) + private static final com.google.cloud.run.v2.DeleteJobRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.DeleteJobRequest(); + } + + public static com.google.cloud.run.v2.DeleteJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.DeleteJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.java new file mode 100644 index 000000000000..7451964926d5 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public interface DeleteJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.DeleteJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full name of the Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * 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 Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Indicates that the request should be validated without actually
+   * deleting any resources.
+   * 
+ * + * bool validate_only = 3; + * @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 = 4; + * @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 = 4; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java similarity index 67% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java index fd349ed0f395..48f1c7105fca 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java +++ b/owl-bot-staging/java-run/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,45 +28,39 @@ 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;
   }
-
-  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 @@ -93,33 +69,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 { @@ -130,15 +104,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 @@ -149,15 +120,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 @@ -166,30 +134,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 { @@ -198,7 +166,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -233,7 +201,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_); @@ -246,17 +215,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,7 +242,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) + getUnknownFields().hashCode(); @@ -279,104 +251,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
@@ -385,32 +350,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -424,9 +390,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
@@ -445,8 +411,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_;
@@ -458,39 +423,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;
@@ -536,31 +500,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-
-                break;
-              } // case 16
-            case 26:
-              {
-                etag_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+
+              break;
+            } // case 16
+            case 26: {
+              etag_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -573,24 +533,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; @@ -599,25 +555,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 { @@ -625,89 +578,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 @@ -715,38 +652,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; @@ -754,21 +685,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; @@ -777,22 +706,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 { @@ -800,71 +728,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); } @@ -874,12 +795,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(); } @@ -888,27 +809,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,4 +844,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.DeleteRevisionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java similarity index 57% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java index 52965f1da7c6..acff02d812e3 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java similarity index 66% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java index baf300c1d23c..da45e85cfe3f 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java +++ b/owl-bot-staging/java-run/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,44 +26,38 @@ 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; } - - 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/{project}/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 @@ -90,32 +66,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/{project}/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 { @@ -126,15 +100,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 @@ -145,15 +116,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 @@ -162,30 +130,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 { @@ -194,7 +162,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +173,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_); } @@ -229,7 +197,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_); @@ -242,17 +211,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,7 +238,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) + getUnknownFields().hashCode(); @@ -275,136 +247,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +384,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 @@ -439,8 +405,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_; @@ -452,39 +417,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; @@ -530,31 +494,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,23 +527,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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; @@ -592,24 +548,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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 { @@ -617,86 +570,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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/{project}/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/{project}/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 @@ -704,38 +641,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; @@ -743,21 +674,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; @@ -766,22 +695,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 { @@ -789,71 +717,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); } @@ -863,12 +784,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(); } @@ -877,27 +798,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -912,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.DeleteServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java similarity index 56% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java index d9b925eb2bcf..b8464ebdac19 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java +++ b/owl-bot-staging/java-run/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/{project}/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/{project}/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java similarity index 73% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java index ff7c9a0df2b8..a607fd5fa95b 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java @@ -1,83 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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; } - - 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; } @@ -93,38 +72,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 @@ -133,30 +106,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 { @@ -166,8 +139,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
@@ -180,15 +151,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
@@ -201,7 +169,6 @@ public boolean hasValue() {
    * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { @@ -212,7 +179,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; @@ -221,8 +189,6 @@ public java.lang.String getValue() { } } /** - * - * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -235,17 +201,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; } @@ -257,14 +224,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 @@ -272,26 +236,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.
    * 
@@ -301,13 +260,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; @@ -319,7 +277,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_); } @@ -345,9 +304,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -357,21 +315,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: @@ -406,134 +367,130 @@ 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); } // Construct using com.google.cloud.run.v2.EnvVar.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +505,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 @@ -590,39 +547,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; @@ -636,22 +592,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.getUnknownFields()); onChanged(); @@ -679,32 +632,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - valuesCase_ = 2; - values_ = s; - break; - } // case 18 - case 26: - { - input.readMessage(getValueSourceFieldBuilder().getBuilder(), extensionRegistry); - valuesCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + valuesCase_ = 2; + values_ = s; + break; + } // case 18 + case 26: { + input.readMessage( + getValueSourceFieldBuilder().getBuilder(), + extensionRegistry); + valuesCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -714,12 +665,12 @@ public Builder mergeFrom( } // finally 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() { @@ -729,23 +680,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; @@ -754,22 +704,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 { @@ -777,72 +726,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
@@ -855,7 +795,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string value = 2; - * * @return Whether the value field is set. */ @java.lang.Override @@ -863,8 +802,6 @@ public boolean hasValue() { return valuesCase_ == 2; } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -877,7 +814,6 @@ public boolean hasValue() {
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -887,7 +823,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; @@ -898,8 +835,6 @@ public java.lang.String getValue() { } } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -912,18 +847,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; } @@ -933,8 +869,6 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -947,22 +881,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
@@ -975,7 +907,6 @@ public Builder setValue(java.lang.String value) {
      * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -987,8 +918,6 @@ public Builder clearValue() { return this; } /** - * - * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -1001,15 +930,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(); @@ -1017,19 +946,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 @@ -1037,14 +960,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 @@ -1062,8 +982,6 @@ public com.google.cloud.run.v2.EnvVarSource getValueSource() { } } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1084,15 +1002,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(); @@ -1103,8 +1020,6 @@ public Builder setValueSource(com.google.cloud.run.v2.EnvVarSource.Builder build return this; } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1113,13 +1028,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; } @@ -1135,8 +1047,6 @@ public Builder mergeValueSource(com.google.cloud.run.v2.EnvVarSource value) { return this; } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1160,8 +1070,6 @@ public Builder clearValueSource() { return this; } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1172,8 +1080,6 @@ public com.google.cloud.run.v2.EnvVarSource.Builder getValueSourceBuilder() { return getValueSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1192,8 +1098,6 @@ public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { } } /** - * - * *
      * Source for the environment variable's value.
      * 
@@ -1201,30 +1105,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); } @@ -1234,12 +1134,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(); } @@ -1248,27 +1148,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1283,4 +1183,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.EnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java similarity index 80% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java index b0c1be02f033..f0bc095e2865 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java similarity index 66% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java index 67c39e487edb..115d6419bbdd 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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; } - - 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 @@ -83,25 +62,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.
    * 
@@ -114,7 +86,6 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +97,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()); } @@ -140,7 +112,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -150,7 +123,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); @@ -159,7 +132,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -181,135 +155,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +292,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 @@ -358,39 +327,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; @@ -428,19 +396,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSecretKeyRefFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSecretKeyRefFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -453,47 +421,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.
      * 
@@ -514,8 +469,6 @@ public Builder setSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value) return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -534,8 +487,6 @@ public Builder setSecretKeyRef( return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -546,9 +497,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; } @@ -560,8 +509,6 @@ public Builder mergeSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -580,8 +527,6 @@ public Builder clearSecretKeyRef() { return this; } /** - * - * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -589,13 +534,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.
      * 
@@ -606,14 +549,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.
      * 
@@ -621,24 +561,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); } @@ -648,12 +585,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(); } @@ -662,27 +599,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -697,4 +634,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.EnvVarSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java similarity index 61% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java index 16d2f245316d..7209c61f6e37 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java +++ b/owl-bot-staging/java-run/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/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java new file mode 100644 index 000000000000..7363e4426ea1 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java @@ -0,0 +1,4842 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Execution represents the configuration of a single execution. A execution an
+ * immutable resource that references a container image which is run to
+ * completion.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.Execution} + */ +public final class Execution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Execution) + ExecutionOrBuilder { +private static final long serialVersionUID = 0L; + // Use Execution.newBuilder() to construct. + private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Execution() { + name_ = ""; + uid_ = ""; + launchStage_ = 0; + job_ = ""; + conditions_ = java.util.Collections.emptyList(); + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Execution(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_Execution_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + 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); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.Execution.class, com.google.cloud.run.v2.Execution.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Output only. The unique name of this Execution.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Output only. The unique name of this Execution.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + private volatile java.lang.Object uid_; + /** + *
+   * Output only. Server assigned unique identifier for the Execution. 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 + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + *
+   * Output only. Server assigned unique identifier for the Execution. 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() { + 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); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public long getGeneration() { + return generation_; + } + + 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.ExecutionProto.internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * 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
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + 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
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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.ExecutionProto.internal_static_google_cloud_run_v2_Execution_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() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. Represents time when the execution was acknowledged by the
+   * execution controller. It is not guaranteed to be set in happens-before
+   * order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. Represents time when the execution was acknowledged by the
+   * execution controller. It is not guaranteed to be set in happens-before
+   * order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. Represents time when the execution was acknowledged by the
+   * execution controller. It is not guaranteed to be set in happens-before
+   * order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int START_TIME_FIELD_NUMBER = 22; + private com.google.protobuf.Timestamp startTime_; + /** + *
+   * Output only. Represents time when the execution started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + *
+   * Output only. Represents time when the execution started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + *
+   * Output only. Represents time when the execution started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int COMPLETION_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp completionTime_; + /** + *
+   * Output only. Represents time when the execution was completed. It is not
+   * guaranteed to be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the completionTime field is set. + */ + @java.lang.Override + public boolean hasCompletionTime() { + return completionTime_ != null; + } + /** + *
+   * Output only. Represents time when the execution was completed. It is not
+   * guaranteed to be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The completionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompletionTime() { + return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + } + /** + *
+   * Output only. Represents time when the execution was completed. It is not
+   * guaranteed to be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { + return getCompletionTime(); + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int DELETE_TIME_FIELD_NUMBER = 9; + 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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + 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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + @java.lang.Override + 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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return getDeleteTime(); + } + + 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. It is only populated as a response to a Delete
+   * request.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the expireTime field is set. + */ + @java.lang.Override + 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The expireTime. + */ + @java.lang.Override + 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return getExpireTime(); + } + + public static final int LAUNCH_STAGE_FIELD_NUMBER = 11; + 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
+   * preview features. Launch Stages are defined at [Google Cloud Platform
+   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * 
+ * + * .google.api.LaunchStage launch_stage = 11; + * @return The enum numeric value on the wire for launchStage. + */ + @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
+   * preview features. Launch Stages are defined at [Google Cloud Platform
+   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * 
+ * + * .google.api.LaunchStage launch_stage = 11; + * @return The launchStage. + */ + @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; + } + + public static final int JOB_FIELD_NUMBER = 12; + private volatile java.lang.Object job_; + /** + *
+   * Output only. The name of the parent Job.
+   * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The job. + */ + @java.lang.Override + public java.lang.String getJob() { + java.lang.Object ref = job_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + job_ = s; + return s; + } + } + /** + *
+   * Output only. The name of the parent Job.
+   * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for job. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJobBytes() { + java.lang.Object ref = job_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + job_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARALLELISM_FIELD_NUMBER = 13; + private int parallelism_; + /** + *
+   * Output only. Specifies the maximum desired number of tasks the execution
+   * should run at any given time. Must be <= task_count. The actual number of
+   * tasks running in steady state will be less than this number when
+   * ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when
+   * the work left to do is less than max parallelism. More info:
+   * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+   * 
+ * + * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The parallelism. + */ + @java.lang.Override + public int getParallelism() { + return parallelism_; + } + + public static final int TASK_COUNT_FIELD_NUMBER = 14; + private int taskCount_; + /** + *
+   * Output only. Specifies the desired number of tasks the execution should
+   * run. Setting to 1 means that parallelism is limited to 1 and the success of
+   * that task signals the success of the execution.
+   * More info:
+   * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+   * 
+ * + * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The taskCount. + */ + @java.lang.Override + public int getTaskCount() { + return taskCount_; + } + + public static final int TEMPLATE_FIELD_NUMBER = 15; + private com.google.cloud.run.v2.TaskTemplate template_; + /** + *
+   * Output only. The template used to create tasks for this execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the template field is set. + */ + @java.lang.Override + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+   * Output only. The template used to create tasks for this execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The template. + */ + @java.lang.Override + public com.google.cloud.run.v2.TaskTemplate getTemplate() { + return template_ == null ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+   * Output only. The template used to create tasks for this execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int RECONCILING_FIELD_NUMBER = 16; + private boolean reconciling_; + /** + *
+   * Output only. Indicates whether the resource's reconciliation is still in
+   * progress. See comments in `Job.reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 17; + private java.util.List conditions_; + /** + *
+   * Output only. The Condition of this Execution, containing its readiness
+   * status, and detailed error information in case it did not reach the desired
+   * state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Output only. The Condition of this Execution, containing its readiness
+   * status, and detailed error information in case it did not reach the desired
+   * state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Output only. The Condition of this Execution, containing its readiness
+   * status, and detailed error information in case it did not reach the desired
+   * state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Output only. The Condition of this Execution, containing its readiness
+   * status, and detailed error information in case it did not reach the desired
+   * state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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 Execution, containing its readiness
+   * status, and detailed error information in case it did not reach the desired
+   * state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + public static final int OBSERVED_GENERATION_FIELD_NUMBER = 18; + private long observedGeneration_; + /** + *
+   * Output only. The generation of this Execution. See comments in
+   * `reconciling` for additional information on reconciliation process in Cloud
+   * Run.
+   * 
+ * + * int64 observed_generation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The observedGeneration. + */ + @java.lang.Override + public long getObservedGeneration() { + return observedGeneration_; + } + + public static final int RUNNING_COUNT_FIELD_NUMBER = 19; + private int runningCount_; + /** + *
+   * Output only. The number of actively running tasks.
+   * 
+ * + * int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The runningCount. + */ + @java.lang.Override + public int getRunningCount() { + return runningCount_; + } + + public static final int SUCCEEDED_COUNT_FIELD_NUMBER = 20; + private int succeededCount_; + /** + *
+   * Output only. The number of tasks which reached phase Succeeded.
+   * 
+ * + * int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The succeededCount. + */ + @java.lang.Override + public int getSucceededCount() { + return succeededCount_; + } + + public static final int FAILED_COUNT_FIELD_NUMBER = 21; + private int failedCount_; + /** + *
+   * Output only. The number of tasks which reached phase Failed.
+   * 
+ * + * int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The failedCount. + */ + @java.lang.Override + public int getFailedCount() { + return failedCount_; + } + + 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 + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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() { + 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); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); + } + 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); + if (createTime_ != null) { + output.writeMessage(6, getCreateTime()); + } + if (completionTime_ != null) { + output.writeMessage(7, getCompletionTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + if (deleteTime_ != null) { + output.writeMessage(9, getDeleteTime()); + } + if (expireTime_ != null) { + output.writeMessage(10, getExpireTime()); + } + if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { + output.writeEnum(11, launchStage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(job_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, job_); + } + if (parallelism_ != 0) { + output.writeInt32(13, parallelism_); + } + if (taskCount_ != 0) { + output.writeInt32(14, taskCount_); + } + if (template_ != null) { + output.writeMessage(15, getTemplate()); + } + if (reconciling_ != false) { + output.writeBool(16, reconciling_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(17, conditions_.get(i)); + } + if (observedGeneration_ != 0L) { + output.writeInt64(18, observedGeneration_); + } + if (runningCount_ != 0) { + output.writeInt32(19, runningCount_); + } + if (succeededCount_ != 0) { + output.writeInt32(20, succeededCount_); + } + if (failedCount_ != 0) { + output.writeInt32(21, failedCount_); + } + if (startTime_ != null) { + output.writeMessage(22, getStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + 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__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); + } + if (completionTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCompletionTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdateTime()); + } + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDeleteTime()); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getExpireTime()); + } + if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, launchStage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(job_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, job_); + } + if (parallelism_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(13, parallelism_); + } + if (taskCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(14, taskCount_); + } + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getTemplate()); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, reconciling_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, conditions_.get(i)); + } + if (observedGeneration_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(18, observedGeneration_); + } + if (runningCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(19, runningCount_); + } + if (succeededCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(20, succeededCount_); + } + if (failedCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(21, failedCount_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.Execution)) { + return super.equals(obj); + } + com.google.cloud.run.v2.Execution other = (com.google.cloud.run.v2.Execution) 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 (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasCompletionTime() != other.hasCompletionTime()) return false; + if (hasCompletionTime()) { + if (!getCompletionTime() + .equals(other.getCompletionTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; + } + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + } + if (launchStage_ != other.launchStage_) return false; + if (!getJob() + .equals(other.getJob())) return false; + if (getParallelism() + != other.getParallelism()) return false; + if (getTaskCount() + != other.getTaskCount()) return false; + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (getReconciling() + != other.getReconciling()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; + if (getObservedGeneration() + != other.getObservedGeneration()) return false; + if (getRunningCount() + != other.getRunningCount()) return false; + if (getSucceededCount() + != other.getSucceededCount()) return false; + if (getFailedCount() + != other.getFailedCount()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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()); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasCompletionTime()) { + hash = (37 * hash) + COMPLETION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompletionTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + LAUNCH_STAGE_FIELD_NUMBER; + hash = (53 * hash) + launchStage_; + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + hash = (37 * hash) + PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + getParallelism(); + hash = (37 * hash) + TASK_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTaskCount(); + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + 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 = (37 * hash) + RUNNING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRunningCount(); + hash = (37 * hash) + SUCCEEDED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSucceededCount(); + hash = (37 * hash) + FAILED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getFailedCount(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.Execution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.Execution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.Execution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.Execution parseFrom( + com.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.Execution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.Execution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.Execution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.Execution parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.Execution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.Execution parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.Execution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.Execution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.Execution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Execution represents the configuration of a single execution. A execution an
+   * immutable resource that references a container image which is run to
+   * completion.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.Execution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.Execution) + com.google.cloud.run.v2.ExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_Execution_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + 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); + } + } + @SuppressWarnings({"rawtypes"}) + 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); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.Execution.class, com.google.cloud.run.v2.Execution.Builder.class); + } + + // Construct using com.google.cloud.run.v2.Execution.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + uid_ = ""; + + generation_ = 0L; + + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (completionTimeBuilder_ == null) { + completionTime_ = null; + } else { + completionTime_ = null; + completionTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + if (expireTimeBuilder_ == null) { + expireTime_ = null; + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + launchStage_ = 0; + + job_ = ""; + + parallelism_ = 0; + + taskCount_ = 0; + + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + reconciling_ = false; + + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + observedGeneration_ = 0L; + + runningCount_ = 0; + + succeededCount_ = 0; + + failedCount_ = 0; + + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_Execution_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.Execution getDefaultInstanceForType() { + return com.google.cloud.run.v2.Execution.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.Execution build() { + com.google.cloud.run.v2.Execution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.Execution buildPartial() { + com.google.cloud.run.v2.Execution result = new com.google.cloud.run.v2.Execution(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.uid_ = uid_; + result.generation_ = generation_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (completionTimeBuilder_ == null) { + result.completionTime_ = completionTime_; + } else { + result.completionTime_ = completionTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (deleteTimeBuilder_ == null) { + result.deleteTime_ = deleteTime_; + } else { + result.deleteTime_ = deleteTimeBuilder_.build(); + } + if (expireTimeBuilder_ == null) { + result.expireTime_ = expireTime_; + } else { + result.expireTime_ = expireTimeBuilder_.build(); + } + result.launchStage_ = launchStage_; + result.job_ = job_; + result.parallelism_ = parallelism_; + result.taskCount_ = taskCount_; + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + result.reconciling_ = reconciling_; + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.observedGeneration_ = observedGeneration_; + result.runningCount_ = runningCount_; + result.succeededCount_ = succeededCount_; + result.failedCount_ = failedCount_; + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.Execution) { + return mergeFrom((com.google.cloud.run.v2.Execution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.Execution other) { + if (other == com.google.cloud.run.v2.Execution.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (other.getGeneration() != 0L) { + setGeneration(other.getGeneration()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasCompletionTime()) { + mergeCompletionTime(other.getCompletionTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (other.launchStage_ != 0) { + setLaunchStageValue(other.getLaunchStageValue()); + } + if (!other.getJob().isEmpty()) { + job_ = other.job_; + onChanged(); + } + if (other.getParallelism() != 0) { + setParallelism(other.getParallelism()); + } + if (other.getTaskCount() != 0) { + setTaskCount(other.getTaskCount()); + } + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.getObservedGeneration() != 0L) { + setObservedGeneration(other.getObservedGeneration()); + } + if (other.getRunningCount() != 0) { + setRunningCount(other.getRunningCount()); + } + if (other.getSucceededCount() != 0) { + setSucceededCount(other.getSucceededCount()); + } + if (other.getFailedCount() != 0) { + setFailedCount(other.getFailedCount()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + generation_ = input.readInt64(); + + break; + } // case 24 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 58: { + input.readMessage( + getCompletionTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 66: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + case 74: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 82 + case 88: { + launchStage_ = input.readEnum(); + + break; + } // case 88 + case 98: { + job_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 104: { + parallelism_ = input.readInt32(); + + break; + } // case 104 + case 112: { + taskCount_ = input.readInt32(); + + break; + } // case 112 + case 122: { + input.readMessage( + getTemplateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 122 + case 128: { + reconciling_ = input.readBool(); + + break; + } // case 128 + case 138: { + com.google.cloud.run.v2.Condition m = + input.readMessage( + com.google.cloud.run.v2.Condition.parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 138 + case 144: { + observedGeneration_ = input.readInt64(); + + break; + } // case 144 + case 152: { + runningCount_ = input.readInt32(); + + break; + } // case 152 + case 160: { + succeededCount_ = input.readInt32(); + + break; + } // case 160 + case 168: { + failedCount_ = input.readInt32(); + + break; + } // case 168 + case 178: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 178 + case 794: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 794 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. The unique name of this Execution.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The unique name of this Execution.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The unique name of this Execution.
+     * 
+ * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The unique name of this Execution.
+     * 
+ * + * 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 Execution.
+     * 
+ * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + *
+     * Output only. Server assigned unique identifier for the Execution. 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; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Server assigned unique identifier for the Execution. 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() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Server assigned unique identifier for the Execution. 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) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Server assigned unique identifier for the Execution. 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 Execution. 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + 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 + 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() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * 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
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + 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
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + + 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 + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + onChanged();; + if (annotations_ == null) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + internalGetMutableAnnotations().getMutableMap() + .clear(); + return this; + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAnnotations() { + return internalGetMutableAnnotations().getMutableMap(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableAnnotations().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); + 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_; + /** + *
+     * Output only. Represents time when the execution was acknowledged by the
+     * execution controller. It is not guaranteed to be set in happens-before
+     * order across separate operations.
+     * 
+ * + * .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. Represents time when the execution was acknowledged by the
+     * execution controller. It is not guaranteed to be set in happens-before
+     * order across separate operations.
+     * 
+ * + * .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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Represents time when the execution was acknowledged by the
+     * execution controller. It is not guaranteed to be set in happens-before
+     * order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution was acknowledged by the
+     * execution controller. It is not guaranteed to be set in happens-before
+     * order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution was acknowledged by the
+     * execution controller. It is not guaranteed to be set in happens-before
+     * order across separate operations.
+     * 
+ * + * .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(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution was acknowledged by the
+     * execution controller. It is not guaranteed to be set in happens-before
+     * order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution was acknowledged by the
+     * execution controller. It is not guaranteed to be set in happens-before
+     * order across separate operations.
+     * 
+ * + * .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. Represents time when the execution was acknowledged by the
+     * execution controller. It is not guaranteed to be set in happens-before
+     * order across separate operations.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Output only. Represents time when the execution was acknowledged by the
+     * execution controller. It is not guaranteed to be set in happens-before
+     * order across separate operations.
+     * 
+ * + * .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> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + *
+     * Output only. Represents time when the execution started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + *
+     * Output only. Represents time when the execution started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Represents time when the execution started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Represents time when the execution started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + *
+     * Output only. Represents time when the execution started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp completionTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; + /** + *
+     * Output only. Represents time when the execution was completed. It is not
+     * guaranteed to be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the completionTime field is set. + */ + public boolean hasCompletionTime() { + return completionTimeBuilder_ != null || completionTime_ != null; + } + /** + *
+     * Output only. Represents time when the execution was completed. It is not
+     * guaranteed to be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The completionTime. + */ + public com.google.protobuf.Timestamp getCompletionTime() { + if (completionTimeBuilder_ == null) { + return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + } else { + return completionTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Represents time when the execution was completed. It is not
+     * guaranteed to be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCompletionTime(com.google.protobuf.Timestamp value) { + if (completionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completionTime_ = value; + onChanged(); + } else { + completionTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution was completed. It is not
+     * guaranteed to be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCompletionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (completionTimeBuilder_ == null) { + completionTime_ = builderForValue.build(); + onChanged(); + } else { + completionTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution was completed. It is not
+     * guaranteed to be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { + if (completionTimeBuilder_ == null) { + if (completionTime_ != null) { + completionTime_ = + com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); + } else { + completionTime_ = value; + } + onChanged(); + } else { + completionTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution was completed. It is not
+     * guaranteed to be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCompletionTime() { + if (completionTimeBuilder_ == null) { + completionTime_ = null; + onChanged(); + } else { + completionTime_ = null; + completionTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Represents time when the execution was completed. It is not
+     * guaranteed to be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { + + onChanged(); + return getCompletionTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Represents time when the execution was completed. It is not
+     * guaranteed to be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { + if (completionTimeBuilder_ != null) { + return completionTimeBuilder_.getMessageOrBuilder(); + } else { + return completionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + } + } + /** + *
+     * Output only. Represents time when the execution was completed. It is not
+     * guaranteed to be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_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> + getCompletionTimeFieldBuilder() { + if (completionTimeBuilder_ == null) { + completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCompletionTime(), + getParentForChildren(), + isClean()); + completionTime_ = null; + } + return completionTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .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(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .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> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + 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 = 9 [(.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 = 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_; + } 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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + onChanged(); + } else { + deleteTimeBuilder_.setMessage(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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + onChanged(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + + 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 = 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(); + } else { + deleteTime_ = value; + } + onChanged(); + } else { + deleteTimeBuilder_.mergeFrom(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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearDeleteTime() { + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + onChanged(); + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + + 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 = 9 [(.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 = 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_; + } + } + /** + *
+     * 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 = 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> + 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()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + 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_; + /** + *
+     * 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 = 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. It is only populated as a response to a Delete
+     * request.
+     * 
+ * + * .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_; + } 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + + 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 = 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(); + } else { + expireTime_ = value; + } + onChanged(); + } else { + expireTimeBuilder_.mergeFrom(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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + expireTime_ = null; + onChanged(); + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + + 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 = 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. It is only populated as a response to a Delete
+     * request.
+     * 
+ * + * .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_; + } + } + /** + *
+     * 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 = 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> + 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()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + 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
+     * preview features. Launch Stages are defined at [Google Cloud Platform
+     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * 
+ * + * .google.api.LaunchStage launch_stage = 11; + * @return The enum numeric value on the wire for launchStage. + */ + @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
+     * preview features. Launch Stages are defined at [Google Cloud Platform
+     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * 
+ * + * .google.api.LaunchStage launch_stage = 11; + * @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
+     * preview features. Launch Stages are defined at [Google Cloud Platform
+     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * 
+ * + * .google.api.LaunchStage launch_stage = 11; + * @return The launchStage. + */ + @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; + } + /** + *
+     * 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
+     * preview features. Launch Stages are defined at [Google Cloud Platform
+     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * 
+ * + * .google.api.LaunchStage launch_stage = 11; + * @param value The launchStage to set. + * @return This builder for chaining. + */ + 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
+     * preview features. Launch Stages are defined at [Google Cloud Platform
+     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * 
+ * + * .google.api.LaunchStage launch_stage = 11; + * @return This builder for chaining. + */ + public Builder clearLaunchStage() { + + launchStage_ = 0; + onChanged(); + return this; + } + + private java.lang.Object job_ = ""; + /** + *
+     * Output only. The name of the parent Job.
+     * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The job. + */ + public java.lang.String getJob() { + java.lang.Object ref = job_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + job_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The name of the parent Job.
+     * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for job. + */ + public com.google.protobuf.ByteString + getJobBytes() { + java.lang.Object ref = job_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + job_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The name of the parent Job.
+     * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The job to set. + * @return This builder for chaining. + */ + public Builder setJob( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + job_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The name of the parent Job.
+     * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearJob() { + + job_ = getDefaultInstance().getJob(); + onChanged(); + return this; + } + /** + *
+     * Output only. The name of the parent Job.
+     * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The bytes for job to set. + * @return This builder for chaining. + */ + public Builder setJobBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + job_ = value; + onChanged(); + return this; + } + + private int parallelism_ ; + /** + *
+     * Output only. Specifies the maximum desired number of tasks the execution
+     * should run at any given time. Must be <= task_count. The actual number of
+     * tasks running in steady state will be less than this number when
+     * ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when
+     * the work left to do is less than max parallelism. More info:
+     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * 
+ * + * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The parallelism. + */ + @java.lang.Override + public int getParallelism() { + return parallelism_; + } + /** + *
+     * Output only. Specifies the maximum desired number of tasks the execution
+     * should run at any given time. Must be <= task_count. The actual number of
+     * tasks running in steady state will be less than this number when
+     * ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when
+     * the work left to do is less than max parallelism. More info:
+     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * 
+ * + * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The parallelism to set. + * @return This builder for chaining. + */ + public Builder setParallelism(int value) { + + parallelism_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Specifies the maximum desired number of tasks the execution
+     * should run at any given time. Must be <= task_count. The actual number of
+     * tasks running in steady state will be less than this number when
+     * ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when
+     * the work left to do is less than max parallelism. More info:
+     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * 
+ * + * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearParallelism() { + + parallelism_ = 0; + onChanged(); + return this; + } + + private int taskCount_ ; + /** + *
+     * Output only. Specifies the desired number of tasks the execution should
+     * run. Setting to 1 means that parallelism is limited to 1 and the success of
+     * that task signals the success of the execution.
+     * More info:
+     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * 
+ * + * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The taskCount. + */ + @java.lang.Override + public int getTaskCount() { + return taskCount_; + } + /** + *
+     * Output only. Specifies the desired number of tasks the execution should
+     * run. Setting to 1 means that parallelism is limited to 1 and the success of
+     * that task signals the success of the execution.
+     * More info:
+     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * 
+ * + * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The taskCount to set. + * @return This builder for chaining. + */ + public Builder setTaskCount(int value) { + + taskCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Specifies the desired number of tasks the execution should
+     * run. Setting to 1 means that parallelism is limited to 1 and the success of
+     * that task signals the success of the execution.
+     * More info:
+     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * 
+ * + * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearTaskCount() { + + taskCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.run.v2.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+     * Output only. The template used to create tasks for this execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the template field is set. + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+     * Output only. The template used to create tasks for this execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The template. + */ + public com.google.cloud.run.v2.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The template used to create tasks for this execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setTemplate(com.google.cloud.run.v2.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The template used to create tasks for this execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setTemplate( + com.google.cloud.run.v2.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The template used to create tasks for this execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeTemplate(com.google.cloud.run.v2.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + com.google.cloud.run.v2.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The template used to create tasks for this execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The template used to create tasks for this execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The template used to create tasks for this execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+     * Output only. The template used to create tasks for this execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private boolean reconciling_ ; + /** + *
+     * Output only. Indicates whether the resource's reconciliation is still in
+     * progress. See comments in `Job.reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + /** + *
+     * Output only. Indicates whether the resource's reconciliation is still in
+     * progress. See comments in `Job.reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * bool reconciling = 16 [(.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 `Job.reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * bool reconciling = 16 [(.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(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000004; + } + } + + 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_; + + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.Condition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConditions( + int index, com.google.cloud.run.v2.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConditions( + int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions(com.google.cloud.run.v2.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + int index, com.google.cloud.run.v2.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + com.google.cloud.run.v2.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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()); + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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()); + } + /** + *
+     * Output only. The Condition of this Execution, containing its readiness
+     * status, and detailed error information in case it did not reach the desired
+     * state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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> + 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_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private long observedGeneration_ ; + /** + *
+     * Output only. The generation of this Execution. See comments in
+     * `reconciling` for additional information on reconciliation process in Cloud
+     * Run.
+     * 
+ * + * int64 observed_generation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The observedGeneration. + */ + @java.lang.Override + public long getObservedGeneration() { + return observedGeneration_; + } + /** + *
+     * Output only. The generation of this Execution. See comments in
+     * `reconciling` for additional information on reconciliation process in Cloud
+     * Run.
+     * 
+ * + * int64 observed_generation = 18 [(.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 Execution. See comments in
+     * `reconciling` for additional information on reconciliation process in Cloud
+     * Run.
+     * 
+ * + * int64 observed_generation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearObservedGeneration() { + + observedGeneration_ = 0L; + onChanged(); + return this; + } + + private int runningCount_ ; + /** + *
+     * Output only. The number of actively running tasks.
+     * 
+ * + * int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The runningCount. + */ + @java.lang.Override + public int getRunningCount() { + return runningCount_; + } + /** + *
+     * Output only. The number of actively running tasks.
+     * 
+ * + * int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The runningCount to set. + * @return This builder for chaining. + */ + public Builder setRunningCount(int value) { + + runningCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The number of actively running tasks.
+     * 
+ * + * int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearRunningCount() { + + runningCount_ = 0; + onChanged(); + return this; + } + + private int succeededCount_ ; + /** + *
+     * Output only. The number of tasks which reached phase Succeeded.
+     * 
+ * + * int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The succeededCount. + */ + @java.lang.Override + public int getSucceededCount() { + return succeededCount_; + } + /** + *
+     * Output only. The number of tasks which reached phase Succeeded.
+     * 
+ * + * int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The succeededCount to set. + * @return This builder for chaining. + */ + public Builder setSucceededCount(int value) { + + succeededCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The number of tasks which reached phase Succeeded.
+     * 
+ * + * int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearSucceededCount() { + + succeededCount_ = 0; + onChanged(); + return this; + } + + private int failedCount_ ; + /** + *
+     * Output only. The number of tasks which reached phase Failed.
+     * 
+ * + * int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The failedCount. + */ + @java.lang.Override + public int getFailedCount() { + return failedCount_; + } + /** + *
+     * Output only. The number of tasks which reached phase Failed.
+     * 
+ * + * int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The failedCount to set. + * @return This builder for chaining. + */ + public Builder setFailedCount(int value) { + + failedCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The number of tasks which reached phase Failed.
+     * 
+ * + * int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearFailedCount() { + + failedCount_ = 0; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) { + if (value == null) { + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Execution) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Execution) + private static final com.google.cloud.run.v2.Execution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.Execution(); + } + + public static com.google.cloud.run.v2.Execution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.Execution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java similarity index 69% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java index f2d527313733..cbf17235ef60 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/vendor_settings.proto package com.google.cloud.run.v2; /** - * - * *
  * Alternatives for execution environments.
  * 
* * Protobuf enum {@code google.cloud.run.v2.ExecutionEnvironment} */ -public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageEnum { +public enum ExecutionEnvironment + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified
    * 
@@ -39,8 +21,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ EXECUTION_ENVIRONMENT_UNSPECIFIED(0), /** - * - * *
    * Uses the First Generation environment.
    * 
@@ -49,8 +29,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ EXECUTION_ENVIRONMENT_GEN1(1), /** - * - * *
    * Uses Second Generation environment.
    * 
@@ -62,8 +40,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE ; /** - * - * *
    * Unspecified
    * 
@@ -72,8 +48,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ public static final int EXECUTION_ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Uses the First Generation environment.
    * 
@@ -82,8 +56,6 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ public static final int EXECUTION_ENVIRONMENT_GEN1_VALUE = 1; /** - * - * *
    * Uses Second Generation environment.
    * 
@@ -92,6 +64,7 @@ public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageE */ public static final int EXECUTION_ENVIRONMENT_GEN2_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,14 +89,10 @@ public static ExecutionEnvironment valueOf(int value) { */ public static ExecutionEnvironment forNumber(int value) { switch (value) { - case 0: - return EXECUTION_ENVIRONMENT_UNSPECIFIED; - case 1: - return EXECUTION_ENVIRONMENT_GEN1; - case 2: - return EXECUTION_ENVIRONMENT_GEN2; - default: - return null; + case 0: return EXECUTION_ENVIRONMENT_UNSPECIFIED; + case 1: return EXECUTION_ENVIRONMENT_GEN1; + case 2: return EXECUTION_ENVIRONMENT_GEN2; + default: return null; } } @@ -131,28 +100,28 @@ public static ExecutionEnvironment forNumber(int value) { internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionEnvironment findValueByNumber(int number) { - return ExecutionEnvironment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionEnvironment> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionEnvironment findValueByNumber(int number) { + return ExecutionEnvironment.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.run.v2.VendorSettingsProto.getDescriptor().getEnumTypes().get(1); } @@ -161,7 +130,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ExecutionEnvironment valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -177,3 +147,4 @@ private ExecutionEnvironment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.ExecutionEnvironment) } + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java new file mode 100644 index 000000000000..9c3842fe5d60 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ExecutionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_JOB_EXECUTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/jobs/{job}/executions/{execution}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String job; + private final String execution; + + @Deprecated + protected ExecutionName() { + project = null; + location = null; + job = null; + execution = null; + } + + private ExecutionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + job = Preconditions.checkNotNull(builder.getJob()); + execution = Preconditions.checkNotNull(builder.getExecution()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public String getExecution() { + return execution; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ExecutionName of(String project, String location, String job, String execution) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setJob(job) + .setExecution(execution) + .build(); + } + + public static String format(String project, String location, String job, String execution) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setJob(job) + .setExecution(execution) + .build() + .toString(); + } + + public static ExecutionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_JOB_EXECUTION.validatedMatch( + formattedString, "ExecutionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("job"), + matchMap.get("execution")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ExecutionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_JOB_EXECUTION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (job != null) { + fieldMapBuilder.put("job", job); + } + if (execution != null) { + fieldMapBuilder.put("execution", execution); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_JOB_EXECUTION.instantiate( + "project", project, "location", location, "job", job, "execution", execution); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ExecutionName that = ((ExecutionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.job, that.job) + && Objects.equals(this.execution, that.execution); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(job); + h *= 1000003; + h ^= Objects.hashCode(execution); + return h; + } + + /** Builder for projects/{project}/locations/{location}/jobs/{job}/executions/{execution}. */ + public static class Builder { + private String project; + private String location; + private String job; + private String execution; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public String getExecution() { + return execution; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setJob(String job) { + this.job = job; + return this; + } + + public Builder setExecution(String execution) { + this.execution = execution; + return this; + } + + private Builder(ExecutionName executionName) { + this.project = executionName.project; + this.location = executionName.location; + this.job = executionName.job; + this.execution = executionName.execution; + } + + public ExecutionName build() { + return new ExecutionName(this); + } + } +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java new file mode 100644 index 000000000000..654c1fbb8857 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java @@ -0,0 +1,633 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +public interface ExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Execution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The unique name of this Execution.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Output only. The unique name of this Execution.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Output only. Server assigned unique identifier for the Execution. 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 Execution. 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(); + + /** + *
+   * 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
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + int getAnnotationsCount(); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAnnotations(); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + java.util.Map + getAnnotationsMap(); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + + /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + + java.lang.String getAnnotationsOrThrow( + java.lang.String key); + + /** + *
+   * Output only. Represents time when the execution was acknowledged by the
+   * execution controller. It is not guaranteed to be set in happens-before
+   * order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Output only. Represents time when the execution was acknowledged by the
+   * execution controller. It is not guaranteed to be set in happens-before
+   * order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. Represents time when the execution was acknowledged by the
+   * execution controller. It is not guaranteed to be set in happens-before
+   * order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. Represents time when the execution started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + *
+   * Output only. Represents time when the execution started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + *
+   * Output only. Represents time when the execution started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + *
+   * Output only. Represents time when the execution was completed. It is not
+   * guaranteed to be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the completionTime field is set. + */ + boolean hasCompletionTime(); + /** + *
+   * Output only. Represents time when the execution was completed. It is not
+   * guaranteed to be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The completionTime. + */ + com.google.protobuf.Timestamp getCompletionTime(); + /** + *
+   * Output only. Represents time when the execution was completed. It is not
+   * guaranteed to be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); + + /** + *
+   * Output only. The last-modified time.
+   * 
+ * + * .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]; + * @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]; + */ + 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 = 9 [(.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 = 9 [(.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 = 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. It is only populated as a response to a Delete
+   * request.
+   * 
+ * + * .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. It is only populated as a response to a Delete
+   * request.
+   * 
+ * + * .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. It is only populated as a response to a Delete
+   * request.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.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
+   * preview features. Launch Stages are defined at [Google Cloud Platform
+   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * 
+ * + * .google.api.LaunchStage launch_stage = 11; + * @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
+   * preview features. Launch Stages are defined at [Google Cloud Platform
+   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * 
+ * + * .google.api.LaunchStage launch_stage = 11; + * @return The launchStage. + */ + com.google.api.LaunchStage getLaunchStage(); + + /** + *
+   * Output only. The name of the parent Job.
+   * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The job. + */ + java.lang.String getJob(); + /** + *
+   * Output only. The name of the parent Job.
+   * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for job. + */ + com.google.protobuf.ByteString + getJobBytes(); + + /** + *
+   * Output only. Specifies the maximum desired number of tasks the execution
+   * should run at any given time. Must be <= task_count. The actual number of
+   * tasks running in steady state will be less than this number when
+   * ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when
+   * the work left to do is less than max parallelism. More info:
+   * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+   * 
+ * + * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The parallelism. + */ + int getParallelism(); + + /** + *
+   * Output only. Specifies the desired number of tasks the execution should
+   * run. Setting to 1 means that parallelism is limited to 1 and the success of
+   * that task signals the success of the execution.
+   * More info:
+   * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+   * 
+ * + * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The taskCount. + */ + int getTaskCount(); + + /** + *
+   * Output only. The template used to create tasks for this execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the template field is set. + */ + boolean hasTemplate(); + /** + *
+   * Output only. The template used to create tasks for this execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The template. + */ + com.google.cloud.run.v2.TaskTemplate getTemplate(); + /** + *
+   * Output only. The template used to create tasks for this execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+   * Output only. Indicates whether the resource's reconciliation is still in
+   * progress. See comments in `Job.reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + boolean getReconciling(); + + /** + *
+   * Output only. The Condition of this Execution, containing its readiness
+   * status, and detailed error information in case it did not reach the desired
+   * state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConditionsList(); + /** + *
+   * Output only. The Condition of this Execution, containing its readiness
+   * status, and detailed error information in case it did not reach the desired
+   * state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.run.v2.Condition getConditions(int index); + /** + *
+   * Output only. The Condition of this Execution, containing its readiness
+   * status, and detailed error information in case it did not reach the desired
+   * state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getConditionsCount(); + /** + *
+   * Output only. The Condition of this Execution, containing its readiness
+   * status, and detailed error information in case it did not reach the desired
+   * state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Output only. The Condition of this Execution, containing its readiness
+   * status, and detailed error information in case it did not reach the desired
+   * state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index); + + /** + *
+   * Output only. The generation of this Execution. See comments in
+   * `reconciling` for additional information on reconciliation process in Cloud
+   * Run.
+   * 
+ * + * int64 observed_generation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The observedGeneration. + */ + long getObservedGeneration(); + + /** + *
+   * Output only. The number of actively running tasks.
+   * 
+ * + * int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The runningCount. + */ + int getRunningCount(); + + /** + *
+   * Output only. The number of tasks which reached phase Succeeded.
+   * 
+ * + * int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The succeededCount. + */ + int getSucceededCount(); + + /** + *
+   * Output only. The number of tasks which reached phase Failed.
+   * 
+ * + * int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The failedCount. + */ + int getFailedCount(); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java new file mode 100644 index 000000000000..131dc5f84903 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java @@ -0,0 +1,209 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +public final class ExecutionProto { + private ExecutionProto() {} + 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_GetExecutionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Execution_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Execution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Execution_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Execution_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Execution_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/execution.proto\022\023g" + + "oogle.cloud.run.v2\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\035google/api/l" + + "aunch_stage.proto\032\031google/api/resource.p" + + "roto\032#google/cloud/run/v2/condition.prot" + + "o\032\'google/cloud/run/v2/task_template.pro" + + "to\032#google/longrunning/operations.proto\032" + + "\037google/protobuf/timestamp.proto\"I\n\023GetE" + + "xecutionRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034r" + + "un.googleapis.com/Execution\"\212\001\n\025ListExec" + + "utionsRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034r" + + "un.googleapis.com/Execution\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_delet" + + "ed\030\004 \001(\010\"e\n\026ListExecutionsResponse\0222\n\nex" + + "ecutions\030\001 \003(\0132\036.google.cloud.run.v2.Exe" + + "cution\022\027\n\017next_page_token\030\002 \001(\t\"q\n\026Delet" + + "eExecutionRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034run.googleapis.com/Execution\022\025\n\rvalidat" + + "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\214\t\n\tExecution" + + "\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\022:\n\006labels\030\004 \003(\0132*" + + ".google.cloud.run.v2.Execution.LabelsEnt" + + "ry\022D\n\013annotations\030\005 \003(\0132/.google.cloud.r" + + "un.v2.Execution.AnnotationsEntry\0224\n\013crea" + + "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0223\n\nstart_time\030\026 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0228\n\017completion_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\010 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013expire_time" + + "\030\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "-\n\014launch_stage\030\013 \001(\0162\027.google.api.Launc" + + "hStage\022+\n\003job\030\014 \001(\tB\036\340A\003\372A\030\n\026run.googlea" + + "pis.com/Job\022\030\n\013parallelism\030\r \001(\005B\003\340A\003\022\027\n" + + "\ntask_count\030\016 \001(\005B\003\340A\003\0228\n\010template\030\017 \001(\013" + + "2!.google.cloud.run.v2.TaskTemplateB\003\340A\003" + + "\022\030\n\013reconciling\030\020 \001(\010B\003\340A\003\0227\n\nconditions" + + "\030\021 \003(\0132\036.google.cloud.run.v2.ConditionB\003" + + "\340A\003\022 \n\023observed_generation\030\022 \001(\003B\003\340A\003\022\032\n" + + "\rrunning_count\030\023 \001(\005B\003\340A\003\022\034\n\017succeeded_c" + + "ount\030\024 \001(\005B\003\340A\003\022\031\n\014failed_count\030\025 \001(\005B\003\340" + + "A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotati" + + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":o\352Al\n\034run.googleapis.com/Execution\022Ipro" + + "jects/{project}/locations/{location}/job" + + "s/{job}/executions/{execution}R\001\0012\350\004\n\nEx" + + "ecutions\022\236\001\n\014GetExecution\022(.google.cloud" + + ".run.v2.GetExecutionRequest\032\036.google.clo" + + "ud.run.v2.Execution\"D\202\323\344\223\0027\0225/v2/{name=p" + + "rojects/*/locations/*/jobs/*/executions/" + + "*}\332A\004name\022\261\001\n\016ListExecutions\022*.google.cl" + + "oud.run.v2.ListExecutionsRequest\032+.googl" + + "e.cloud.run.v2.ListExecutionsResponse\"F\202" + + "\323\344\223\0027\0225/v2/{parent=projects/*/locations/" + + "*/jobs/*}/executions\332A\006parent\022\274\001\n\017Delete" + + "Execution\022+.google.cloud.run.v2.DeleteEx" + + "ecutionRequest\032\035.google.longrunning.Oper" + + "ation\"]\202\323\344\223\0027*5/v2/{name=projects/*/loca" + + "tions/*/jobs/*/executions/*}\332A\004name\312A\026\n\t" + + "Execution\022\tExecution\032F\312A\022run.googleapis." + + "com\322A.https://www.googleapis.com/auth/cl" + + "oud-platformBc\n\027com.google.cloud.run.v2B" + + "\016ExecutionProtoP\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.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.TaskTemplateProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); + internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor, + new java.lang.String[] { "Executions", "NextPageToken", }); + internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_run_v2_Execution_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_Execution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Execution_descriptor, + new java.lang.String[] { "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "StartTime", "CompletionTime", "UpdateTime", "DeleteTime", "ExpireTime", "LaunchStage", "Job", "Parallelism", "TaskCount", "Template", "Reconciling", "Conditions", "ObservedGeneration", "RunningCount", "SucceededCount", "FailedCount", "Etag", }); + internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Execution_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Execution_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_Execution_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Execution_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Execution_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Execution_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.TaskTemplateProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java new file mode 100644 index 000000000000..17e2fb129535 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Reference to an Execution. Use /Executions.GetExecution with the given name
+ * to get full execution including the latest status.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.ExecutionReference} + */ +public final class ExecutionReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ExecutionReference) + ExecutionReferenceOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExecutionReference.newBuilder() to construct. + private ExecutionReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionReference() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ExecutionReference(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ExecutionReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ExecutionReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ExecutionReference.class, com.google.cloud.run.v2.ExecutionReference.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Name of the execution.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Name of the execution.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int COMPLETION_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp completionTime_; + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + * @return Whether the completionTime field is set. + */ + @java.lang.Override + public boolean hasCompletionTime() { + return completionTime_ != null; + } + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + * @return The completionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompletionTime() { + return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + } + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { + return getCompletionTime(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (completionTime_ != null) { + output.writeMessage(3, getCompletionTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); + } + if (completionTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCompletionTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.ExecutionReference)) { + return super.equals(obj); + } + com.google.cloud.run.v2.ExecutionReference other = (com.google.cloud.run.v2.ExecutionReference) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasCompletionTime() != other.hasCompletionTime()) return false; + if (hasCompletionTime()) { + if (!getCompletionTime() + .equals(other.getCompletionTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasCompletionTime()) { + hash = (37 * hash) + COMPLETION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompletionTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.ExecutionReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ExecutionReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ExecutionReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ExecutionReference parseFrom( + com.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.ExecutionReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ExecutionReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ExecutionReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ExecutionReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ExecutionReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ExecutionReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ExecutionReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ExecutionReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.ExecutionReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Reference to an Execution. Use /Executions.GetExecution with the given name
+   * to get full execution including the latest status.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.ExecutionReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.ExecutionReference) + com.google.cloud.run.v2.ExecutionReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ExecutionReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ExecutionReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ExecutionReference.class, com.google.cloud.run.v2.ExecutionReference.Builder.class); + } + + // Construct using com.google.cloud.run.v2.ExecutionReference.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (completionTimeBuilder_ == null) { + completionTime_ = null; + } else { + completionTime_ = null; + completionTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ExecutionReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.ExecutionReference getDefaultInstanceForType() { + return com.google.cloud.run.v2.ExecutionReference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.ExecutionReference build() { + com.google.cloud.run.v2.ExecutionReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.ExecutionReference buildPartial() { + com.google.cloud.run.v2.ExecutionReference result = new com.google.cloud.run.v2.ExecutionReference(this); + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (completionTimeBuilder_ == null) { + result.completionTime_ = completionTime_; + } else { + result.completionTime_ = completionTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.ExecutionReference) { + return mergeFrom((com.google.cloud.run.v2.ExecutionReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.ExecutionReference other) { + if (other == com.google.cloud.run.v2.ExecutionReference.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasCompletionTime()) { + mergeCompletionTime(other.getCompletionTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getCompletionTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Name of the execution.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the execution.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the execution.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the execution.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Name of the execution.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp completionTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + * @return Whether the completionTime field is set. + */ + public boolean hasCompletionTime() { + return completionTimeBuilder_ != null || completionTime_ != null; + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + * @return The completionTime. + */ + public com.google.protobuf.Timestamp getCompletionTime() { + if (completionTimeBuilder_ == null) { + return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + } else { + return completionTimeBuilder_.getMessage(); + } + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + */ + public Builder setCompletionTime(com.google.protobuf.Timestamp value) { + if (completionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completionTime_ = value; + onChanged(); + } else { + completionTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + */ + public Builder setCompletionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (completionTimeBuilder_ == null) { + completionTime_ = builderForValue.build(); + onChanged(); + } else { + completionTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + */ + public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { + if (completionTimeBuilder_ == null) { + if (completionTime_ != null) { + completionTime_ = + com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); + } else { + completionTime_ = value; + } + onChanged(); + } else { + completionTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + */ + public Builder clearCompletionTime() { + if (completionTimeBuilder_ == null) { + completionTime_ = null; + onChanged(); + } else { + completionTime_ = null; + completionTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { + + onChanged(); + return getCompletionTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { + if (completionTimeBuilder_ != null) { + return completionTimeBuilder_.getMessageOrBuilder(); + } else { + return completionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + } + } + /** + *
+     * Creation timestamp of the execution.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCompletionTimeFieldBuilder() { + if (completionTimeBuilder_ == null) { + completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCompletionTime(), + getParentForChildren(), + isClean()); + completionTime_ = null; + } + return completionTimeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ExecutionReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ExecutionReference) + private static final com.google.cloud.run.v2.ExecutionReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.ExecutionReference(); + } + + public static com.google.cloud.run.v2.ExecutionReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.ExecutionReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java new file mode 100644 index 000000000000..5ecdfcb478fd --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public interface ExecutionReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ExecutionReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the execution.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Name of the execution.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + * @return Whether the completionTime field is set. + */ + boolean hasCompletionTime(); + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + * @return The completionTime. + */ + com.google.protobuf.Timestamp getCompletionTime(); + /** + *
+   * Creation timestamp of the execution.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java new file mode 100644 index 000000000000..03979e03d0fc --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java @@ -0,0 +1,1465 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution_template.proto + +package com.google.cloud.run.v2; + +/** + *
+ * ExecutionTemplate describes the data an execution should have when created
+ * from a template.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.ExecutionTemplate} + */ +public final class ExecutionTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ExecutionTemplate) + ExecutionTemplateOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExecutionTemplate.newBuilder() to construct. + private ExecutionTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionTemplate() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ExecutionTemplate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLabels(); + case 2: + return internalGetAnnotations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ExecutionTemplate.class, com.google.cloud.run.v2.ExecutionTemplate.Builder.class); + } + + public static final int LABELS_FIELD_NUMBER = 1; + 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.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * KRM-style labels for the resource.
+   * 
+ * + * map<string, string> labels = 1; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * KRM-style labels for the resource.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * KRM-style labels for the resource.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * KRM-style labels for the resource.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 2; + 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.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_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() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 2; + */ + + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 2; + */ + @java.lang.Override + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 2; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 2; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PARALLELISM_FIELD_NUMBER = 3; + private int parallelism_; + /** + *
+   * Specifies the maximum desired number of tasks the execution should run at
+   * given time. Must be <= task_count.
+   * When the job is run, if this field is 0 or unset, the maximum possible
+   * value will be used for that execution.
+   * The actual number of tasks running in steady state will be less than this
+   * number when there are fewer tasks waiting to be completed remaining,
+   * i.e. when the work left to do is less than max parallelism.
+   * 
+ * + * int32 parallelism = 3; + * @return The parallelism. + */ + @java.lang.Override + public int getParallelism() { + return parallelism_; + } + + public static final int TASK_COUNT_FIELD_NUMBER = 4; + private int taskCount_; + /** + *
+   * Specifies the desired number of tasks the execution should run.
+   * Setting to 1 means that parallelism is limited to 1 and the success of
+   * that task signals the success of the execution.
+   * More info:
+   * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+   * 
+ * + * int32 task_count = 4; + * @return The taskCount. + */ + @java.lang.Override + public int getTaskCount() { + return taskCount_; + } + + public static final int TEMPLATE_FIELD_NUMBER = 5; + private com.google.cloud.run.v2.TaskTemplate template_; + /** + *
+   * Required. Describes the task(s) that will be created when executing an execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the template field is set. + */ + @java.lang.Override + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+   * Required. Describes the task(s) that will be created when executing an execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The template. + */ + @java.lang.Override + public com.google.cloud.run.v2.TaskTemplate getTemplate() { + return template_ == null ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+   * Required. Describes the task(s) that will be created when executing an execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 1); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 2); + if (parallelism_ != 0) { + output.writeInt32(3, parallelism_); + } + if (taskCount_ != 0) { + output.writeInt32(4, taskCount_); + } + if (template_ != null) { + output.writeMessage(5, getTemplate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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(1, 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(2, annotations__); + } + if (parallelism_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, parallelism_); + } + if (taskCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, taskCount_); + } + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getTemplate()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.ExecutionTemplate)) { + return super.equals(obj); + } + com.google.cloud.run.v2.ExecutionTemplate other = (com.google.cloud.run.v2.ExecutionTemplate) obj; + + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (getParallelism() + != other.getParallelism()) return false; + if (getTaskCount() + != other.getTaskCount()) return false; + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + getParallelism(); + hash = (37 * hash) + TASK_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTaskCount(); + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( + com.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.ExecutionTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ExecutionTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ExecutionTemplate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.ExecutionTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ExecutionTemplate describes the data an execution should have when created
+   * from a template.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.ExecutionTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.ExecutionTemplate) + com.google.cloud.run.v2.ExecutionTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLabels(); + case 2: + return internalGetAnnotations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableLabels(); + case 2: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ExecutionTemplate.class, com.google.cloud.run.v2.ExecutionTemplate.Builder.class); + } + + // Construct using com.google.cloud.run.v2.ExecutionTemplate.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + parallelism_ = 0; + + taskCount_ = 0; + + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.ExecutionTemplate getDefaultInstanceForType() { + return com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.ExecutionTemplate build() { + com.google.cloud.run.v2.ExecutionTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.ExecutionTemplate buildPartial() { + com.google.cloud.run.v2.ExecutionTemplate result = new com.google.cloud.run.v2.ExecutionTemplate(this); + int from_bitField0_ = bitField0_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + result.parallelism_ = parallelism_; + result.taskCount_ = taskCount_; + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.ExecutionTemplate) { + return mergeFrom((com.google.cloud.run.v2.ExecutionTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.ExecutionTemplate other) { + if (other == com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance()) return this; + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + if (other.getParallelism() != 0) { + setParallelism(other.getParallelism()); + } + if (other.getTaskCount() != 0) { + setTaskCount(other.getTaskCount()); + } + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + break; + } // case 18 + case 24: { + parallelism_ = input.readInt32(); + + break; + } // case 24 + case 32: { + taskCount_ = input.readInt32(); + + break; + } // case 32 + case 42: { + input.readMessage( + getTemplateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * KRM-style labels for the resource.
+     * 
+ * + * map<string, string> labels = 1; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * KRM-style labels for the resource.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * KRM-style labels for the resource.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * KRM-style labels for the resource.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * KRM-style labels for the resource.
+     * 
+ * + * map<string, string> labels = 1; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * KRM-style labels for the resource.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * KRM-style labels for the resource.
+     * 
+ * + * map<string, string> labels = 1; + */ + + 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 + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + onChanged();; + if (annotations_ == null) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 2; + */ + + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 2; + */ + @java.lang.Override + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 2; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 2; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + internalGetMutableAnnotations().getMutableMap() + .clear(); + return this; + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 2; + */ + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAnnotations() { + return internalGetMutableAnnotations().getMutableMap(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 2; + */ + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableAnnotations().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 2; + */ + + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); + return this; + } + + private int parallelism_ ; + /** + *
+     * Specifies the maximum desired number of tasks the execution should run at
+     * given time. Must be <= task_count.
+     * When the job is run, if this field is 0 or unset, the maximum possible
+     * value will be used for that execution.
+     * The actual number of tasks running in steady state will be less than this
+     * number when there are fewer tasks waiting to be completed remaining,
+     * i.e. when the work left to do is less than max parallelism.
+     * 
+ * + * int32 parallelism = 3; + * @return The parallelism. + */ + @java.lang.Override + public int getParallelism() { + return parallelism_; + } + /** + *
+     * Specifies the maximum desired number of tasks the execution should run at
+     * given time. Must be <= task_count.
+     * When the job is run, if this field is 0 or unset, the maximum possible
+     * value will be used for that execution.
+     * The actual number of tasks running in steady state will be less than this
+     * number when there are fewer tasks waiting to be completed remaining,
+     * i.e. when the work left to do is less than max parallelism.
+     * 
+ * + * int32 parallelism = 3; + * @param value The parallelism to set. + * @return This builder for chaining. + */ + public Builder setParallelism(int value) { + + parallelism_ = value; + onChanged(); + return this; + } + /** + *
+     * Specifies the maximum desired number of tasks the execution should run at
+     * given time. Must be <= task_count.
+     * When the job is run, if this field is 0 or unset, the maximum possible
+     * value will be used for that execution.
+     * The actual number of tasks running in steady state will be less than this
+     * number when there are fewer tasks waiting to be completed remaining,
+     * i.e. when the work left to do is less than max parallelism.
+     * 
+ * + * int32 parallelism = 3; + * @return This builder for chaining. + */ + public Builder clearParallelism() { + + parallelism_ = 0; + onChanged(); + return this; + } + + private int taskCount_ ; + /** + *
+     * Specifies the desired number of tasks the execution should run.
+     * Setting to 1 means that parallelism is limited to 1 and the success of
+     * that task signals the success of the execution.
+     * More info:
+     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * 
+ * + * int32 task_count = 4; + * @return The taskCount. + */ + @java.lang.Override + public int getTaskCount() { + return taskCount_; + } + /** + *
+     * Specifies the desired number of tasks the execution should run.
+     * Setting to 1 means that parallelism is limited to 1 and the success of
+     * that task signals the success of the execution.
+     * More info:
+     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * 
+ * + * int32 task_count = 4; + * @param value The taskCount to set. + * @return This builder for chaining. + */ + public Builder setTaskCount(int value) { + + taskCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Specifies the desired number of tasks the execution should run.
+     * Setting to 1 means that parallelism is limited to 1 and the success of
+     * that task signals the success of the execution.
+     * More info:
+     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * 
+ * + * int32 task_count = 4; + * @return This builder for chaining. + */ + public Builder clearTaskCount() { + + taskCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.run.v2.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+     * Required. Describes the task(s) that will be created when executing an execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the template field is set. + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+     * Required. Describes the task(s) that will be created when executing an execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The template. + */ + public com.google.cloud.run.v2.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+     * Required. Describes the task(s) that will be created when executing an execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTemplate(com.google.cloud.run.v2.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. Describes the task(s) that will be created when executing an execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTemplate( + com.google.cloud.run.v2.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. Describes the task(s) that will be created when executing an execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeTemplate(com.google.cloud.run.v2.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + com.google.cloud.run.v2.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. Describes the task(s) that will be created when executing an execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. Describes the task(s) that will be created when executing an execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.run.v2.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Describes the task(s) that will be created when executing an execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+     * Required. Describes the task(s) that will be created when executing an execution.
+     * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ExecutionTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ExecutionTemplate) + private static final com.google.cloud.run.v2.ExecutionTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.ExecutionTemplate(); + } + + public static com.google.cloud.run.v2.ExecutionTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.ExecutionTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java new file mode 100644 index 000000000000..192cda995deb --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java @@ -0,0 +1,178 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution_template.proto + +package com.google.cloud.run.v2; + +public interface ExecutionTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ExecutionTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * KRM-style labels for the resource.
+   * 
+ * + * map<string, string> labels = 1; + */ + int getLabelsCount(); + /** + *
+   * KRM-style labels for the resource.
+   * 
+ * + * map<string, string> labels = 1; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * KRM-style labels for the resource.
+   * 
+ * + * map<string, string> labels = 1; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * KRM-style labels for the resource.
+   * 
+ * + * map<string, string> labels = 1; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * KRM-style labels for the resource.
+   * 
+ * + * map<string, string> labels = 1; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 2; + */ + int getAnnotationsCount(); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 2; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAnnotations(); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 2; + */ + java.util.Map + getAnnotationsMap(); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 2; + */ + + /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 2; + */ + + java.lang.String getAnnotationsOrThrow( + java.lang.String key); + + /** + *
+   * Specifies the maximum desired number of tasks the execution should run at
+   * given time. Must be <= task_count.
+   * When the job is run, if this field is 0 or unset, the maximum possible
+   * value will be used for that execution.
+   * The actual number of tasks running in steady state will be less than this
+   * number when there are fewer tasks waiting to be completed remaining,
+   * i.e. when the work left to do is less than max parallelism.
+   * 
+ * + * int32 parallelism = 3; + * @return The parallelism. + */ + int getParallelism(); + + /** + *
+   * Specifies the desired number of tasks the execution should run.
+   * Setting to 1 means that parallelism is limited to 1 and the success of
+   * that task signals the success of the execution.
+   * More info:
+   * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+   * 
+ * + * int32 task_count = 4; + * @return The taskCount. + */ + int getTaskCount(); + + /** + *
+   * Required. Describes the task(s) that will be created when executing an execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the template field is set. + */ + boolean hasTemplate(); + /** + *
+   * Required. Describes the task(s) that will be created when executing an execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The template. + */ + com.google.cloud.run.v2.TaskTemplate getTemplate(); + /** + *
+   * Required. Describes the task(s) that will be created when executing an execution.
+   * 
+ * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java new file mode 100644 index 000000000000..157c281e9a1c --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution_template.proto + +package com.google.cloud.run.v2; + +public final class ExecutionTemplateProto { + private ExecutionTemplateProto() {} + 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_ExecutionTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ExecutionTemplate_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/execution_template" + + ".proto\022\023google.cloud.run.v2\032\037google/api/" + + "field_behavior.proto\032\'google/cloud/run/v" + + "2/task_template.proto\"\353\002\n\021ExecutionTempl" + + "ate\022B\n\006labels\030\001 \003(\01322.google.cloud.run.v" + + "2.ExecutionTemplate.LabelsEntry\022L\n\013annot" + + "ations\030\002 \003(\01327.google.cloud.run.v2.Execu" + + "tionTemplate.AnnotationsEntry\022\023\n\013paralle" + + "lism\030\003 \001(\005\022\022\n\ntask_count\030\004 \001(\005\0228\n\010templa" + + "te\030\005 \001(\0132!.google.cloud.run.v2.TaskTempl" + + "ateB\003\340A\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bk\n\027com.googl" + + "e.cloud.run.v2B\026ExecutionTemplateProtoP\001" + + "Z6google.golang.org/genproto/googleapis/" + + "cloud/run/v2;runb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.run.v2.TaskTemplateProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor, + new java.lang.String[] { "Labels", "Annotations", "Parallelism", "TaskCount", "Template", }); + internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.run.v2.TaskTemplateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java new file mode 100644 index 000000000000..e0f277a71ca5 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java @@ -0,0 +1,588 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message for obtaining a Execution by its full name.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.GetExecutionRequest} + */ +public final class GetExecutionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.GetExecutionRequest) + GetExecutionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetExecutionRequest.newBuilder() to construct. + private GetExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetExecutionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetExecutionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.GetExecutionRequest.class, com.google.cloud.run.v2.GetExecutionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The full name of the Execution.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The full name of the Execution.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.GetExecutionRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.GetExecutionRequest other = (com.google.cloud.run.v2.GetExecutionRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( + com.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.GetExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.GetExecutionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.GetExecutionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.GetExecutionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for obtaining a Execution by its full name.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.GetExecutionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.GetExecutionRequest) + com.google.cloud.run.v2.GetExecutionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.GetExecutionRequest.class, com.google.cloud.run.v2.GetExecutionRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.GetExecutionRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.GetExecutionRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.GetExecutionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.GetExecutionRequest build() { + com.google.cloud.run.v2.GetExecutionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.GetExecutionRequest buildPartial() { + com.google.cloud.run.v2.GetExecutionRequest result = new com.google.cloud.run.v2.GetExecutionRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.GetExecutionRequest) { + return mergeFrom((com.google.cloud.run.v2.GetExecutionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.GetExecutionRequest other) { + if (other == com.google.cloud.run.v2.GetExecutionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The full name of the Execution.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The full name of the Execution.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The full name of the Execution.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The full name of the Execution.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * 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 Execution.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.GetExecutionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.GetExecutionRequest) + private static final com.google.cloud.run.v2.GetExecutionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.GetExecutionRequest(); + } + + public static com.google.cloud.run.v2.GetExecutionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.GetExecutionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..1d7059ee5b5f --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +public interface GetExecutionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full name of the Execution.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * 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 Execution.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java new file mode 100644 index 000000000000..282927f979c4 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java @@ -0,0 +1,581 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message for obtaining a Job by its full name.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.GetJobRequest} + */ +public final class GetJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.GetJobRequest) + GetJobRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetJobRequest.newBuilder() to construct. + private GetJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.GetJobRequest.class, com.google.cloud.run.v2.GetJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The full name of the Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The full name of the Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.GetJobRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.GetJobRequest other = (com.google.cloud.run.v2.GetJobRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.GetJobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.GetJobRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.GetJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.GetJobRequest parseFrom( + com.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.GetJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.GetJobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.GetJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.GetJobRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.GetJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.GetJobRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.GetJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.GetJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.GetJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for obtaining a Job by its full name.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.GetJobRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.GetJobRequest) + com.google.cloud.run.v2.GetJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_GetJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.GetJobRequest.class, com.google.cloud.run.v2.GetJobRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.GetJobRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_GetJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.GetJobRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.GetJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.GetJobRequest build() { + com.google.cloud.run.v2.GetJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.GetJobRequest buildPartial() { + com.google.cloud.run.v2.GetJobRequest result = new com.google.cloud.run.v2.GetJobRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.GetJobRequest) { + return mergeFrom((com.google.cloud.run.v2.GetJobRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.GetJobRequest other) { + if (other == com.google.cloud.run.v2.GetJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * 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 Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.GetJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.GetJobRequest) + private static final com.google.cloud.run.v2.GetJobRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.GetJobRequest(); + } + + public static com.google.cloud.run.v2.GetJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.GetJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java new file mode 100644 index 000000000000..198f75aa7c4f --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public interface GetJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full name of the Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * 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 Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * 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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java similarity index 62% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java index aa5e6237300a..e219296b3134 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java @@ -1,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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; } - - 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 @@ -90,33 +66,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 { @@ -125,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +110,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_); } @@ -161,15 +135,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,136 +162,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +295,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 @@ -348,8 +316,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; @@ -359,39 +326,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; @@ -430,19 +396,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,24 +419,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; @@ -481,25 +441,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 { @@ -507,80 +464,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); } @@ -590,12 +534,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(); } @@ -604,27 +548,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetRevisionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..81c3a8f2eac9 --- /dev/null +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java similarity index 62% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java index 86bb5c6ee107..b5826df5198d 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java @@ -1,86 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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; } - - 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/{project}/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 @@ -89,32 +65,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/{project}/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 { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,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_); } @@ -159,15 +133,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +160,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +293,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 @@ -346,8 +314,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; @@ -357,39 +324,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; @@ -428,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -453,23 +417,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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; @@ -478,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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 { @@ -503,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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/{project}/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/{project}/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); } @@ -583,12 +527,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(); } @@ -597,27 +541,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java new file mode 100644 index 000000000000..a11975208d43 --- /dev/null +++ b/owl-bot-staging/java-run/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/{project}/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/{project}/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java new file mode 100644 index 000000000000..e602db5e7f6b --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java @@ -0,0 +1,588 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message for obtaining a Task by its full name.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.GetTaskRequest} + */ +public final class GetTaskRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.GetTaskRequest) + GetTaskRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetTaskRequest.newBuilder() to construct. + private GetTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetTaskRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetTaskRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_GetTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.GetTaskRequest.class, com.google.cloud.run.v2.GetTaskRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The full name of the Task.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The full name of the Task.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.GetTaskRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.GetTaskRequest other = (com.google.cloud.run.v2.GetTaskRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( + com.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.GetTaskRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.GetTaskRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.GetTaskRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.GetTaskRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for obtaining a Task by its full name.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.GetTaskRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.GetTaskRequest) + com.google.cloud.run.v2.GetTaskRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_GetTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.GetTaskRequest.class, com.google.cloud.run.v2.GetTaskRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.GetTaskRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_GetTaskRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.GetTaskRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.GetTaskRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.GetTaskRequest build() { + com.google.cloud.run.v2.GetTaskRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.GetTaskRequest buildPartial() { + com.google.cloud.run.v2.GetTaskRequest result = new com.google.cloud.run.v2.GetTaskRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.GetTaskRequest) { + return mergeFrom((com.google.cloud.run.v2.GetTaskRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.GetTaskRequest other) { + if (other == com.google.cloud.run.v2.GetTaskRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The full name of the Task.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The full name of the Task.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The full name of the Task.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The full name of the Task.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+     * 
+ * + * 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 Task.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.GetTaskRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.GetTaskRequest) + private static final com.google.cloud.run.v2.GetTaskRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.GetTaskRequest(); + } + + public static com.google.cloud.run.v2.GetTaskRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTaskRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.GetTaskRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java new file mode 100644 index 000000000000..f8f6c1f31415 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +public interface GetTaskRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetTaskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full name of the Task.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+   * 
+ * + * 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 Task.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+   * 
+ * + * 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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java similarity index 72% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java index f3fcff443c36..9d9d56e577e7 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.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; /** - * - * *
  * HTTPGetAction describes an action based on HTTP Get requests.
  * 
* * Protobuf type {@code google.cloud.run.v2.HTTPGetAction} */ -public final class HTTPGetAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HTTPGetAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.HTTPGetAction) HTTPGetActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HTTPGetAction.newBuilder() to construct. private HTTPGetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HTTPGetAction() { path_ = ""; httpHeaders_ = java.util.Collections.emptyList(); @@ -44,41 +26,37 @@ private HTTPGetAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HTTPGetAction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.HTTPGetAction.class, - com.google.cloud.run.v2.HTTPGetAction.Builder.class); + com.google.cloud.run.v2.HTTPGetAction.class, com.google.cloud.run.v2.HTTPGetAction.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** - * - * *
    * Path to access on the HTTP server. Defaults to '/'.
    * 
* * string path = 1; - * * @return The path. */ @java.lang.Override @@ -87,29 +65,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; } } /** - * - * *
    * Path to access on the HTTP server. Defaults to '/'.
    * 
* * string path = 1; - * * @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 { @@ -120,8 +98,6 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int HTTP_HEADERS_FIELD_NUMBER = 4; private java.util.List httpHeaders_; /** - * - * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -133,8 +109,6 @@ public java.util.List getHttpHeadersList() { return httpHeaders_; } /** - * - * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -142,13 +116,11 @@ public java.util.List getHttpHeadersList() { * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ @java.lang.Override - public java.util.List + public java.util.List getHttpHeadersOrBuilderList() { return httpHeaders_; } /** - * - * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -160,8 +132,6 @@ public int getHttpHeadersCount() { return httpHeaders_.size(); } /** - * - * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -173,8 +143,6 @@ public com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index) { return httpHeaders_.get(index); } /** - * - * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -182,12 +150,12 @@ public com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index) { * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ @java.lang.Override - public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index) { + public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder( + int index) { return httpHeaders_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +167,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_); } @@ -219,7 +188,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } for (int i = 0; i < httpHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, httpHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, httpHeaders_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -229,15 +199,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.HTTPGetAction)) { return super.equals(obj); } com.google.cloud.run.v2.HTTPGetAction other = (com.google.cloud.run.v2.HTTPGetAction) obj; - if (!getPath().equals(other.getPath())) return false; - if (!getHttpHeadersList().equals(other.getHttpHeadersList())) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (!getHttpHeadersList() + .equals(other.getHttpHeadersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,135 +232,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.HTTPGetAction parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.HTTPGetAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.HTTPGetAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.HTTPGetAction parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.HTTPGetAction parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.HTTPGetAction parseFrom( com.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.HTTPGetAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.HTTPGetAction parseFrom( - byte[] data, com.google.protobuf.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.HTTPGetAction 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.HTTPGetAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.HTTPGetAction 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.HTTPGetAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.HTTPGetAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(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.HTTPGetAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public 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.HTTPGetAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * HTTPGetAction describes an action based on HTTP Get requests.
    * 
* * Protobuf type {@code google.cloud.run.v2.HTTPGetAction} */ - public static final class Builder extends com.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.HTTPGetAction) com.google.cloud.run.v2.HTTPGetActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.HTTPGetAction.class, - com.google.cloud.run.v2.HTTPGetAction.Builder.class); + com.google.cloud.run.v2.HTTPGetAction.class, com.google.cloud.run.v2.HTTPGetAction.Builder.class); } // Construct using com.google.cloud.run.v2.HTTPGetAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +372,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_HTTPGetAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; } @java.lang.Override @@ -426,8 +393,7 @@ public com.google.cloud.run.v2.HTTPGetAction build() { @java.lang.Override public com.google.cloud.run.v2.HTTPGetAction buildPartial() { - com.google.cloud.run.v2.HTTPGetAction result = - new com.google.cloud.run.v2.HTTPGetAction(this); + com.google.cloud.run.v2.HTTPGetAction result = new com.google.cloud.run.v2.HTTPGetAction(this); int from_bitField0_ = bitField0_; result.path_ = path_; if (httpHeadersBuilder_ == null) { @@ -447,39 +413,38 @@ public com.google.cloud.run.v2.HTTPGetAction buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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.HTTPGetAction) { - return mergeFrom((com.google.cloud.run.v2.HTTPGetAction) other); + return mergeFrom((com.google.cloud.run.v2.HTTPGetAction)other); } else { super.mergeFrom(other); return this; @@ -510,10 +475,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.HTTPGetAction other) { httpHeadersBuilder_ = null; httpHeaders_ = other.httpHeaders_; bitField0_ = (bitField0_ & ~0x00000001); - httpHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHttpHeadersFieldBuilder() - : null; + httpHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHttpHeadersFieldBuilder() : null; } else { httpHeadersBuilder_.addAllMessages(other.httpHeaders_); } @@ -545,32 +509,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - path_ = input.readStringRequireUtf8(); + case 10: { + path_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 34: - { - com.google.cloud.run.v2.HTTPHeader m = - input.readMessage( - com.google.cloud.run.v2.HTTPHeader.parser(), extensionRegistry); - if (httpHeadersBuilder_ == null) { - ensureHttpHeadersIsMutable(); - httpHeaders_.add(m); - } else { - httpHeadersBuilder_.addMessage(m); - } - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 34: { + com.google.cloud.run.v2.HTTPHeader m = + input.readMessage( + com.google.cloud.run.v2.HTTPHeader.parser(), + extensionRegistry); + if (httpHeadersBuilder_ == null) { + ensureHttpHeadersIsMutable(); + httpHeaders_.add(m); + } else { + httpHeadersBuilder_.addMessage(m); + } + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -580,25 +542,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object path_ = ""; /** - * - * *
      * Path to access on the HTTP server. Defaults to '/'.
      * 
* * string path = 1; - * * @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; @@ -607,21 +566,20 @@ public java.lang.String getPath() { } } /** - * - * *
      * Path to access on the HTTP server. Defaults to '/'.
      * 
* * string path = 1; - * * @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 { @@ -629,85 +587,72 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
      * Path to access on the HTTP server. Defaults to '/'.
      * 
* * string path = 1; - * * @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; } /** - * - * *
      * Path to access on the HTTP server. Defaults to '/'.
      * 
* * string path = 1; - * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** - * - * *
      * Path to access on the HTTP server. Defaults to '/'.
      * 
* * string path = 1; - * * @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; } private java.util.List httpHeaders_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHttpHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { httpHeaders_ = new java.util.ArrayList(httpHeaders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.HTTPHeader, - com.google.cloud.run.v2.HTTPHeader.Builder, - com.google.cloud.run.v2.HTTPHeaderOrBuilder> - httpHeadersBuilder_; + com.google.cloud.run.v2.HTTPHeader, com.google.cloud.run.v2.HTTPHeader.Builder, com.google.cloud.run.v2.HTTPHeaderOrBuilder> httpHeadersBuilder_; /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -722,8 +667,6 @@ public java.util.List getHttpHeadersList() { } } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -738,8 +681,6 @@ public int getHttpHeadersCount() { } } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -754,15 +695,14 @@ public com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index) { } } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public Builder setHttpHeaders(int index, com.google.cloud.run.v2.HTTPHeader value) { + public Builder setHttpHeaders( + int index, com.google.cloud.run.v2.HTTPHeader value) { if (httpHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -776,8 +716,6 @@ public Builder setHttpHeaders(int index, com.google.cloud.run.v2.HTTPHeader valu return this; } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -796,8 +734,6 @@ public Builder setHttpHeaders( return this; } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -818,15 +754,14 @@ public Builder addHttpHeaders(com.google.cloud.run.v2.HTTPHeader value) { return this; } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public Builder addHttpHeaders(int index, com.google.cloud.run.v2.HTTPHeader value) { + public Builder addHttpHeaders( + int index, com.google.cloud.run.v2.HTTPHeader value) { if (httpHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -840,15 +775,14 @@ public Builder addHttpHeaders(int index, com.google.cloud.run.v2.HTTPHeader valu return this; } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public Builder addHttpHeaders(com.google.cloud.run.v2.HTTPHeader.Builder builderForValue) { + public Builder addHttpHeaders( + com.google.cloud.run.v2.HTTPHeader.Builder builderForValue) { if (httpHeadersBuilder_ == null) { ensureHttpHeadersIsMutable(); httpHeaders_.add(builderForValue.build()); @@ -859,8 +793,6 @@ public Builder addHttpHeaders(com.google.cloud.run.v2.HTTPHeader.Builder builder return this; } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -879,8 +811,6 @@ public Builder addHttpHeaders( return this; } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -891,7 +821,8 @@ public Builder addAllHttpHeaders( java.lang.Iterable values) { if (httpHeadersBuilder_ == null) { ensureHttpHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, httpHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, httpHeaders_); onChanged(); } else { httpHeadersBuilder_.addAllMessages(values); @@ -899,8 +830,6 @@ public Builder addAllHttpHeaders( return this; } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -918,8 +847,6 @@ public Builder clearHttpHeaders() { return this; } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -937,44 +864,39 @@ public Builder removeHttpHeaders(int index) { return this; } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public com.google.cloud.run.v2.HTTPHeader.Builder getHttpHeadersBuilder(int index) { + public com.google.cloud.run.v2.HTTPHeader.Builder getHttpHeadersBuilder( + int index) { return getHttpHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index) { + public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder( + int index) { if (httpHeadersBuilder_ == null) { - return httpHeaders_.get(index); - } else { + return httpHeaders_.get(index); } else { return httpHeadersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public java.util.List - getHttpHeadersOrBuilderList() { + public java.util.List + getHttpHeadersOrBuilderList() { if (httpHeadersBuilder_ != null) { return httpHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -982,8 +904,6 @@ public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int i } } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -991,54 +911,49 @@ public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int i * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ public com.google.cloud.run.v2.HTTPHeader.Builder addHttpHeadersBuilder() { - return getHttpHeadersFieldBuilder() - .addBuilder(com.google.cloud.run.v2.HTTPHeader.getDefaultInstance()); + return getHttpHeadersFieldBuilder().addBuilder( + com.google.cloud.run.v2.HTTPHeader.getDefaultInstance()); } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public com.google.cloud.run.v2.HTTPHeader.Builder addHttpHeadersBuilder(int index) { - return getHttpHeadersFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.HTTPHeader.getDefaultInstance()); + public com.google.cloud.run.v2.HTTPHeader.Builder addHttpHeadersBuilder( + int index) { + return getHttpHeadersFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.HTTPHeader.getDefaultInstance()); } /** - * - * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public java.util.List getHttpHeadersBuilderList() { + public java.util.List + getHttpHeadersBuilderList() { return getHttpHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.HTTPHeader, - com.google.cloud.run.v2.HTTPHeader.Builder, - com.google.cloud.run.v2.HTTPHeaderOrBuilder> + com.google.cloud.run.v2.HTTPHeader, com.google.cloud.run.v2.HTTPHeader.Builder, com.google.cloud.run.v2.HTTPHeaderOrBuilder> getHttpHeadersFieldBuilder() { if (httpHeadersBuilder_ == null) { - httpHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.HTTPHeader, - com.google.cloud.run.v2.HTTPHeader.Builder, - com.google.cloud.run.v2.HTTPHeaderOrBuilder>( - httpHeaders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + httpHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.HTTPHeader, com.google.cloud.run.v2.HTTPHeader.Builder, com.google.cloud.run.v2.HTTPHeaderOrBuilder>( + httpHeaders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); httpHeaders_ = null; } return httpHeadersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1048,12 +963,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.HTTPGetAction) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.HTTPGetAction) private static final com.google.cloud.run.v2.HTTPGetAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.HTTPGetAction(); } @@ -1062,27 +977,27 @@ public static com.google.cloud.run.v2.HTTPGetAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HTTPGetAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HTTPGetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,4 +1012,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.HTTPGetAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java similarity index 67% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java index 187f6e93c659..d7515019153e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java @@ -1,66 +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; -public interface HTTPGetActionOrBuilder - extends +public interface HTTPGetActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.HTTPGetAction) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Path to access on the HTTP server. Defaults to '/'.
    * 
* * string path = 1; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
    * Path to access on the HTTP server. Defaults to '/'.
    * 
* * string path = 1; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - java.util.List getHttpHeadersList(); + java.util.List + getHttpHeadersList(); /** - * - * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -69,8 +45,6 @@ public interface HTTPGetActionOrBuilder */ com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index); /** - * - * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -79,24 +53,21 @@ public interface HTTPGetActionOrBuilder */ int getHttpHeadersCount(); /** - * - * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - java.util.List + java.util.List getHttpHeadersOrBuilderList(); /** - * - * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index); + com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder( + int index); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java similarity index 66% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java index b62b8d661d20..033bcee25fae 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.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; /** - * - * *
  * HTTPHeader describes a custom header to be used in HTTP probes
  * 
* * Protobuf type {@code google.cloud.run.v2.HTTPHeader} */ -public final class HTTPHeader extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HTTPHeader extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.HTTPHeader) HTTPHeaderOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HTTPHeader.newBuilder() to construct. private HTTPHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HTTPHeader() { name_ = ""; value_ = ""; @@ -44,41 +26,37 @@ private HTTPHeader() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HTTPHeader(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_HTTPHeader_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.HTTPHeader.class, - com.google.cloud.run.v2.HTTPHeader.Builder.class); + com.google.cloud.run.v2.HTTPHeader.class, com.google.cloud.run.v2.HTTPHeader.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The header field name
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -87,29 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The header field 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 { @@ -120,14 +98,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
    * The header field value
    * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -136,29 +111,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
    * The header field value
    * 
* * 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 = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -167,7 +142,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,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_); } @@ -209,15 +184,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.HTTPHeader)) { return super.equals(obj); } com.google.cloud.run.v2.HTTPHeader other = (com.google.cloud.run.v2.HTTPHeader) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,135 +215,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.HTTPHeader parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.HTTPHeader parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.HTTPHeader parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.HTTPHeader parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.run.v2.HTTPHeader parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.HTTPHeader parseFrom( com.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.HTTPHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.HTTPHeader parseFrom( - byte[] data, com.google.protobuf.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.HTTPHeader 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.HTTPHeader parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.HTTPHeader 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.HTTPHeader parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.HTTPHeader parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(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.HTTPHeader parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public 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.HTTPHeader prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * HTTPHeader describes a custom header to be used in HTTP probes
    * 
* * Protobuf type {@code google.cloud.run.v2.HTTPHeader} */ - public static final class Builder extends com.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.HTTPHeader) com.google.cloud.run.v2.HTTPHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_HTTPHeader_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.HTTPHeader.class, - com.google.cloud.run.v2.HTTPHeader.Builder.class); + com.google.cloud.run.v2.HTTPHeader.class, com.google.cloud.run.v2.HTTPHeader.Builder.class); } // Construct using com.google.cloud.run.v2.HTTPHeader.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +350,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_HTTPHeader_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPHeader_descriptor; } @java.lang.Override @@ -410,39 +382,38 @@ public com.google.cloud.run.v2.HTTPHeader buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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.HTTPHeader) { - return mergeFrom((com.google.cloud.run.v2.HTTPHeader) other); + return mergeFrom((com.google.cloud.run.v2.HTTPHeader)other); } else { super.mergeFrom(other); return this; @@ -485,25 +456,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - value_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + value_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -516,20 +484,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The header field 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; @@ -538,21 +504,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The header field 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 { @@ -560,61 +525,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The header field 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. The header field name
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The header field 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; @@ -622,20 +580,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
      * The header field value
      * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -644,21 +600,20 @@ public java.lang.String getValue() { } } /** - * - * *
      * The header field value
      * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -666,68 +621,61 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
      * The header field value
      * 
* * 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(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
      * The header field value
      * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
      * The header field value
      * 
* * 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); + value_ = 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); } @@ -737,12 +685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.HTTPHeader) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.HTTPHeader) private static final com.google.cloud.run.v2.HTTPHeader DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.HTTPHeader(); } @@ -751,27 +699,27 @@ public static com.google.cloud.run.v2.HTTPHeader getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HTTPHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HTTPHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -786,4 +734,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.HTTPHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java similarity index 54% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java index 8ac65748acd2..f420ce363129 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java @@ -1,75 +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/k8s.min.proto package com.google.cloud.run.v2; -public interface HTTPHeaderOrBuilder - extends +public interface HTTPHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.HTTPHeader) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The header field name
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The header field name
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The header field value
    * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
    * The header field value
    * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java similarity index 68% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java index 36c0d0bf2c68..5b0728ca1432 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java +++ b/owl-bot-staging/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java new file mode 100644 index 000000000000..4fa01271a87d --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java @@ -0,0 +1,5289 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Job represents the configuration of a single job. A job an immutable resource
+ * that references a container image which is run to completion.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.Job} + */ +public final class Job extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Job) + JobOrBuilder { +private static final long serialVersionUID = 0L; + // Use Job.newBuilder() to construct. + private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Job() { + name_ = ""; + uid_ = ""; + creator_ = ""; + lastModifier_ = ""; + client_ = ""; + clientVersion_ = ""; + launchStage_ = 0; + conditions_ = java.util.Collections.emptyList(); + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Job(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_Job_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + 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); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.Job.class, com.google.cloud.run.v2.Job.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The fully qualified name of this Job.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The fully qualified name of this Job.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + private volatile java.lang.Object uid_; + /** + *
+   * Output only. Server assigned unique identifier for the Execution. 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 + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + *
+   * Output only. Server assigned unique identifier for the Execution. 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() { + 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); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public long getGeneration() { + return generation_; + } + + 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.JobProto.internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * 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
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + 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
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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.JobProto.internal_static_google_cloud_run_v2_Job_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() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+   * KRM-style annotations for the resource. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects. Cloud Run will populate some annotations using
+   * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+   * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+   * https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 5; + */ + + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+   * KRM-style annotations for the resource. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects. Cloud Run will populate some annotations using
+   * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+   * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+   * https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+   * KRM-style annotations for the resource. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects. Cloud Run will populate some annotations using
+   * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+   * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+   * https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * KRM-style annotations for the resource. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects. Cloud Run will populate some annotations using
+   * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+   * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+   * https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(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]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. The creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int DELETE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp deleteTime_; + /** + *
+   * Output only. The deletion time.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return deleteTime_ != null; + } + /** + *
+   * Output only. The deletion time.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + @java.lang.Override + 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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return getDeleteTime(); + } + + 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.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the expireTime field is set. + */ + @java.lang.Override + 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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The expireTime. + */ + @java.lang.Override + 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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return getExpireTime(); + } + + public static final int CREATOR_FIELD_NUMBER = 10; + private volatile java.lang.Object creator_; + /** + *
+   * Output only. Email address of the authenticated creator.
+   * 
+ * + * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The creator. + */ + @java.lang.Override + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } + } + /** + *
+   * Output only. Email address of the authenticated creator.
+   * 
+ * + * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for creator. + */ + @java.lang.Override + 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); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAST_MODIFIER_FIELD_NUMBER = 11; + private volatile java.lang.Object lastModifier_; + /** + *
+   * Output only. Email address of the last authenticated modifier.
+   * 
+ * + * string last_modifier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The lastModifier. + */ + @java.lang.Override + public java.lang.String getLastModifier() { + java.lang.Object ref = lastModifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastModifier_ = s; + return s; + } + } + /** + *
+   * Output only. Email address of the last authenticated modifier.
+   * 
+ * + * string last_modifier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for lastModifier. + */ + @java.lang.Override + 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); + lastModifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_FIELD_NUMBER = 12; + private volatile java.lang.Object client_; + /** + *
+   * Arbitrary identifier for the API client.
+   * 
+ * + * string client = 12; + * @return The client. + */ + @java.lang.Override + public java.lang.String getClient() { + java.lang.Object ref = client_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + client_ = s; + return s; + } + } + /** + *
+   * Arbitrary identifier for the API client.
+   * 
+ * + * string client = 12; + * @return The bytes for client. + */ + @java.lang.Override + 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); + client_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_VERSION_FIELD_NUMBER = 13; + private volatile java.lang.Object clientVersion_; + /** + *
+   * Arbitrary version identifier for the API client.
+   * 
+ * + * string client_version = 13; + * @return The clientVersion. + */ + @java.lang.Override + public java.lang.String getClientVersion() { + java.lang.Object ref = clientVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientVersion_ = s; + return s; + } + } + /** + *
+   * Arbitrary version identifier for the API client.
+   * 
+ * + * string client_version = 13; + * @return The bytes for clientVersion. + */ + @java.lang.Override + 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); + clientVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAUNCH_STAGE_FIELD_NUMBER = 14; + private int launchStage_; + /** + *
+   * The launch stage as defined by [Google Cloud Platform
+   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
+   * is assumed.
+   * 
+ * + * .google.api.LaunchStage launch_stage = 14; + * @return The enum numeric value on the wire for launchStage. + */ + @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).
+   * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
+   * is assumed.
+   * 
+ * + * .google.api.LaunchStage launch_stage = 14; + * @return The launchStage. + */ + @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; + } + + public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 15; + private com.google.cloud.run.v2.BinaryAuthorization binaryAuthorization_; + /** + *
+   * Settings for the Binary Authorization feature.
+   * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + * @return Whether the binaryAuthorization field is set. + */ + @java.lang.Override + public boolean hasBinaryAuthorization() { + return binaryAuthorization_ != null; + } + /** + *
+   * Settings for the Binary Authorization feature.
+   * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + * @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_; + } + /** + *
+   * Settings for the Binary Authorization feature.
+   * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + */ + @java.lang.Override + public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { + return getBinaryAuthorization(); + } + + public static final int TEMPLATE_FIELD_NUMBER = 16; + private com.google.cloud.run.v2.ExecutionTemplate template_; + /** + *
+   * Required. The template used to create executions for this Job.
+   * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the template field is set. + */ + @java.lang.Override + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+   * Required. The template used to create executions for this Job.
+   * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return The template. + */ + @java.lang.Override + public com.google.cloud.run.v2.ExecutionTemplate getTemplate() { + return template_ == null ? com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance() : template_; + } + /** + *
+   * Required. The template used to create executions for this Job.
+   * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.run.v2.ExecutionTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int OBSERVED_GENERATION_FIELD_NUMBER = 17; + private long observedGeneration_; + /** + *
+   * Output only. The generation of this Job. See comments in `reconciling` for additional
+   * information on reconciliation process in Cloud Run.
+   * 
+ * + * int64 observed_generation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The observedGeneration. + */ + @java.lang.Override + public long getObservedGeneration() { + return observedGeneration_; + } + + public static final int TERMINAL_CONDITION_FIELD_NUMBER = 18; + private com.google.cloud.run.v2.Condition terminalCondition_; + /** + *
+   * Output only. The Condition of this Job, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the terminalCondition field is set. + */ + @java.lang.Override + public boolean hasTerminalCondition() { + return terminalCondition_ != null; + } + /** + *
+   * Output only. The Condition of this Job, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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_; + } + /** + *
+   * Output only. The Condition of this Job, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder() { + return getTerminalCondition(); + } + + public static final int CONDITIONS_FIELD_NUMBER = 19; + private java.util.List conditions_; + /** + *
+   * Output only. The Conditions of all other associated sub-resources. They contain
+   * additional diagnostics information in case the Job does not reach its
+   * desired state. See comments in `reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
+   * desired state. See comments in `reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + 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 Job does not reach its
+   * desired state. See comments in `reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
+   * desired state. See comments in `reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
+   * desired state. See comments in `reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + public static final int EXECUTION_COUNT_FIELD_NUMBER = 20; + private int executionCount_; + /** + *
+   * Output only. Number of executions created for this job.
+   * 
+ * + * int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The executionCount. + */ + @java.lang.Override + public int getExecutionCount() { + return executionCount_; + } + + public static final int LATEST_CREATED_EXECUTION_FIELD_NUMBER = 22; + private com.google.cloud.run.v2.ExecutionReference latestCreatedExecution_; + /** + *
+   * Output only. Name of the last created execution.
+   * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the latestCreatedExecution field is set. + */ + @java.lang.Override + public boolean hasLatestCreatedExecution() { + return latestCreatedExecution_ != null; + } + /** + *
+   * Output only. Name of the last created execution.
+   * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The latestCreatedExecution. + */ + @java.lang.Override + public com.google.cloud.run.v2.ExecutionReference getLatestCreatedExecution() { + return latestCreatedExecution_ == null ? com.google.cloud.run.v2.ExecutionReference.getDefaultInstance() : latestCreatedExecution_; + } + /** + *
+   * Output only. Name of the last created execution.
+   * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.run.v2.ExecutionReferenceOrBuilder getLatestCreatedExecutionOrBuilder() { + return getLatestCreatedExecution(); + } + + public static final int RECONCILING_FIELD_NUMBER = 23; + private boolean reconciling_; + /** + *
+   * Output only. Returns true if the Job is currently being acted upon by the system to
+   * bring it into the desired state.
+   * When a new Job is created, or an existing one is updated, Cloud Run
+   * will asynchronously perform all necessary steps to bring the Job to the
+   * desired state. This process is called reconciliation.
+   * While reconciliation is in process, `observed_generation` and
+   * `latest_succeeded_execution`, will have transient values that might
+   * mismatch the intended state: Once reconciliation is over (and this field is
+   * false), there are two possible outcomes: reconciliation succeeded and the
+   * state matches the Job, or there was an error,  and reconciliation failed.
+   * This state can be found in `terminal_condition.state`.
+   * If reconciliation succeeded, the following fields will match:
+   * `observed_generation` and `generation`, `latest_succeeded_execution` and
+   * `latest_created_execution`.
+   * If reconciliation failed, `observed_generation` and
+   * `latest_succeeded_execution` will have the state of the last succeeded
+   * execution or empty for newly created Job. Additional information on the
+   * failure can be found in `terminal_condition` and `conditions`.
+   * 
+ * + * bool reconciling = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + 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 + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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() { + 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); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); + } + 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); + if (createTime_ != null) { + output.writeMessage(6, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(7, getUpdateTime()); + } + if (deleteTime_ != null) { + output.writeMessage(8, getDeleteTime()); + } + if (expireTime_ != null) { + output.writeMessage(9, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, creator_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastModifier_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, lastModifier_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(client_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, client_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, clientVersion_); + } + if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { + output.writeEnum(14, launchStage_); + } + if (binaryAuthorization_ != null) { + output.writeMessage(15, getBinaryAuthorization()); + } + if (template_ != null) { + output.writeMessage(16, getTemplate()); + } + if (observedGeneration_ != 0L) { + output.writeInt64(17, observedGeneration_); + } + if (terminalCondition_ != null) { + output.writeMessage(18, getTerminalCondition()); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(19, conditions_.get(i)); + } + if (executionCount_ != 0) { + output.writeInt32(20, executionCount_); + } + if (latestCreatedExecution_ != null) { + output.writeMessage(22, getLatestCreatedExecution()); + } + if (reconciling_ != false) { + output.writeBool(23, reconciling_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + 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__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); + } + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, creator_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastModifier_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, lastModifier_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(client_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, client_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, clientVersion_); + } + if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, launchStage_); + } + if (binaryAuthorization_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getBinaryAuthorization()); + } + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getTemplate()); + } + if (observedGeneration_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(17, observedGeneration_); + } + if (terminalCondition_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getTerminalCondition()); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, conditions_.get(i)); + } + if (executionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(20, executionCount_); + } + if (latestCreatedExecution_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getLatestCreatedExecution()); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(23, reconciling_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.Job)) { + return super.equals(obj); + } + com.google.cloud.run.v2.Job other = (com.google.cloud.run.v2.Job) 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 (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + 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 (launchStage_ != other.launchStage_) return false; + if (hasBinaryAuthorization() != other.hasBinaryAuthorization()) return false; + if (hasBinaryAuthorization()) { + if (!getBinaryAuthorization() + .equals(other.getBinaryAuthorization())) return false; + } + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) 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 (getExecutionCount() + != other.getExecutionCount()) return false; + if (hasLatestCreatedExecution() != other.hasLatestCreatedExecution()) return false; + if (hasLatestCreatedExecution()) { + if (!getLatestCreatedExecution() + .equals(other.getLatestCreatedExecution())) return false; + } + if (getReconciling() + != other.getReconciling()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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()); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + CREATOR_FIELD_NUMBER; + hash = (53 * hash) + getCreator().hashCode(); + hash = (37 * hash) + LAST_MODIFIER_FIELD_NUMBER; + hash = (53 * hash) + getLastModifier().hashCode(); + hash = (37 * hash) + CLIENT_FIELD_NUMBER; + hash = (53 * hash) + getClient().hashCode(); + hash = (37 * hash) + CLIENT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getClientVersion().hashCode(); + hash = (37 * hash) + LAUNCH_STAGE_FIELD_NUMBER; + hash = (53 * hash) + launchStage_; + if (hasBinaryAuthorization()) { + hash = (37 * hash) + BINARY_AUTHORIZATION_FIELD_NUMBER; + hash = (53 * hash) + getBinaryAuthorization().hashCode(); + } + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (37 * hash) + OBSERVED_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObservedGeneration()); + if (hasTerminalCondition()) { + hash = (37 * hash) + TERMINAL_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getTerminalCondition().hashCode(); + } + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (37 * hash) + EXECUTION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getExecutionCount(); + if (hasLatestCreatedExecution()) { + hash = (37 * hash) + LATEST_CREATED_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getLatestCreatedExecution().hashCode(); + } + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.Job parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.Job parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.Job parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.Job parseFrom( + com.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.Job parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.Job parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.Job parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.Job parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.Job parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.Job parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.Job parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.Job parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.Job prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Job represents the configuration of a single job. A job an immutable resource
+   * that references a container image which is run to completion.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.Job} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.Job) + com.google.cloud.run.v2.JobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_Job_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + 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); + } + } + @SuppressWarnings({"rawtypes"}) + 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); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_Job_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.Job.class, com.google.cloud.run.v2.Job.Builder.class); + } + + // Construct using com.google.cloud.run.v2.Job.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + uid_ = ""; + + generation_ = 0L; + + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + if (expireTimeBuilder_ == null) { + expireTime_ = null; + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + creator_ = ""; + + lastModifier_ = ""; + + client_ = ""; + + clientVersion_ = ""; + + launchStage_ = 0; + + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + observedGeneration_ = 0L; + + if (terminalConditionBuilder_ == null) { + terminalCondition_ = null; + } else { + terminalCondition_ = null; + terminalConditionBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + executionCount_ = 0; + + if (latestCreatedExecutionBuilder_ == null) { + latestCreatedExecution_ = null; + } else { + latestCreatedExecution_ = null; + latestCreatedExecutionBuilder_ = null; + } + reconciling_ = false; + + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_Job_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.Job getDefaultInstanceForType() { + return com.google.cloud.run.v2.Job.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.Job build() { + com.google.cloud.run.v2.Job result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.Job buildPartial() { + com.google.cloud.run.v2.Job result = new com.google.cloud.run.v2.Job(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.uid_ = uid_; + result.generation_ = generation_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (deleteTimeBuilder_ == null) { + result.deleteTime_ = deleteTime_; + } else { + result.deleteTime_ = deleteTimeBuilder_.build(); + } + if (expireTimeBuilder_ == null) { + result.expireTime_ = expireTime_; + } else { + result.expireTime_ = expireTimeBuilder_.build(); + } + result.creator_ = creator_; + result.lastModifier_ = lastModifier_; + result.client_ = client_; + result.clientVersion_ = clientVersion_; + result.launchStage_ = launchStage_; + if (binaryAuthorizationBuilder_ == null) { + result.binaryAuthorization_ = binaryAuthorization_; + } else { + result.binaryAuthorization_ = binaryAuthorizationBuilder_.build(); + } + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + result.observedGeneration_ = observedGeneration_; + if (terminalConditionBuilder_ == null) { + result.terminalCondition_ = terminalCondition_; + } else { + result.terminalCondition_ = terminalConditionBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.executionCount_ = executionCount_; + if (latestCreatedExecutionBuilder_ == null) { + result.latestCreatedExecution_ = latestCreatedExecution_; + } else { + result.latestCreatedExecution_ = latestCreatedExecutionBuilder_.build(); + } + result.reconciling_ = reconciling_; + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.Job) { + return mergeFrom((com.google.cloud.run.v2.Job)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.Job other) { + if (other == com.google.cloud.run.v2.Job.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (other.getGeneration() != 0L) { + setGeneration(other.getGeneration()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (!other.getCreator().isEmpty()) { + creator_ = other.creator_; + onChanged(); + } + if (!other.getLastModifier().isEmpty()) { + lastModifier_ = other.lastModifier_; + onChanged(); + } + if (!other.getClient().isEmpty()) { + client_ = other.client_; + onChanged(); + } + if (!other.getClientVersion().isEmpty()) { + clientVersion_ = other.clientVersion_; + onChanged(); + } + if (other.launchStage_ != 0) { + setLaunchStageValue(other.getLaunchStageValue()); + } + if (other.hasBinaryAuthorization()) { + mergeBinaryAuthorization(other.getBinaryAuthorization()); + } + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (other.getObservedGeneration() != 0L) { + setObservedGeneration(other.getObservedGeneration()); + } + if (other.hasTerminalCondition()) { + mergeTerminalCondition(other.getTerminalCondition()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.getExecutionCount() != 0) { + setExecutionCount(other.getExecutionCount()); + } + if (other.hasLatestCreatedExecution()) { + mergeLatestCreatedExecution(other.getLatestCreatedExecution()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + generation_ = input.readInt64(); + + break; + } // case 24 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 58: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 66: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + case 74: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + creator_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: { + lastModifier_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: { + client_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: { + clientVersion_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 112: { + launchStage_ = input.readEnum(); + + break; + } // case 112 + case 122: { + input.readMessage( + getBinaryAuthorizationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 122 + case 130: { + input.readMessage( + getTemplateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 130 + case 136: { + observedGeneration_ = input.readInt64(); + + break; + } // case 136 + case 146: { + input.readMessage( + getTerminalConditionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 146 + case 154: { + com.google.cloud.run.v2.Condition m = + input.readMessage( + com.google.cloud.run.v2.Condition.parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 154 + case 160: { + executionCount_ = input.readInt32(); + + break; + } // case 160 + case 178: { + input.readMessage( + getLatestCreatedExecutionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 178 + case 184: { + reconciling_ = input.readBool(); + + break; + } // case 184 + case 794: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 794 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The fully qualified name of this Job.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The fully qualified name of this Job.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The fully qualified name of this Job.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The fully qualified name of this Job.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The fully qualified name of this Job.
+     * Format:
+     * projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + *
+     * Output only. Server assigned unique identifier for the Execution. 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; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Server assigned unique identifier for the Execution. 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() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Server assigned unique identifier for the Execution. 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) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Server assigned unique identifier for the Execution. 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 Execution. 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + 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 + 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() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * 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
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + 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
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + + 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 + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + onChanged();; + if (annotations_ == null) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+     * KRM-style annotations for the resource. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects. Cloud Run will populate some annotations using
+     * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+     * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+     * https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 5; + */ + + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+     * KRM-style annotations for the resource. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects. Cloud Run will populate some annotations using
+     * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+     * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+     * https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+     * KRM-style annotations for the resource. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects. Cloud Run will populate some annotations using
+     * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+     * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+     * https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * KRM-style annotations for the resource. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects. Cloud Run will populate some annotations using
+     * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+     * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+     * https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + internalGetMutableAnnotations().getMutableMap() + .clear(); + return this; + } + /** + *
+     * KRM-style annotations for the resource. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects. Cloud Run will populate some annotations using
+     * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+     * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+     * https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 5; + */ + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAnnotations() { + return internalGetMutableAnnotations().getMutableMap(); + } + /** + *
+     * KRM-style annotations for the resource. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects. Cloud Run will populate some annotations using
+     * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+     * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+     * https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableAnnotations().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * KRM-style annotations for the resource. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects. Cloud Run will populate some annotations using
+     * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+     * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+     * https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 5; + */ + + 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_; + /** + *
+     * Output only. The creation time.
+     * 
+ * + * .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]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The creation time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The creation time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The creation time.
+     * 
+ * + * .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(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The creation time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The creation time.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + 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]; + * @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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + /** + *
+     * Output only. The deletion time.
+     * 
+ * + * .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. The deletion time.
+     * 
+ * + * .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_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The deletion time.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + onChanged(); + } else { + deleteTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The deletion time.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + onChanged(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The deletion time.
+     * 
+ * + * .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(); + } else { + deleteTime_ = value; + } + onChanged(); + } else { + deleteTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The deletion time.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearDeleteTime() { + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + onChanged(); + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The deletion time.
+     * 
+ * + * .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. The deletion time.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Output only. The deletion time.
+     * 
+ * + * .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> + 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()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. For a deleted resource, the time after which it will be
+     * permamently deleted.
+     * 
+ * + * .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.
+     * 
+ * + * .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_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. For a deleted resource, the time after which it will be
+     * permamently deleted.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. For a deleted resource, the time after which it will be
+     * permamently deleted.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. For a deleted resource, the time after which it will be
+     * permamently deleted.
+     * 
+ * + * .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(); + } else { + expireTime_ = value; + } + onChanged(); + } else { + expireTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. For a deleted resource, the time after which it will be
+     * permamently deleted.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + expireTime_ = null; + onChanged(); + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. For a deleted resource, the time after which it will be
+     * permamently deleted.
+     * 
+ * + * .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.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Output only. For a deleted resource, the time after which it will be
+     * permamently deleted.
+     * 
+ * + * .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> + 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()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private java.lang.Object creator_ = ""; + /** + *
+     * Output only. Email address of the authenticated creator.
+     * 
+ * + * string creator = 10 [(.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; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Email address of the authenticated creator.
+     * 
+ * + * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for creator. + */ + 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); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Email address of the authenticated creator.
+     * 
+ * + * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The creator to set. + * @return This builder for chaining. + */ + public Builder setCreator( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + creator_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Email address of the authenticated creator.
+     * 
+ * + * string creator = 10 [(.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 = 10 [(.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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + creator_ = value; + onChanged(); + return this; + } + + private java.lang.Object lastModifier_ = ""; + /** + *
+     * Output only. Email address of the last authenticated modifier.
+     * 
+ * + * string last_modifier = 11 [(.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; + java.lang.String s = bs.toStringUtf8(); + lastModifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Email address of the last authenticated modifier.
+     * 
+ * + * string last_modifier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for lastModifier. + */ + 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); + lastModifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Email address of the last authenticated modifier.
+     * 
+ * + * string last_modifier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The lastModifier to set. + * @return This builder for chaining. + */ + public Builder setLastModifier( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lastModifier_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Email address of the last authenticated modifier.
+     * 
+ * + * string last_modifier = 11 [(.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 = 11 [(.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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastModifier_ = value; + onChanged(); + return this; + } + + private java.lang.Object client_ = ""; + /** + *
+     * Arbitrary identifier for the API client.
+     * 
+ * + * string client = 12; + * @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; + java.lang.String s = bs.toStringUtf8(); + client_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Arbitrary identifier for the API client.
+     * 
+ * + * string client = 12; + * @return The bytes for client. + */ + 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); + client_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Arbitrary identifier for the API client.
+     * 
+ * + * string client = 12; + * @param value The client to set. + * @return This builder for chaining. + */ + public Builder setClient( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + client_ = value; + onChanged(); + return this; + } + /** + *
+     * Arbitrary identifier for the API client.
+     * 
+ * + * string client = 12; + * @return This builder for chaining. + */ + public Builder clearClient() { + + client_ = getDefaultInstance().getClient(); + onChanged(); + return this; + } + /** + *
+     * Arbitrary identifier for the API client.
+     * 
+ * + * string client = 12; + * @param value The bytes for client to set. + * @return This builder for chaining. + */ + public Builder setClientBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + client_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientVersion_ = ""; + /** + *
+     * Arbitrary version identifier for the API client.
+     * 
+ * + * string client_version = 13; + * @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; + java.lang.String s = bs.toStringUtf8(); + clientVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Arbitrary version identifier for the API client.
+     * 
+ * + * string client_version = 13; + * @return The bytes for clientVersion. + */ + 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); + clientVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Arbitrary version identifier for the API client.
+     * 
+ * + * string client_version = 13; + * @param value The clientVersion to set. + * @return This builder for chaining. + */ + public Builder setClientVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * Arbitrary version identifier for the API client.
+     * 
+ * + * string client_version = 13; + * @return This builder for chaining. + */ + public Builder clearClientVersion() { + + clientVersion_ = getDefaultInstance().getClientVersion(); + onChanged(); + return this; + } + /** + *
+     * Arbitrary version identifier for the API client.
+     * 
+ * + * string client_version = 13; + * @param value The bytes for clientVersion to set. + * @return This builder for chaining. + */ + public Builder setClientVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientVersion_ = value; + onChanged(); + return this; + } + + private int launchStage_ = 0; + /** + *
+     * The launch stage as defined by [Google Cloud Platform
+     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
+     * is assumed.
+     * 
+ * + * .google.api.LaunchStage launch_stage = 14; + * @return The enum numeric value on the wire for launchStage. + */ + @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).
+     * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
+     * is assumed.
+     * 
+ * + * .google.api.LaunchStage launch_stage = 14; + * @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).
+     * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
+     * is assumed.
+     * 
+ * + * .google.api.LaunchStage launch_stage = 14; + * @return The launchStage. + */ + @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; + } + /** + *
+     * The launch stage as defined by [Google Cloud Platform
+     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
+     * is assumed.
+     * 
+ * + * .google.api.LaunchStage launch_stage = 14; + * @param value The launchStage to set. + * @return This builder for chaining. + */ + 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).
+     * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
+     * is assumed.
+     * 
+ * + * .google.api.LaunchStage launch_stage = 14; + * @return This builder for chaining. + */ + public Builder clearLaunchStage() { + + launchStage_ = 0; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Settings for the Binary Authorization feature.
+     * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + * @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 = 15; + * @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_; + } else { + return binaryAuthorizationBuilder_.getMessage(); + } + } + /** + *
+     * Settings for the Binary Authorization feature.
+     * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + */ + public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binaryAuthorization_ = value; + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Settings for the Binary Authorization feature.
+     * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + */ + public Builder setBinaryAuthorization( + com.google.cloud.run.v2.BinaryAuthorization.Builder builderForValue) { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = builderForValue.build(); + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Settings for the Binary Authorization feature.
+     * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + */ + public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (binaryAuthorization_ != null) { + binaryAuthorization_ = + com.google.cloud.run.v2.BinaryAuthorization.newBuilder(binaryAuthorization_).mergeFrom(value).buildPartial(); + } else { + binaryAuthorization_ = value; + } + onChanged(); + } else { + binaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Settings for the Binary Authorization feature.
+     * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + */ + public Builder clearBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + onChanged(); + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + *
+     * Settings for the Binary Authorization feature.
+     * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + */ + public com.google.cloud.run.v2.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { + + onChanged(); + return getBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + *
+     * Settings for the Binary Authorization feature.
+     * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + */ + public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { + if (binaryAuthorizationBuilder_ != null) { + return binaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return binaryAuthorization_ == null ? + com.google.cloud.run.v2.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } + } + /** + *
+     * Settings for the Binary Authorization feature.
+     * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + binaryAuthorization_ = null; + } + return binaryAuthorizationBuilder_; + } + + private com.google.cloud.run.v2.ExecutionTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.ExecutionTemplate, com.google.cloud.run.v2.ExecutionTemplate.Builder, com.google.cloud.run.v2.ExecutionTemplateOrBuilder> templateBuilder_; + /** + *
+     * Required. The template used to create executions for this Job.
+     * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.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 executions for this Job.
+     * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return The template. + */ + public com.google.cloud.run.v2.ExecutionTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+     * Required. The template used to create executions for this Job.
+     * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTemplate(com.google.cloud.run.v2.ExecutionTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The template used to create executions for this Job.
+     * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setTemplate( + com.google.cloud.run.v2.ExecutionTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The template used to create executions for this Job.
+     * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeTemplate(com.google.cloud.run.v2.ExecutionTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + com.google.cloud.run.v2.ExecutionTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The template used to create executions for this Job.
+     * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The template used to create executions for this Job.
+     * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.run.v2.ExecutionTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The template used to create executions for this Job.
+     * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.run.v2.ExecutionTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance() : template_; + } + } + /** + *
+     * Required. The template used to create executions for this Job.
+     * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.ExecutionTemplate, com.google.cloud.run.v2.ExecutionTemplate.Builder, com.google.cloud.run.v2.ExecutionTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.ExecutionTemplate, com.google.cloud.run.v2.ExecutionTemplate.Builder, com.google.cloud.run.v2.ExecutionTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private long observedGeneration_ ; + /** + *
+     * Output only. The generation of this Job. See comments in `reconciling` for additional
+     * information on reconciliation process in Cloud Run.
+     * 
+ * + * int64 observed_generation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The observedGeneration. + */ + @java.lang.Override + public long getObservedGeneration() { + return observedGeneration_; + } + /** + *
+     * Output only. The generation of this Job. See comments in `reconciling` for additional
+     * information on reconciliation process in Cloud Run.
+     * 
+ * + * int64 observed_generation = 17 [(.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 Job. See comments in `reconciling` for additional
+     * information on reconciliation process in Cloud Run.
+     * 
+ * + * int64 observed_generation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearObservedGeneration() { + + observedGeneration_ = 0L; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Output only. The Condition of this Job, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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 Job, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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_; + } else { + return terminalConditionBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The Condition of this Job, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setTerminalCondition(com.google.cloud.run.v2.Condition value) { + if (terminalConditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terminalCondition_ = value; + onChanged(); + } else { + terminalConditionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The Condition of this Job, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setTerminalCondition( + com.google.cloud.run.v2.Condition.Builder builderForValue) { + if (terminalConditionBuilder_ == null) { + terminalCondition_ = builderForValue.build(); + onChanged(); + } else { + terminalConditionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The Condition of this Job, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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(); + } else { + terminalCondition_ = value; + } + onChanged(); + } else { + terminalConditionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The Condition of this Job, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearTerminalCondition() { + if (terminalConditionBuilder_ == null) { + terminalCondition_ = null; + onChanged(); + } else { + terminalCondition_ = null; + terminalConditionBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The Condition of this Job, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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 Job, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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_; + } + } + /** + *
+     * Output only. The Condition of this Job, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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> + 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()); + terminalCondition_ = null; + } + return terminalConditionBuilder_; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000004; + } + } + + 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_; + + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.Condition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConditions( + int index, com.google.cloud.run.v2.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConditions( + int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions(com.google.cloud.run.v2.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + int index, com.google.cloud.run.v2.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + com.google.cloud.run.v2.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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 Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + 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 Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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()); + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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()); + } + /** + *
+     * Output only. The Conditions of all other associated sub-resources. They contain
+     * additional diagnostics information in case the Job does not reach its
+     * desired state. See comments in `reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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> + 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_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private int executionCount_ ; + /** + *
+     * Output only. Number of executions created for this job.
+     * 
+ * + * int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The executionCount. + */ + @java.lang.Override + public int getExecutionCount() { + return executionCount_; + } + /** + *
+     * Output only. Number of executions created for this job.
+     * 
+ * + * int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The executionCount to set. + * @return This builder for chaining. + */ + public Builder setExecutionCount(int value) { + + executionCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Number of executions created for this job.
+     * 
+ * + * int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearExecutionCount() { + + executionCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.run.v2.ExecutionReference latestCreatedExecution_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.ExecutionReference, com.google.cloud.run.v2.ExecutionReference.Builder, com.google.cloud.run.v2.ExecutionReferenceOrBuilder> latestCreatedExecutionBuilder_; + /** + *
+     * Output only. Name of the last created execution.
+     * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the latestCreatedExecution field is set. + */ + public boolean hasLatestCreatedExecution() { + return latestCreatedExecutionBuilder_ != null || latestCreatedExecution_ != null; + } + /** + *
+     * Output only. Name of the last created execution.
+     * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The latestCreatedExecution. + */ + public com.google.cloud.run.v2.ExecutionReference getLatestCreatedExecution() { + if (latestCreatedExecutionBuilder_ == null) { + return latestCreatedExecution_ == null ? com.google.cloud.run.v2.ExecutionReference.getDefaultInstance() : latestCreatedExecution_; + } else { + return latestCreatedExecutionBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Name of the last created execution.
+     * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setLatestCreatedExecution(com.google.cloud.run.v2.ExecutionReference value) { + if (latestCreatedExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestCreatedExecution_ = value; + onChanged(); + } else { + latestCreatedExecutionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Name of the last created execution.
+     * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setLatestCreatedExecution( + com.google.cloud.run.v2.ExecutionReference.Builder builderForValue) { + if (latestCreatedExecutionBuilder_ == null) { + latestCreatedExecution_ = builderForValue.build(); + onChanged(); + } else { + latestCreatedExecutionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Name of the last created execution.
+     * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeLatestCreatedExecution(com.google.cloud.run.v2.ExecutionReference value) { + if (latestCreatedExecutionBuilder_ == null) { + if (latestCreatedExecution_ != null) { + latestCreatedExecution_ = + com.google.cloud.run.v2.ExecutionReference.newBuilder(latestCreatedExecution_).mergeFrom(value).buildPartial(); + } else { + latestCreatedExecution_ = value; + } + onChanged(); + } else { + latestCreatedExecutionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Name of the last created execution.
+     * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearLatestCreatedExecution() { + if (latestCreatedExecutionBuilder_ == null) { + latestCreatedExecution_ = null; + onChanged(); + } else { + latestCreatedExecution_ = null; + latestCreatedExecutionBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Name of the last created execution.
+     * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.ExecutionReference.Builder getLatestCreatedExecutionBuilder() { + + onChanged(); + return getLatestCreatedExecutionFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Name of the last created execution.
+     * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.ExecutionReferenceOrBuilder getLatestCreatedExecutionOrBuilder() { + if (latestCreatedExecutionBuilder_ != null) { + return latestCreatedExecutionBuilder_.getMessageOrBuilder(); + } else { + return latestCreatedExecution_ == null ? + com.google.cloud.run.v2.ExecutionReference.getDefaultInstance() : latestCreatedExecution_; + } + } + /** + *
+     * Output only. Name of the last created execution.
+     * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.ExecutionReference, com.google.cloud.run.v2.ExecutionReference.Builder, com.google.cloud.run.v2.ExecutionReferenceOrBuilder> + getLatestCreatedExecutionFieldBuilder() { + if (latestCreatedExecutionBuilder_ == null) { + latestCreatedExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.ExecutionReference, com.google.cloud.run.v2.ExecutionReference.Builder, com.google.cloud.run.v2.ExecutionReferenceOrBuilder>( + getLatestCreatedExecution(), + getParentForChildren(), + isClean()); + latestCreatedExecution_ = null; + } + return latestCreatedExecutionBuilder_; + } + + private boolean reconciling_ ; + /** + *
+     * Output only. Returns true if the Job is currently being acted upon by the system to
+     * bring it into the desired state.
+     * When a new Job is created, or an existing one is updated, Cloud Run
+     * will asynchronously perform all necessary steps to bring the Job to the
+     * desired state. This process is called reconciliation.
+     * While reconciliation is in process, `observed_generation` and
+     * `latest_succeeded_execution`, will have transient values that might
+     * mismatch the intended state: Once reconciliation is over (and this field is
+     * false), there are two possible outcomes: reconciliation succeeded and the
+     * state matches the Job, or there was an error,  and reconciliation failed.
+     * This state can be found in `terminal_condition.state`.
+     * If reconciliation succeeded, the following fields will match:
+     * `observed_generation` and `generation`, `latest_succeeded_execution` and
+     * `latest_created_execution`.
+     * If reconciliation failed, `observed_generation` and
+     * `latest_succeeded_execution` will have the state of the last succeeded
+     * execution or empty for newly created Job. Additional information on the
+     * failure can be found in `terminal_condition` and `conditions`.
+     * 
+ * + * bool reconciling = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + /** + *
+     * Output only. Returns true if the Job is currently being acted upon by the system to
+     * bring it into the desired state.
+     * When a new Job is created, or an existing one is updated, Cloud Run
+     * will asynchronously perform all necessary steps to bring the Job to the
+     * desired state. This process is called reconciliation.
+     * While reconciliation is in process, `observed_generation` and
+     * `latest_succeeded_execution`, will have transient values that might
+     * mismatch the intended state: Once reconciliation is over (and this field is
+     * false), there are two possible outcomes: reconciliation succeeded and the
+     * state matches the Job, or there was an error,  and reconciliation failed.
+     * This state can be found in `terminal_condition.state`.
+     * If reconciliation succeeded, the following fields will match:
+     * `observed_generation` and `generation`, `latest_succeeded_execution` and
+     * `latest_created_execution`.
+     * If reconciliation failed, `observed_generation` and
+     * `latest_succeeded_execution` will have the state of the last succeeded
+     * execution or empty for newly created Job. Additional information on the
+     * failure can be found in `terminal_condition` and `conditions`.
+     * 
+ * + * bool reconciling = 23 [(.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 Job is currently being acted upon by the system to
+     * bring it into the desired state.
+     * When a new Job is created, or an existing one is updated, Cloud Run
+     * will asynchronously perform all necessary steps to bring the Job to the
+     * desired state. This process is called reconciliation.
+     * While reconciliation is in process, `observed_generation` and
+     * `latest_succeeded_execution`, will have transient values that might
+     * mismatch the intended state: Once reconciliation is over (and this field is
+     * false), there are two possible outcomes: reconciliation succeeded and the
+     * state matches the Job, or there was an error,  and reconciliation failed.
+     * This state can be found in `terminal_condition.state`.
+     * If reconciliation succeeded, the following fields will match:
+     * `observed_generation` and `generation`, `latest_succeeded_execution` and
+     * `latest_created_execution`.
+     * If reconciliation failed, `observed_generation` and
+     * `latest_succeeded_execution` will have the state of the last succeeded
+     * execution or empty for newly created Job. Additional information on the
+     * failure can be found in `terminal_condition` and `conditions`.
+     * 
+ * + * bool reconciling = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearReconciling() { + + reconciling_ = false; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) { + if (value == null) { + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Job) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Job) + private static final com.google.cloud.run.v2.Job DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.Job(); + } + + public static com.google.cloud.run.v2.Job getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Job parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.Job getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java new file mode 100644 index 000000000000..baf8dde256dd --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java @@ -0,0 +1,216 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class JobName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_JOB = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/jobs/{job}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String job; + + @Deprecated + protected JobName() { + project = null; + location = null; + job = null; + } + + private JobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + job = Preconditions.checkNotNull(builder.getJob()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static JobName of(String project, String location, String job) { + return newBuilder().setProject(project).setLocation(location).setJob(job).build(); + } + + public static String format(String project, String location, String job) { + return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); + } + + public static JobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_JOB.validatedMatch( + formattedString, "JobName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("job")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (JobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_JOB.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (job != null) { + fieldMapBuilder.put("job", job); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_JOB.instantiate("project", project, "location", location, "job", job); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + JobName that = ((JobName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.job, that.job); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(job); + return h; + } + + /** Builder for projects/{project}/locations/{location}/jobs/{job}. */ + public static class Builder { + private String project; + private String location; + private String job; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setJob(String job) { + this.job = job; + return this; + } + + private Builder(JobName jobName) { + this.project = jobName.project; + this.location = jobName.location; + this.job = jobName.job; + } + + public JobName build() { + return new JobName(this); + } + } +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java new file mode 100644 index 000000000000..6ebe8741ea62 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java @@ -0,0 +1,704 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public interface JobOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Job) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The fully qualified name of this Job.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The fully qualified name of this Job.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Output only. Server assigned unique identifier for the Execution. 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 Execution. 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(); + + /** + *
+   * 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
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * KRM-style annotations for the resource. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects. Cloud Run will populate some annotations using
+   * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+   * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+   * https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 5; + */ + int getAnnotationsCount(); + /** + *
+   * KRM-style annotations for the resource. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects. Cloud Run will populate some annotations using
+   * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+   * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+   * https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 5; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAnnotations(); + /** + *
+   * KRM-style annotations for the resource. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects. Cloud Run will populate some annotations using
+   * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+   * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+   * https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 5; + */ + java.util.Map + getAnnotationsMap(); + /** + *
+   * KRM-style annotations for the resource. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects. Cloud Run will populate some annotations using
+   * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+   * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+   * https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 5; + */ + + /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * KRM-style annotations for the resource. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects. Cloud Run will populate some annotations using
+   * 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
+   * follows Kubernetes annotations' namespacing, limits, and rules. More info:
+   * https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 5; + */ + + 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]; + * @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]; + * @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]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. The last-modified time.
+   * 
+ * + * .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]; + * @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]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Output only. The deletion time.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.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 = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + *
+   * Output only. The deletion time.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + *
+   * Output only. Email address of the authenticated creator.
+   * 
+ * + * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The creator. + */ + java.lang.String getCreator(); + /** + *
+   * Output only. Email address of the authenticated creator.
+   * 
+ * + * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for creator. + */ + com.google.protobuf.ByteString + getCreatorBytes(); + + /** + *
+   * Output only. Email address of the last authenticated modifier.
+   * 
+ * + * string last_modifier = 11 [(.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 = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for lastModifier. + */ + com.google.protobuf.ByteString + getLastModifierBytes(); + + /** + *
+   * Arbitrary identifier for the API client.
+   * 
+ * + * string client = 12; + * @return The client. + */ + java.lang.String getClient(); + /** + *
+   * Arbitrary identifier for the API client.
+   * 
+ * + * string client = 12; + * @return The bytes for client. + */ + com.google.protobuf.ByteString + getClientBytes(); + + /** + *
+   * Arbitrary version identifier for the API client.
+   * 
+ * + * string client_version = 13; + * @return The clientVersion. + */ + java.lang.String getClientVersion(); + /** + *
+   * Arbitrary version identifier for the API client.
+   * 
+ * + * string client_version = 13; + * @return The bytes for clientVersion. + */ + com.google.protobuf.ByteString + getClientVersionBytes(); + + /** + *
+   * The launch stage as defined by [Google Cloud Platform
+   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
+   * is assumed.
+   * 
+ * + * .google.api.LaunchStage launch_stage = 14; + * @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).
+   * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
+   * is assumed.
+   * 
+ * + * .google.api.LaunchStage launch_stage = 14; + * @return The launchStage. + */ + com.google.api.LaunchStage getLaunchStage(); + + /** + *
+   * Settings for the Binary Authorization feature.
+   * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + * @return Whether the binaryAuthorization field is set. + */ + boolean hasBinaryAuthorization(); + /** + *
+   * Settings for the Binary Authorization feature.
+   * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + * @return The binaryAuthorization. + */ + com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization(); + /** + *
+   * Settings for the Binary Authorization feature.
+   * 
+ * + * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + */ + com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); + + /** + *
+   * Required. The template used to create executions for this Job.
+   * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the template field is set. + */ + boolean hasTemplate(); + /** + *
+   * Required. The template used to create executions for this Job.
+   * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return The template. + */ + com.google.cloud.run.v2.ExecutionTemplate getTemplate(); + /** + *
+   * Required. The template used to create executions for this Job.
+   * 
+ * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.run.v2.ExecutionTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+   * Output only. The generation of this Job. See comments in `reconciling` for additional
+   * information on reconciliation process in Cloud Run.
+   * 
+ * + * int64 observed_generation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The observedGeneration. + */ + long getObservedGeneration(); + + /** + *
+   * Output only. The Condition of this Job, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the terminalCondition field is set. + */ + boolean hasTerminalCondition(); + /** + *
+   * Output only. The Condition of this Job, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The terminalCondition. + */ + com.google.cloud.run.v2.Condition getTerminalCondition(); + /** + *
+   * Output only. The Condition of this Job, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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 Job does not reach its
+   * desired state. See comments in `reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConditionsList(); + /** + *
+   * Output only. The Conditions of all other associated sub-resources. They contain
+   * additional diagnostics information in case the Job does not reach its
+   * desired state. See comments in `reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
+   * desired state. See comments in `reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
+   * desired state. See comments in `reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Output only. The Conditions of all other associated sub-resources. They contain
+   * additional diagnostics information in case the Job does not reach its
+   * desired state. See comments in `reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index); + + /** + *
+   * Output only. Number of executions created for this job.
+   * 
+ * + * int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The executionCount. + */ + int getExecutionCount(); + + /** + *
+   * Output only. Name of the last created execution.
+   * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the latestCreatedExecution field is set. + */ + boolean hasLatestCreatedExecution(); + /** + *
+   * Output only. Name of the last created execution.
+   * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The latestCreatedExecution. + */ + com.google.cloud.run.v2.ExecutionReference getLatestCreatedExecution(); + /** + *
+   * Output only. Name of the last created execution.
+   * 
+ * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.run.v2.ExecutionReferenceOrBuilder getLatestCreatedExecutionOrBuilder(); + + /** + *
+   * Output only. Returns true if the Job is currently being acted upon by the system to
+   * bring it into the desired state.
+   * When a new Job is created, or an existing one is updated, Cloud Run
+   * will asynchronously perform all necessary steps to bring the Job to the
+   * desired state. This process is called reconciliation.
+   * While reconciliation is in process, `observed_generation` and
+   * `latest_succeeded_execution`, will have transient values that might
+   * mismatch the intended state: Once reconciliation is over (and this field is
+   * false), there are two possible outcomes: reconciliation succeeded and the
+   * state matches the Job, or there was an error,  and reconciliation failed.
+   * This state can be found in `terminal_condition.state`.
+   * If reconciliation succeeded, the following fields will match:
+   * `observed_generation` and `generation`, `latest_succeeded_execution` and
+   * `latest_created_execution`.
+   * If reconciliation failed, `observed_generation` and
+   * `latest_succeeded_execution` will have the state of the last succeeded
+   * execution or empty for newly created Job. Additional information on the
+   * failure can be found in `terminal_condition` and `conditions`.
+   * 
+ * + * bool reconciling = 23 [(.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(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java new file mode 100644 index 000000000000..124b01d7e2d0 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java @@ -0,0 +1,295 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public final class JobProto { + private JobProto() {} + 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_CreateJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_GetJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RunJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Job_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Job_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Job_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Job_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ExecutionReference_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ExecutionReference_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\035google/cloud/run/v2/job.proto\022\023google." + + "cloud.run.v2\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\035google/api/launch_" + + "stage.proto\032\031google/api/resource.proto\032#" + + "google/cloud/run/v2/condition.proto\032,goo" + + "gle/cloud/run/v2/execution_template.prot" + + "o\032)google/cloud/run/v2/vendor_settings.p" + + "roto\032\036google/iam/v1/iam_policy.proto\032\032go" + + "ogle/iam/v1/policy.proto\032#google/longrun" + + "ning/operations.proto\032\037google/protobuf/t" + + "imestamp.proto\"\232\001\n\020CreateJobRequest\022.\n\006p" + + "arent\030\001 \001(\tB\036\340A\002\372A\030\022\026run.googleapis.com/" + + "Job\022*\n\003job\030\002 \001(\0132\030.google.cloud.run.v2.J" + + "obB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022\025\n\rvalidate" + + "_only\030\004 \001(\010\"=\n\rGetJobRequest\022,\n\004name\030\001 \001" + + "(\tB\036\340A\002\372A\030\n\026run.googleapis.com/Job\"l\n\020Up" + + "dateJobRequest\022*\n\003job\030\001 \001(\0132\030.google.clo" + + "ud.run.v2.JobB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" + + "\010\022\025\n\rallow_missing\030\004 \001(\010\"~\n\017ListJobsRequ" + + "est\022.\n\006parent\030\001 \001(\tB\036\340A\002\372A\030\022\026run.googlea" + + "pis.com/Job\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\"S\n\020List" + + "JobsResponse\022&\n\004jobs\030\001 \003(\0132\030.google.clou" + + "d.run.v2.Job\022\027\n\017next_page_token\030\002 \001(\t\"e\n" + + "\020DeleteJobRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + + "\026run.googleapis.com/Job\022\025\n\rvalidate_only" + + "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"b\n\rRunJobRequest\022,\n" + + "\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026run.googleapis.com/" + + "Job\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" + + "\"\212\t\n\003Job\022\014\n\004name\030\001 \001(\t\022\020\n\003uid\030\002 \001(\tB\003\340A\003" + + "\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0224\n\006labels\030\004 \003(" + + "\0132$.google.cloud.run.v2.Job.LabelsEntry\022" + + ">\n\013annotations\030\005 \003(\0132).google.cloud.run." + + "v2.Job.AnnotationsEntry\0224\n\013create_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\007 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013expire_time" + + "\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "\024\n\007creator\030\n \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\013" + + " \001(\tB\003\340A\003\022\016\n\006client\030\014 \001(\t\022\026\n\016client_vers" + + "ion\030\r \001(\t\022-\n\014launch_stage\030\016 \001(\0162\027.google" + + ".api.LaunchStage\022F\n\024binary_authorization" + + "\030\017 \001(\0132(.google.cloud.run.v2.BinaryAutho" + + "rization\022=\n\010template\030\020 \001(\0132&.google.clou" + + "d.run.v2.ExecutionTemplateB\003\340A\002\022 \n\023obser" + + "ved_generation\030\021 \001(\003B\003\340A\003\022?\n\022terminal_co" + + "ndition\030\022 \001(\0132\036.google.cloud.run.v2.Cond" + + "itionB\003\340A\003\0227\n\nconditions\030\023 \003(\0132\036.google." + + "cloud.run.v2.ConditionB\003\340A\003\022\034\n\017execution" + + "_count\030\024 \001(\005B\003\340A\003\022N\n\030latest_created_exec" + + "ution\030\026 \001(\0132\'.google.cloud.run.v2.Execut" + + "ionReferenceB\003\340A\003\022\030\n\013reconciling\030\027 \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\020Annotat" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001:R\352AO\n\026run.googleapis.com/Job\0222projects" + + "/{project}/locations/{location}/jobs/{jo" + + "b}R\001\001\"\253\001\n\022ExecutionReference\022/\n\004name\030\001 \001" + + "(\tB!\372A\036\n\034run.googleapis.com/Execution\022/\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\0223\n\017completion_time\030\003 \001(\0132\032.google" + + ".protobuf.Timestamp2\314\013\n\004Jobs\022\251\001\n\tCreateJ" + + "ob\022%.google.cloud.run.v2.CreateJobReques" + + "t\032\035.google.longrunning.Operation\"V\202\323\344\223\002/" + + "\"(/v2/{parent=projects/*/locations/*}/jo" + + "bs:\003job\332A\021parent,job,job_id\312A\n\n\003Job\022\003Job" + + "\022\177\n\006GetJob\022\".google.cloud.run.v2.GetJobR" + + "equest\032\030.google.cloud.run.v2.Job\"7\202\323\344\223\002*" + + "\022(/v2/{name=projects/*/locations/*/jobs/" + + "*}\332A\004name\022\222\001\n\010ListJobs\022$.google.cloud.ru" + + "n.v2.ListJobsRequest\032%.google.cloud.run." + + "v2.ListJobsResponse\"9\202\323\344\223\002*\022(/v2/{parent" + + "=projects/*/locations/*}/jobs\332A\006parent\022\237" + + "\001\n\tUpdateJob\022%.google.cloud.run.v2.Updat" + + "eJobRequest\032\035.google.longrunning.Operati" + + "on\"L\202\323\344\223\00232,/v2/{job.name=projects/*/loc" + + "ations/*/jobs/*}:\003job\332A\003job\312A\n\n\003Job\022\003Job" + + "\022\227\001\n\tDeleteJob\022%.google.cloud.run.v2.Del" + + "eteJobRequest\032\035.google.longrunning.Opera" + + "tion\"D\202\323\344\223\002**(/v2/{name=projects/*/locat" + + "ions/*/jobs/*}\332A\004name\312A\n\n\003Job\022\003Job\022\244\001\n\006R" + + "unJob\022\".google.cloud.run.v2.RunJobReques" + + "t\032\035.google.longrunning.Operation\"W\202\323\344\223\0021" + + "\",/v2/{name=projects/*/locations/*/jobs/" + + "*}:run:\001*\332A\004name\312A\026\n\tExecution\022\tExecutio" + + "n\022\214\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" + + "mPolicyRequest\032\025.google.iam.v1.Policy\"A\202" + + "\323\344\223\002;\0229/v2/{resource=projects/*/location" + + "s/*/jobs/*}:getIamPolicy\022\217\001\n\014SetIamPolic" + + "y\022\".google.iam.v1.SetIamPolicyRequest\032\025." + + "google.iam.v1.Policy\"D\202\323\344\223\002>\"9/v2/{resou" + + "rce=projects/*/locations/*/jobs/*}:setIa" + + "mPolicy:\001*\022\265\001\n\022TestIamPermissions\022(.goog" + + "le.iam.v1.TestIamPermissionsRequest\032).go" + + "ogle.iam.v1.TestIamPermissionsResponse\"J" + + "\202\323\344\223\002D\"?/v2/{resource=projects/*/locatio" + + "ns/*/jobs/*}:testIamPermissions:\001*\032F\312A\022r" + + "un.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB]\n\027com.google" + + ".cloud.run.v2B\010JobProtoP\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.ExecutionTemplateProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_CreateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_CreateJobRequest_descriptor, + new java.lang.String[] { "Parent", "Job", "JobId", "ValidateOnly", }); + internal_static_google_cloud_run_v2_GetJobRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor, + new java.lang.String[] { "Job", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_run_v2_ListJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListJobsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); + internal_static_google_cloud_run_v2_ListJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListJobsResponse_descriptor, + new java.lang.String[] { "Jobs", "NextPageToken", }); + internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_run_v2_RunJobRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RunJobRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_run_v2_Job_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_run_v2_Job_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Job_descriptor, + new java.lang.String[] { "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Creator", "LastModifier", "Client", "ClientVersion", "LaunchStage", "BinaryAuthorization", "Template", "ObservedGeneration", "TerminalCondition", "Conditions", "ExecutionCount", "LatestCreatedExecution", "Reconciling", "Etag", }); + internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Job_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Job_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_Job_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Job_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Job_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Job_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_ExecutionReference_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_run_v2_ExecutionReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ExecutionReference_descriptor, + new java.lang.String[] { "Name", "CreateTime", "CompletionTime", }); + 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.ExecutionTemplateProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java new file mode 100644 index 000000000000..6dd5adc14dc6 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java @@ -0,0 +1,283 @@ +// 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Probe_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Probe_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_HTTPHeader_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_TCPSocketAction_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\"\234\003\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\022\023\n\013working_dir\030\t \001(\t\0222\n\016liveness" + + "_probe\030\n \001(\0132\032.google.cloud.run.v2.Probe" + + "\0221\n\rstartup_probe\030\013 \001(\0132\032.google.cloud.r" + + "un.v2.Probe\"\236\001\n\024ResourceRequirements\022E\n\006" + + "limits\030\001 \003(\01325.google.cloud.run.v2.Resou" + + "rceRequirements.LimitsEntry\022\020\n\010cpu_idle\030" + + "\002 \001(\010\032-\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\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(\013" + + "2!.google.cloud.run.v2.EnvVarSourceH\000B\010\n" + + "\006values\"N\n\014EnvVarSource\022>\n\016secret_key_re" + + "f\030\001 \001(\0132&.google.cloud.run.v2.SecretKeyS" + + "elector\"\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*secret" + + "manager.googleapis.com/SecretVersion\"5\n\r" + + "ContainerPort\022\014\n\004name\030\001 \001(\t\022\026\n\016container" + + "_port\030\003 \001(\005\"9\n\013VolumeMount\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\002\022\027\n\nmount_path\030\003 \001(\tB\003\340A\002\"\252\001\n\006Volum" + + "e\022\021\n\004name\030\001 \001(\tB\003\340A\002\0229\n\006secret\030\002 \001(\0132\'.g" + + "oogle.cloud.run.v2.SecretVolumeSourceH\000\022" + + "C\n\022cloud_sql_instance\030\003 \001(\0132%.google.clo" + + "ud.run.v2.CloudSqlInstanceH\000B\r\n\013volume_t" + + "ype\"r\n\022SecretVolumeSource\022\023\n\006secret\030\001 \001(" + + "\tB\003\340A\002\0221\n\005items\030\002 \003(\0132\".google.cloud.run" + + ".v2.VersionToPath\022\024\n\014default_mode\030\003 \001(\005\"" + + "A\n\rVersionToPath\022\021\n\004path\030\001 \001(\tB\003\340A\002\022\017\n\007v" + + "ersion\030\002 \001(\t\022\014\n\004mode\030\003 \001(\005\"%\n\020CloudSqlIn" + + "stance\022\021\n\tinstances\030\001 \003(\t\"\364\001\n\005Probe\022\035\n\025i" + + "nitial_delay_seconds\030\001 \001(\005\022\027\n\017timeout_se" + + "conds\030\002 \001(\005\022\026\n\016period_seconds\030\003 \001(\005\022\031\n\021f" + + "ailure_threshold\030\004 \001(\005\0226\n\010http_get\030\005 \001(\013" + + "2\".google.cloud.run.v2.HTTPGetActionH\000\022:" + + "\n\ntcp_socket\030\006 \001(\0132$.google.cloud.run.v2" + + ".TCPSocketActionH\000B\014\n\nprobe_type\"T\n\rHTTP" + + "GetAction\022\014\n\004path\030\001 \001(\t\0225\n\014http_headers\030" + + "\004 \003(\0132\037.google.cloud.run.v2.HTTPHeader\"." + + "\n\nHTTPHeader\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\r\n\005value" + + "\030\002 \001(\t\"\037\n\017TCPSocketAction\022\014\n\004port\030\001 \001(\005B" + + "\366\003\n\027com.google.cloud.run.v2B\013K8sMinProto" + + "P\001Z6google.golang.org/genproto/googleapi" + + "s/cloud/run/v2;run\352Ax\n!cloudkms.googleap" + + "is.com/CryptoKey\022Sprojects/{project}/loc" + + "ations/{location}/keyRings/{key_ring}/cr" + + "yptoKeys/{crypto_key}\352AJ\n#secretmanager." + + "googleapis.com/Secret\022#projects/{project" + + "}/secrets/{secret}\352Ad\n*secretmanager.goo" + + "gleapis.com/SecretVersion\0226projects/{pro" + + "ject}/secrets/{secret}/versions/{version" + + "}\352Ad\n\"vpcaccess.googleapis.com/Connector" + + "\022>projects/{project}/locations/{location" + + "}/connectors/{connector}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", "WorkingDir", "LivenessProbe", "StartupProbe", }); + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor, + new java.lang.String[] { "Limits", "CpuIdle", }); + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor = + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_EnvVar_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_EnvVar_descriptor, + new java.lang.String[] { "Name", "Value", "ValueSource", "Values", }); + internal_static_google_cloud_run_v2_EnvVarSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_EnvVarSource_descriptor, + new java.lang.String[] { "SecretKeyRef", }); + internal_static_google_cloud_run_v2_SecretKeySelector_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_SecretKeySelector_descriptor, + new java.lang.String[] { "Secret", "Version", }); + internal_static_google_cloud_run_v2_ContainerPort_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ContainerPort_descriptor, + new java.lang.String[] { "Name", "ContainerPort", }); + internal_static_google_cloud_run_v2_VolumeMount_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VolumeMount_descriptor, + new java.lang.String[] { "Name", "MountPath", }); + internal_static_google_cloud_run_v2_Volume_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_run_v2_Volume_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Volume_descriptor, + new java.lang.String[] { "Name", "Secret", "CloudSqlInstance", "VolumeType", }); + internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor, + new java.lang.String[] { "Secret", "Items", "DefaultMode", }); + internal_static_google_cloud_run_v2_VersionToPath_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VersionToPath_descriptor, + new java.lang.String[] { "Path", "Version", "Mode", }); + internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor, + new java.lang.String[] { "Instances", }); + internal_static_google_cloud_run_v2_Probe_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_run_v2_Probe_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Probe_descriptor, + new java.lang.String[] { "InitialDelaySeconds", "TimeoutSeconds", "PeriodSeconds", "FailureThreshold", "HttpGet", "TcpSocket", "ProbeType", }); + internal_static_google_cloud_run_v2_HTTPGetAction_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_HTTPGetAction_descriptor, + new java.lang.String[] { "Path", "HttpHeaders", }); + internal_static_google_cloud_run_v2_HTTPHeader_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_HTTPHeader_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_google_cloud_run_v2_TCPSocketAction_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_TCPSocketAction_descriptor, + new java.lang.String[] { "Port", }); + 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.java new file mode 100644 index 000000000000..6742944c720f --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.java @@ -0,0 +1,921 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message for retrieving a list of Executions.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListExecutionsRequest} + */ +public final class ListExecutionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListExecutionsRequest) + ListExecutionsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListExecutionsRequest.newBuilder() to construct. + private ListExecutionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListExecutionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListExecutionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListExecutionsRequest.class, com.google.cloud.run.v2.ListExecutionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The Execution from which the Executions should be listed.
+   * To list all Executions across Jobs, use "-" instead of Job name.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The Execution from which the Executions should be listed.
+   * To list all Executions across Jobs, use "-" instead of Job name.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * Maximum number of Executions to return in this call.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * A page token received from a previous call to ListExecutions.
+   * All other parameters must match.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * A page token received from a previous call to ListExecutions.
+   * All other parameters must match.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int 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 + public boolean getShowDeleted() { + return showDeleted_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (showDeleted_ != false) { + output.writeBool(4, showDeleted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.ListExecutionsRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.ListExecutionsRequest other = (com.google.cloud.run.v2.ListExecutionsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( + com.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.ListExecutionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListExecutionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListExecutionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.ListExecutionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for retrieving a list of Executions.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListExecutionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.ListExecutionsRequest) + com.google.cloud.run.v2.ListExecutionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListExecutionsRequest.class, com.google.cloud.run.v2.ListExecutionsRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.ListExecutionsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + showDeleted_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListExecutionsRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.ListExecutionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.ListExecutionsRequest build() { + com.google.cloud.run.v2.ListExecutionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListExecutionsRequest buildPartial() { + com.google.cloud.run.v2.ListExecutionsRequest result = new com.google.cloud.run.v2.ListExecutionsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.showDeleted_ = showDeleted_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.ListExecutionsRequest) { + return mergeFrom((com.google.cloud.run.v2.ListExecutionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.ListExecutionsRequest other) { + if (other == com.google.cloud.run.v2.ListExecutionsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getShowDeleted() != false) { + setShowDeleted(other.getShowDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + showDeleted_ = input.readBool(); + + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The Execution from which the Executions should be listed.
+     * To list all Executions across Jobs, use "-" instead of Job name.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The Execution from which the Executions should be listed.
+     * To list all Executions across Jobs, use "-" instead of Job name.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The Execution from which the Executions should be listed.
+     * To list all Executions across Jobs, use "-" instead of Job name.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The Execution from which the Executions should be listed.
+     * To list all Executions across Jobs, use "-" instead of Job name.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * 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 Execution from which the Executions should be listed.
+     * To list all Executions across Jobs, use "-" instead of Job name.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of Executions to return in this call.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of Executions 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 Executions to return in this call.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * A page token received from a previous call to ListExecutions.
+     * 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A page token received from a previous call to ListExecutions.
+     * All other parameters must match.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A page token received from a previous call to ListExecutions.
+     * 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) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * A page token received from a previous call to ListExecutions.
+     * 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 ListExecutions.
+     * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private boolean showDeleted_ ; + /** + *
+     * If true, returns deleted (but unexpired) resources along with active ones.
+     * 
+ * + * bool show_deleted = 4; + * @return The showDeleted. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListExecutionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListExecutionsRequest) + private static final com.google.cloud.run.v2.ListExecutionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListExecutionsRequest(); + } + + public static com.google.cloud.run.v2.ListExecutionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListExecutionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.java new file mode 100644 index 000000000000..e90da2478355 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +public interface ListExecutionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListExecutionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Execution from which the Executions should be listed.
+   * To list all Executions across Jobs, use "-" instead of Job name.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The Execution from which the Executions should be listed.
+   * To list all Executions across Jobs, use "-" instead of Job name.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of Executions to return in this call.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * A page token received from a previous call to ListExecutions.
+   * 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 ListExecutions.
+   * All other parameters must match.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.java new file mode 100644 index 000000000000..bfee1022793b --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.java @@ -0,0 +1,1024 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Response message containing a list of Executions.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListExecutionsResponse} + */ +public final class ListExecutionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListExecutionsResponse) + ListExecutionsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListExecutionsResponse.newBuilder() to construct. + private ListExecutionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListExecutionsResponse() { + executions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListExecutionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListExecutionsResponse.class, com.google.cloud.run.v2.ListExecutionsResponse.Builder.class); + } + + public static final int EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List executions_; + /** + *
+   * The resulting list of Executions.
+   * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + @java.lang.Override + public java.util.List getExecutionsList() { + return executions_; + } + /** + *
+   * The resulting list of Executions.
+   * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + @java.lang.Override + public java.util.List + getExecutionsOrBuilderList() { + return executions_; + } + /** + *
+   * The resulting list of Executions.
+   * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + @java.lang.Override + public int getExecutionsCount() { + return executions_.size(); + } + /** + *
+   * The resulting list of Executions.
+   * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + @java.lang.Override + public com.google.cloud.run.v2.Execution getExecutions(int index) { + return executions_.get(index); + } + /** + *
+   * The resulting list of Executions.
+   * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + @java.lang.Override + public com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + return executions_.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
+   * ListExecutions request to continue.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token indicating there are more items than page_size. Use it in the next
+   * ListExecutions request to continue.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < executions_.size(); i++) { + output.writeMessage(1, executions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < executions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, executions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.ListExecutionsResponse)) { + return super.equals(obj); + } + com.google.cloud.run.v2.ListExecutionsResponse other = (com.google.cloud.run.v2.ListExecutionsResponse) obj; + + if (!getExecutionsList() + .equals(other.getExecutionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExecutionsCount() > 0) { + hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( + com.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.ListExecutionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListExecutionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListExecutionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.ListExecutionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message containing a list of Executions.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListExecutionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.ListExecutionsResponse) + com.google.cloud.run.v2.ListExecutionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListExecutionsResponse.class, com.google.cloud.run.v2.ListExecutionsResponse.Builder.class); + } + + // Construct using com.google.cloud.run.v2.ListExecutionsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + } else { + executions_ = null; + executionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListExecutionsResponse getDefaultInstanceForType() { + return com.google.cloud.run.v2.ListExecutionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.ListExecutionsResponse build() { + com.google.cloud.run.v2.ListExecutionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListExecutionsResponse buildPartial() { + com.google.cloud.run.v2.ListExecutionsResponse result = new com.google.cloud.run.v2.ListExecutionsResponse(this); + int from_bitField0_ = bitField0_; + if (executionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.executions_ = executions_; + } else { + result.executions_ = executionsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.ListExecutionsResponse) { + return mergeFrom((com.google.cloud.run.v2.ListExecutionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.ListExecutionsResponse other) { + if (other == com.google.cloud.run.v2.ListExecutionsResponse.getDefaultInstance()) return this; + if (executionsBuilder_ == null) { + if (!other.executions_.isEmpty()) { + if (executions_.isEmpty()) { + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExecutionsIsMutable(); + executions_.addAll(other.executions_); + } + onChanged(); + } + } else { + if (!other.executions_.isEmpty()) { + if (executionsBuilder_.isEmpty()) { + executionsBuilder_.dispose(); + executionsBuilder_ = null; + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + executionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExecutionsFieldBuilder() : null; + } else { + executionsBuilder_.addAllMessages(other.executions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.run.v2.Execution m = + input.readMessage( + com.google.cloud.run.v2.Execution.parser(), + extensionRegistry); + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(m); + } else { + executionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List executions_ = + java.util.Collections.emptyList(); + private void ensureExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + executions_ = new java.util.ArrayList(executions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Execution, com.google.cloud.run.v2.Execution.Builder, com.google.cloud.run.v2.ExecutionOrBuilder> executionsBuilder_; + + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + if (executionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executions_); + } else { + return executionsBuilder_.getMessageList(); + } + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public int getExecutionsCount() { + if (executionsBuilder_ == null) { + return executions_.size(); + } else { + return executionsBuilder_.getCount(); + } + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public com.google.cloud.run.v2.Execution getExecutions(int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessage(index); + } + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public Builder setExecutions( + int index, com.google.cloud.run.v2.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.set(index, value); + onChanged(); + } else { + executionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public Builder setExecutions( + int index, com.google.cloud.run.v2.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.set(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public Builder addExecutions(com.google.cloud.run.v2.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(value); + onChanged(); + } else { + executionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public Builder addExecutions( + int index, com.google.cloud.run.v2.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(index, value); + onChanged(); + } else { + executionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public Builder addExecutions( + com.google.cloud.run.v2.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public Builder addExecutions( + int index, com.google.cloud.run.v2.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public Builder addAllExecutions( + java.lang.Iterable values) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, executions_); + onChanged(); + } else { + executionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public Builder clearExecutions() { + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + executionsBuilder_.clear(); + } + return this; + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public Builder removeExecutions(int index) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.remove(index); + onChanged(); + } else { + executionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public com.google.cloud.run.v2.Execution.Builder getExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().getBuilder(index); + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); } else { + return executionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + if (executionsBuilder_ != null) { + return executionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executions_); + } + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public com.google.cloud.run.v2.Execution.Builder addExecutionsBuilder() { + return getExecutionsFieldBuilder().addBuilder( + com.google.cloud.run.v2.Execution.getDefaultInstance()); + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public com.google.cloud.run.v2.Execution.Builder addExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Execution.getDefaultInstance()); + } + /** + *
+     * The resulting list of Executions.
+     * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + public java.util.List + getExecutionsBuilderList() { + return getExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Execution, com.google.cloud.run.v2.Execution.Builder, com.google.cloud.run.v2.ExecutionOrBuilder> + getExecutionsFieldBuilder() { + if (executionsBuilder_ == null) { + executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Execution, com.google.cloud.run.v2.Execution.Builder, com.google.cloud.run.v2.ExecutionOrBuilder>( + executions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + executions_ = null; + } + return executionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListExecutions 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListExecutions request to continue.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListExecutions 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) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListExecutions 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
+     * ListExecutions 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListExecutionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListExecutionsResponse) + private static final com.google.cloud.run.v2.ListExecutionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListExecutionsResponse(); + } + + public static com.google.cloud.run.v2.ListExecutionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListExecutionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.java new file mode 100644 index 000000000000..c954beed298a --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution.proto + +package com.google.cloud.run.v2; + +public interface ListExecutionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListExecutionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resulting list of Executions.
+   * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + java.util.List + getExecutionsList(); + /** + *
+   * The resulting list of Executions.
+   * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + com.google.cloud.run.v2.Execution getExecutions(int index); + /** + *
+   * The resulting list of Executions.
+   * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + int getExecutionsCount(); + /** + *
+   * The resulting list of Executions.
+   * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + java.util.List + getExecutionsOrBuilderList(); + /** + *
+   * The resulting list of Executions.
+   * 
+ * + * repeated .google.cloud.run.v2.Execution executions = 1; + */ + com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder( + int index); + + /** + *
+   * A token indicating there are more items than page_size. Use it in the next
+   * ListExecutions 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
+   * ListExecutions request to continue.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.java new file mode 100644 index 000000000000..3bd1f7b32bb4 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.java @@ -0,0 +1,914 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message for retrieving a list of Jobs.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListJobsRequest} + */ +public final class ListJobsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListJobsRequest) + ListJobsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListJobsRequest.newBuilder() to construct. + private ListJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListJobsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListJobsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListJobsRequest.class, com.google.cloud.run.v2.ListJobsRequest.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.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The location and project to list resources on.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * Maximum number of Jobs to return in this call.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * A page token received from a previous call to ListJobs.
+   * All other parameters must match.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * A page token received from a previous call to ListJobs.
+   * All other parameters must match.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int 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 + public boolean getShowDeleted() { + return showDeleted_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (showDeleted_ != false) { + output.writeBool(4, showDeleted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.ListJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.ListJobsRequest other = (com.google.cloud.run.v2.ListJobsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( + com.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.ListJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListJobsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListJobsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.ListJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for retrieving a list of Jobs.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListJobsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.ListJobsRequest) + com.google.cloud.run.v2.ListJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListJobsRequest.class, com.google.cloud.run.v2.ListJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.ListJobsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + showDeleted_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListJobsRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.ListJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.ListJobsRequest build() { + com.google.cloud.run.v2.ListJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListJobsRequest buildPartial() { + com.google.cloud.run.v2.ListJobsRequest result = new com.google.cloud.run.v2.ListJobsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.showDeleted_ = showDeleted_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.ListJobsRequest) { + return mergeFrom((com.google.cloud.run.v2.ListJobsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.ListJobsRequest other) { + if (other == com.google.cloud.run.v2.ListJobsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getShowDeleted() != false) { + setShowDeleted(other.getShowDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + showDeleted_ = input.readBool(); + + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The location and project to list resources on.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The location and project to list resources on.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The location and project to list resources on.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The location and project to list resources on.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * 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.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of Jobs to return in this call.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of Jobs 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 Jobs to return in this call.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * A page token received from a previous call to ListJobs.
+     * 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A page token received from a previous call to ListJobs.
+     * All other parameters must match.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A page token received from a previous call to ListJobs.
+     * 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) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * A page token received from a previous call to ListJobs.
+     * 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 ListJobs.
+     * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private boolean showDeleted_ ; + /** + *
+     * If true, returns deleted (but unexpired) resources along with active ones.
+     * 
+ * + * bool show_deleted = 4; + * @return The showDeleted. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListJobsRequest) + private static final com.google.cloud.run.v2.ListJobsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListJobsRequest(); + } + + public static com.google.cloud.run.v2.ListJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java new file mode 100644 index 000000000000..8b217abfb724 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public interface ListJobsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The location and project to list resources on.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * 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.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of Jobs to return in this call.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * A page token received from a previous call to ListJobs.
+   * 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 ListJobs.
+   * All other parameters must match.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.java new file mode 100644 index 000000000000..5f9d5a9420a8 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.java @@ -0,0 +1,1024 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Response message containing a list of Jobs.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListJobsResponse} + */ +public final class ListJobsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListJobsResponse) + ListJobsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListJobsResponse.newBuilder() to construct. + private ListJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListJobsResponse() { + jobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListJobsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListJobsResponse.class, com.google.cloud.run.v2.ListJobsResponse.Builder.class); + } + + public static final int JOBS_FIELD_NUMBER = 1; + private java.util.List jobs_; + /** + *
+   * The resulting list of Jobs.
+   * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + @java.lang.Override + public java.util.List getJobsList() { + return jobs_; + } + /** + *
+   * The resulting list of Jobs.
+   * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + @java.lang.Override + public java.util.List + getJobsOrBuilderList() { + return jobs_; + } + /** + *
+   * The resulting list of Jobs.
+   * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + @java.lang.Override + public int getJobsCount() { + return jobs_.size(); + } + /** + *
+   * The resulting list of Jobs.
+   * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + @java.lang.Override + public com.google.cloud.run.v2.Job getJobs(int index) { + return jobs_.get(index); + } + /** + *
+   * The resulting list of Jobs.
+   * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + @java.lang.Override + public com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder( + int index) { + return jobs_.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
+   * ListJobs request to continue.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token indicating there are more items than page_size. Use it in the next
+   * ListJobs request to continue.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < jobs_.size(); i++) { + output.writeMessage(1, jobs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < jobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, jobs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.ListJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.run.v2.ListJobsResponse other = (com.google.cloud.run.v2.ListJobsResponse) obj; + + if (!getJobsList() + .equals(other.getJobsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( + com.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.ListJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListJobsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListJobsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.ListJobsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message containing a list of Jobs.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListJobsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.ListJobsResponse) + com.google.cloud.run.v2.ListJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListJobsResponse.class, com.google.cloud.run.v2.ListJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.run.v2.ListJobsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + } else { + jobs_ = null; + jobsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListJobsResponse getDefaultInstanceForType() { + return com.google.cloud.run.v2.ListJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.ListJobsResponse build() { + com.google.cloud.run.v2.ListJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListJobsResponse buildPartial() { + com.google.cloud.run.v2.ListJobsResponse result = new com.google.cloud.run.v2.ListJobsResponse(this); + int from_bitField0_ = bitField0_; + if (jobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.jobs_ = jobs_; + } else { + result.jobs_ = jobsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.ListJobsResponse) { + return mergeFrom((com.google.cloud.run.v2.ListJobsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.ListJobsResponse other) { + if (other == com.google.cloud.run.v2.ListJobsResponse.getDefaultInstance()) return this; + if (jobsBuilder_ == null) { + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } + onChanged(); + } + } else { + if (!other.jobs_.isEmpty()) { + if (jobsBuilder_.isEmpty()) { + jobsBuilder_.dispose(); + jobsBuilder_ = null; + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + jobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getJobsFieldBuilder() : null; + } else { + jobsBuilder_.addAllMessages(other.jobs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.run.v2.Job m = + input.readMessage( + com.google.cloud.run.v2.Job.parser(), + extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List jobs_ = + java.util.Collections.emptyList(); + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + jobs_ = new java.util.ArrayList(jobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> jobsBuilder_; + + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public java.util.List getJobsList() { + if (jobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobs_); + } else { + return jobsBuilder_.getMessageList(); + } + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public int getJobsCount() { + if (jobsBuilder_ == null) { + return jobs_.size(); + } else { + return jobsBuilder_.getCount(); + } + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public com.google.cloud.run.v2.Job getJobs(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessage(index); + } + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public Builder setJobs( + int index, com.google.cloud.run.v2.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + } else { + jobsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public Builder setJobs( + int index, com.google.cloud.run.v2.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.set(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public Builder addJobs(com.google.cloud.run.v2.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + } else { + jobsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public Builder addJobs( + int index, com.google.cloud.run.v2.Job value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(index, value); + onChanged(); + } else { + jobsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public Builder addJobs( + com.google.cloud.run.v2.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public Builder addJobs( + int index, com.google.cloud.run.v2.Job.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public Builder addAllJobs( + java.lang.Iterable values) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jobs_); + onChanged(); + } else { + jobsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public Builder clearJobs() { + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jobsBuilder_.clear(); + } + return this; + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public Builder removeJobs(int index) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.remove(index); + onChanged(); + } else { + jobsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public com.google.cloud.run.v2.Job.Builder getJobsBuilder( + int index) { + return getJobsFieldBuilder().getBuilder(index); + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder( + int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); } else { + return jobsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + if (jobsBuilder_ != null) { + return jobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobs_); + } + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public com.google.cloud.run.v2.Job.Builder addJobsBuilder() { + return getJobsFieldBuilder().addBuilder( + com.google.cloud.run.v2.Job.getDefaultInstance()); + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public com.google.cloud.run.v2.Job.Builder addJobsBuilder( + int index) { + return getJobsFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Job.getDefaultInstance()); + } + /** + *
+     * The resulting list of Jobs.
+     * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + public java.util.List + getJobsBuilderList() { + return getJobsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> + getJobsFieldBuilder() { + if (jobsBuilder_ == null) { + jobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder>( + jobs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + jobs_ = null; + } + return jobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListJobs 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListJobs request to continue.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListJobs 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) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListJobs 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
+     * ListJobs 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListJobsResponse) + private static final com.google.cloud.run.v2.ListJobsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListJobsResponse(); + } + + public static com.google.cloud.run.v2.ListJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.java new file mode 100644 index 000000000000..186279206191 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public interface ListJobsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resulting list of Jobs.
+   * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + java.util.List + getJobsList(); + /** + *
+   * The resulting list of Jobs.
+   * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + com.google.cloud.run.v2.Job getJobs(int index); + /** + *
+   * The resulting list of Jobs.
+   * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + int getJobsCount(); + /** + *
+   * The resulting list of Jobs.
+   * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + java.util.List + getJobsOrBuilderList(); + /** + *
+   * The resulting list of Jobs.
+   * 
+ * + * repeated .google.cloud.run.v2.Job jobs = 1; + */ + com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder( + int index); + + /** + *
+   * A token indicating there are more items than page_size. Use it in the next
+   * ListJobs 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
+   * ListJobs request to continue.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java similarity index 68% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java index eff2477626d8..c141bde33d3a 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java +++ b/owl-bot-staging/java-run/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,35 +26,32 @@ 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; } - - 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.
@@ -80,10 +59,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 @@ -92,15 +68,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.
@@ -108,18 +83,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 { @@ -130,14 +104,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 @@ -148,15 +119,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 @@ -165,30 +133,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 { @@ -199,14 +167,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 @@ -215,7 +180,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,7 +191,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_); } @@ -253,13 +218,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -269,18 +236,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,142 +269,137 @@ 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) + getUnknownFields().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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +415,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 @@ -471,8 +436,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_; @@ -485,39 +449,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; @@ -566,37 +529,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - showDeleted_ = input.readBool(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + showDeleted_ = input.readBool(); + + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -609,8 +567,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.
@@ -618,16 +574,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; @@ -636,8 +590,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.
@@ -645,17 +597,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 { @@ -663,8 +614,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.
@@ -672,25 +621,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.
@@ -698,21 +643,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.
@@ -720,34 +660,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 @@ -755,36 +690,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; @@ -792,21 +721,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; @@ -815,22 +742,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 { @@ -838,79 +764,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 @@ -918,43 +834,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); } @@ -964,12 +874,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(); } @@ -978,27 +888,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,4 +923,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListRevisionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java similarity index 61% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java index 43da0fd74680..f2754c908199 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java similarity index 72% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java index 2884356be5c7..46d413427ef4 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java +++ b/owl-bot-staging/java-run/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,35 +26,32 @@ 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; } - - 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.
    * 
@@ -84,8 +63,6 @@ public java.util.List getRevisionsList() { return revisions_; } /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -93,13 +70,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.
    * 
@@ -111,8 +86,6 @@ public int getRevisionsCount() { return revisions_.size(); } /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { return revisions_.get(index); } /** - * - * *
    * The resulting list of Revisions.
    * 
@@ -133,22 +104,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 @@ -157,30 +126,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 { @@ -189,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +169,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)); } @@ -218,7 +187,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_); @@ -231,16 +201,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +234,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +374,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 @@ -430,8 +395,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)) { @@ -451,39 +415,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; @@ -510,10 +473,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_); } @@ -549,31 +511,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.run.v2.Revision m = - input.readMessage(com.google.cloud.run.v2.Revision.parser(), extensionRegistry); - if (revisionsBuilder_ == null) { - ensureRevisionsIsMutable(); - revisions_.add(m); - } else { - revisionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.run.v2.Revision m = + input.readMessage( + com.google.cloud.run.v2.Revision.parser(), + extensionRegistry); + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.add(m); + } else { + revisionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,28 +544,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -619,8 +573,6 @@ public java.util.List getRevisionsList() { } } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -635,8 +587,6 @@ public int getRevisionsCount() { } } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -651,15 +601,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(); @@ -673,8 +622,6 @@ public Builder setRevisions(int index, com.google.cloud.run.v2.Revision value) { return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -693,8 +640,6 @@ public Builder setRevisions( return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -715,15 +660,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(); @@ -737,15 +681,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()); @@ -756,8 +699,6 @@ public Builder addRevisions(com.google.cloud.run.v2.Revision.Builder builderForV return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -776,8 +717,6 @@ public Builder addRevisions( return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -788,7 +727,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); @@ -796,8 +736,6 @@ public Builder addAllRevisions( return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -815,8 +753,6 @@ public Builder clearRevisions() { return this; } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -834,44 +770,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 { @@ -879,8 +810,6 @@ public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder(int index } } /** - * - * *
      * The resulting list of Revisions.
      * 
@@ -888,47 +817,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_; @@ -936,21 +860,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; @@ -959,22 +881,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 { @@ -982,71 +903,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); } @@ -1056,12 +970,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(); } @@ -1070,27 +984,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1105,4 +1019,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListRevisionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java similarity index 65% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java index 989c91f8e20b..6755d07f2ede 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java similarity index 67% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java index 4f0bdf7fc1a0..dbc875ac2736 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java +++ b/owl-bot-staging/java-run/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,45 +26,39 @@ 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; } - - 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/{project}/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 @@ -91,33 +67,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/{project}/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 { @@ -128,14 +102,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 @@ -146,15 +117,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 @@ -163,30 +131,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 { @@ -197,14 +165,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 @@ -213,7 +178,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +189,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_); } @@ -251,13 +216,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -267,18 +234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,142 +267,137 @@ 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) + getUnknownFields().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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +413,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 @@ -469,8 +434,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_; @@ -483,39 +447,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; @@ -564,37 +527,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: - { - showDeleted_ = input.readBool(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + showDeleted_ = input.readBool(); + + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -607,24 +565,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/{project}/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; @@ -633,25 +587,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/{project}/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 { @@ -659,88 +610,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/{project}/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/{project}/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/{project}/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 @@ -748,36 +683,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; @@ -785,21 +714,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; @@ -808,22 +735,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 { @@ -831,79 +757,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 @@ -911,43 +827,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); } @@ -957,12 +867,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(); } @@ -971,27 +881,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,4 +916,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListServicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java similarity index 60% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java index e70688df53d7..8382bb62032c 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java +++ b/owl-bot-staging/java-run/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/{project}/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/{project}/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java similarity index 71% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java index 2e3725f9ab79..0b68370d69dc 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java +++ b/owl-bot-staging/java-run/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,35 +26,32 @@ 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; } - - 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.
    * 
@@ -84,8 +63,6 @@ public java.util.List getServicesList() { return services_; } /** - * - * *
    * The resulting list of Services.
    * 
@@ -93,13 +70,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.
    * 
@@ -111,8 +86,6 @@ public int getServicesCount() { return services_.size(); } /** - * - * *
    * The resulting list of Services.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.run.v2.Service getServices(int index) { return services_.get(index); } /** - * - * *
    * The resulting list of Services.
    * 
@@ -133,22 +104,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 @@ -157,30 +126,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 { @@ -189,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +169,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)); } @@ -218,7 +187,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_); @@ -231,16 +201,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +234,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +374,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 @@ -430,8 +395,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)) { @@ -451,39 +415,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; @@ -510,10 +473,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_); } @@ -549,31 +511,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.run.v2.Service m = - input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry); - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(m); - } else { - servicesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: { + com.google.cloud.run.v2.Service m = + input.readMessage( + com.google.cloud.run.v2.Service.parser(), + extensionRegistry); + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(m); + } else { + servicesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,28 +544,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -619,8 +573,6 @@ public java.util.List getServicesList() { } } /** - * - * *
      * The resulting list of Services.
      * 
@@ -635,8 +587,6 @@ public int getServicesCount() { } } /** - * - * *
      * The resulting list of Services.
      * 
@@ -651,15 +601,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(); @@ -673,15 +622,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()); @@ -692,8 +640,6 @@ public Builder setServices(int index, com.google.cloud.run.v2.Service.Builder bu return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -714,15 +660,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(); @@ -736,15 +681,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()); @@ -755,15 +699,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()); @@ -774,8 +717,6 @@ public Builder addServices(int index, com.google.cloud.run.v2.Service.Builder bu return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -786,7 +727,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); @@ -794,8 +736,6 @@ public Builder addAllServices( return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -813,8 +753,6 @@ public Builder clearServices() { return this; } /** - * - * *
      * The resulting list of Services.
      * 
@@ -832,44 +770,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 { @@ -877,8 +810,6 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder(int index) } } /** - * - * *
      * The resulting list of Services.
      * 
@@ -886,47 +817,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_; @@ -934,21 +860,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; @@ -957,22 +881,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 { @@ -980,71 +903,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); } @@ -1054,12 +970,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(); } @@ -1068,27 +984,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1103,4 +1019,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListServicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java similarity index 65% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java index af2c849ac8fc..9c9c363a2032 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java +++ b/owl-bot-staging/java-run/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/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.java new file mode 100644 index 000000000000..4f177b27f8be --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.java @@ -0,0 +1,928 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message for retrieving a list of Tasks.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListTasksRequest} + */ +public final class ListTasksRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListTasksRequest) + ListTasksRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListTasksRequest.newBuilder() to construct. + private ListTasksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTasksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListTasksRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListTasksRequest.class, com.google.cloud.run.v2.ListTasksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The Execution from which the Tasks should be listed.
+   * To list all Tasks across Executions of a Job, use "-" instead of Execution
+   * name. To list all Tasks across Jobs, use "-" instead of Job name. Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The Execution from which the Tasks should be listed.
+   * To list all Tasks across Executions of a Job, use "-" instead of Execution
+   * name. To list all Tasks across Jobs, use "-" instead of Job name. Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * Maximum number of Tasks to return in this call.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * A page token received from a previous call to ListTasks.
+   * All other parameters must match.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * A page token received from a previous call to ListTasks.
+   * All other parameters must match.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int 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 + public boolean getShowDeleted() { + return showDeleted_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (showDeleted_ != false) { + output.writeBool(4, showDeleted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.ListTasksRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.ListTasksRequest other = (com.google.cloud.run.v2.ListTasksRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( + com.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.ListTasksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListTasksRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListTasksRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.ListTasksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for retrieving a list of Tasks.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListTasksRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.ListTasksRequest) + com.google.cloud.run.v2.ListTasksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListTasksRequest.class, com.google.cloud.run.v2.ListTasksRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.ListTasksRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + showDeleted_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListTasksRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.ListTasksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.ListTasksRequest build() { + com.google.cloud.run.v2.ListTasksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListTasksRequest buildPartial() { + com.google.cloud.run.v2.ListTasksRequest result = new com.google.cloud.run.v2.ListTasksRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.showDeleted_ = showDeleted_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.ListTasksRequest) { + return mergeFrom((com.google.cloud.run.v2.ListTasksRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.ListTasksRequest other) { + if (other == com.google.cloud.run.v2.ListTasksRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.getShowDeleted() != false) { + setShowDeleted(other.getShowDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + showDeleted_ = input.readBool(); + + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The Execution from which the Tasks should be listed.
+     * To list all Tasks across Executions of a Job, use "-" instead of Execution
+     * name. To list all Tasks across Jobs, use "-" instead of Job name. Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The Execution from which the Tasks should be listed.
+     * To list all Tasks across Executions of a Job, use "-" instead of Execution
+     * name. To list all Tasks across Jobs, use "-" instead of Job name. Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The Execution from which the Tasks should be listed.
+     * To list all Tasks across Executions of a Job, use "-" instead of Execution
+     * name. To list all Tasks across Jobs, use "-" instead of Job name. Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The Execution from which the Tasks should be listed.
+     * To list all Tasks across Executions of a Job, use "-" instead of Execution
+     * name. To list all Tasks across Jobs, use "-" instead of Job name. Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * 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 Execution from which the Tasks should be listed.
+     * To list all Tasks across Executions of a Job, use "-" instead of Execution
+     * name. To list all Tasks across Jobs, use "-" instead of Job name. Format:
+     * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of Tasks to return in this call.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of Tasks 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 Tasks to return in this call.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * A page token received from a previous call to ListTasks.
+     * 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A page token received from a previous call to ListTasks.
+     * All other parameters must match.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A page token received from a previous call to ListTasks.
+     * 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) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * A page token received from a previous call to ListTasks.
+     * 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 ListTasks.
+     * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private boolean showDeleted_ ; + /** + *
+     * If true, returns deleted (but unexpired) resources along with active ones.
+     * 
+ * + * bool show_deleted = 4; + * @return The showDeleted. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListTasksRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListTasksRequest) + private static final com.google.cloud.run.v2.ListTasksRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListTasksRequest(); + } + + public static com.google.cloud.run.v2.ListTasksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTasksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListTasksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.java new file mode 100644 index 000000000000..3c10e76e4ffa --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +public interface ListTasksRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListTasksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Execution from which the Tasks should be listed.
+   * To list all Tasks across Executions of a Job, use "-" instead of Execution
+   * name. To list all Tasks across Jobs, use "-" instead of Job name. Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The Execution from which the Tasks should be listed.
+   * To list all Tasks across Executions of a Job, use "-" instead of Execution
+   * name. To list all Tasks across Jobs, use "-" instead of Job name. Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of Tasks to return in this call.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * A page token received from a previous call to ListTasks.
+   * 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 ListTasks.
+   * All other parameters must match.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.java new file mode 100644 index 000000000000..34860fbe876c --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.java @@ -0,0 +1,1024 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Response message containing a list of Tasks.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListTasksResponse} + */ +public final class ListTasksResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListTasksResponse) + ListTasksResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListTasksResponse.newBuilder() to construct. + private ListTasksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTasksResponse() { + tasks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListTasksResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListTasksResponse.class, com.google.cloud.run.v2.ListTasksResponse.Builder.class); + } + + public static final int TASKS_FIELD_NUMBER = 1; + private java.util.List tasks_; + /** + *
+   * The resulting list of Tasks.
+   * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + @java.lang.Override + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+   * The resulting list of Tasks.
+   * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + @java.lang.Override + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+   * The resulting list of Tasks.
+   * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + @java.lang.Override + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+   * The resulting list of Tasks.
+   * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + @java.lang.Override + public com.google.cloud.run.v2.Task getTasks(int index) { + return tasks_.get(index); + } + /** + *
+   * The resulting list of Tasks.
+   * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + @java.lang.Override + public com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder( + int index) { + return tasks_.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
+   * ListTasks request to continue.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * A token indicating there are more items than page_size. Use it in the next
+   * ListTasks request to continue.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(1, tasks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tasks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.ListTasksResponse)) { + return super.equals(obj); + } + com.google.cloud.run.v2.ListTasksResponse other = (com.google.cloud.run.v2.ListTasksResponse) obj; + + if (!getTasksList() + .equals(other.getTasksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( + com.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.ListTasksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListTasksResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListTasksResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.ListTasksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message containing a list of Tasks.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.ListTasksResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.ListTasksResponse) + com.google.cloud.run.v2.ListTasksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.ListTasksResponse.class, com.google.cloud.run.v2.ListTasksResponse.Builder.class); + } + + // Construct using com.google.cloud.run.v2.ListTasksResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + } else { + tasks_ = null; + tasksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListTasksResponse getDefaultInstanceForType() { + return com.google.cloud.run.v2.ListTasksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.ListTasksResponse build() { + com.google.cloud.run.v2.ListTasksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListTasksResponse buildPartial() { + com.google.cloud.run.v2.ListTasksResponse result = new com.google.cloud.run.v2.ListTasksResponse(this); + int from_bitField0_ = bitField0_; + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.ListTasksResponse) { + return mergeFrom((com.google.cloud.run.v2.ListTasksResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.ListTasksResponse other) { + if (other == com.google.cloud.run.v2.ListTasksResponse.getDefaultInstance()) return this; + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000001); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.run.v2.Task m = + input.readMessage( + com.google.cloud.run.v2.Task.parser(), + extensionRegistry); + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(m); + } else { + tasksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Task, com.google.cloud.run.v2.Task.Builder, com.google.cloud.run.v2.TaskOrBuilder> tasksBuilder_; + + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public com.google.cloud.run.v2.Task getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public Builder setTasks( + int index, com.google.cloud.run.v2.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public Builder setTasks( + int index, com.google.cloud.run.v2.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public Builder addTasks(com.google.cloud.run.v2.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public Builder addTasks( + int index, com.google.cloud.run.v2.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public Builder addTasks( + com.google.cloud.run.v2.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public Builder addTasks( + int index, com.google.cloud.run.v2.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public com.google.cloud.run.v2.Task.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public com.google.cloud.run.v2.Task.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + com.google.cloud.run.v2.Task.getDefaultInstance()); + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public com.google.cloud.run.v2.Task.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Task.getDefaultInstance()); + } + /** + *
+     * The resulting list of Tasks.
+     * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Task, com.google.cloud.run.v2.Task.Builder, com.google.cloud.run.v2.TaskOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Task, com.google.cloud.run.v2.Task.Builder, com.google.cloud.run.v2.TaskOrBuilder>( + tasks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListTasks 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListTasks request to continue.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListTasks 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) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * A token indicating there are more items than page_size. Use it in the next
+     * ListTasks 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
+     * ListTasks 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListTasksResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListTasksResponse) + private static final com.google.cloud.run.v2.ListTasksResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListTasksResponse(); + } + + public static com.google.cloud.run.v2.ListTasksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTasksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.ListTasksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.java new file mode 100644 index 000000000000..7ab3aea84d69 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +public interface ListTasksResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListTasksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resulting list of Tasks.
+   * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + java.util.List + getTasksList(); + /** + *
+   * The resulting list of Tasks.
+   * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + com.google.cloud.run.v2.Task getTasks(int index); + /** + *
+   * The resulting list of Tasks.
+   * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + int getTasksCount(); + /** + *
+   * The resulting list of Tasks.
+   * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+   * The resulting list of Tasks.
+   * 
+ * + * repeated .google.cloud.run.v2.Task tasks = 1; + */ + com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder( + int index); + + /** + *
+   * A token indicating there are more items than page_size. Use it in the next
+   * ListTasks 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
+   * ListTasks request to continue.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java similarity index 100% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java similarity index 75% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java index 63e96b8b35af..341f1d5c898a 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.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; /** - * - * *
  * Probe describes a health check to be performed against a container to
  * determine whether it is alive or ready to receive traffic.
@@ -28,54 +11,52 @@
  *
  * Protobuf type {@code google.cloud.run.v2.Probe}
  */
-public final class Probe extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Probe extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Probe)
     ProbeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Probe.newBuilder() to construct.
   private Probe(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Probe() {}
+  private Probe() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Probe();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Probe_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.K8sMinProto
-        .internal_static_google_cloud_run_v2_Probe_fieldAccessorTable
+    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Probe_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.run.v2.Probe.class, com.google.cloud.run.v2.Probe.Builder.class);
   }
 
   private int probeTypeCase_ = 0;
   private java.lang.Object probeType_;
-
   public enum ProbeTypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     HTTP_GET(5),
     TCP_SOCKET(6),
     PROBETYPE_NOT_SET(0);
     private final int value;
-
     private ProbeTypeCase(int value) {
       this.value = value;
     }
@@ -91,31 +72,26 @@ public static ProbeTypeCase valueOf(int value) {
 
     public static ProbeTypeCase forNumber(int value) {
       switch (value) {
-        case 5:
-          return HTTP_GET;
-        case 6:
-          return TCP_SOCKET;
-        case 0:
-          return PROBETYPE_NOT_SET;
-        default:
-          return null;
+        case 5: return HTTP_GET;
+        case 6: return TCP_SOCKET;
+        case 0: return PROBETYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ProbeTypeCase getProbeTypeCase() {
-    return ProbeTypeCase.forNumber(probeTypeCase_);
+  public ProbeTypeCase
+  getProbeTypeCase() {
+    return ProbeTypeCase.forNumber(
+        probeTypeCase_);
   }
 
   public static final int INITIAL_DELAY_SECONDS_FIELD_NUMBER = 1;
   private int initialDelaySeconds_;
   /**
-   *
-   *
    * 
    * Number of seconds after the container has started before the probe is
    * initiated.
@@ -126,7 +102,6 @@ public ProbeTypeCase getProbeTypeCase() {
    * 
* * int32 initial_delay_seconds = 1; - * * @return The initialDelaySeconds. */ @java.lang.Override @@ -137,8 +112,6 @@ public int getInitialDelaySeconds() { public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 2; private int timeoutSeconds_; /** - * - * *
    * Number of seconds after which the probe times out.
    * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
@@ -148,7 +121,6 @@ public int getInitialDelaySeconds() {
    * 
* * int32 timeout_seconds = 2; - * * @return The timeoutSeconds. */ @java.lang.Override @@ -159,8 +131,6 @@ public int getTimeoutSeconds() { public static final int PERIOD_SECONDS_FIELD_NUMBER = 3; private int periodSeconds_; /** - * - * *
    * How often (in seconds) to perform the probe.
    * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
@@ -169,7 +139,6 @@ public int getTimeoutSeconds() {
    * 
* * int32 period_seconds = 3; - * * @return The periodSeconds. */ @java.lang.Override @@ -180,15 +149,12 @@ public int getPeriodSeconds() { public static final int FAILURE_THRESHOLD_FIELD_NUMBER = 4; private int failureThreshold_; /** - * - * *
    * Minimum consecutive failures for the probe to be considered failed after
    * having succeeded. Defaults to 3. Minimum value is 1.
    * 
* * int32 failure_threshold = 4; - * * @return The failureThreshold. */ @java.lang.Override @@ -198,15 +164,12 @@ public int getFailureThreshold() { public static final int HTTP_GET_FIELD_NUMBER = 5; /** - * - * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; - * * @return Whether the httpGet field is set. */ @java.lang.Override @@ -214,27 +177,22 @@ public boolean hasHttpGet() { return probeTypeCase_ == 5; } /** - * - * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; - * * @return The httpGet. */ @java.lang.Override public com.google.cloud.run.v2.HTTPGetAction getHttpGet() { if (probeTypeCase_ == 5) { - return (com.google.cloud.run.v2.HTTPGetAction) probeType_; + return (com.google.cloud.run.v2.HTTPGetAction) probeType_; } return com.google.cloud.run.v2.HTTPGetAction.getDefaultInstance(); } /** - * - * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -245,22 +203,19 @@ public com.google.cloud.run.v2.HTTPGetAction getHttpGet() {
   @java.lang.Override
   public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() {
     if (probeTypeCase_ == 5) {
-      return (com.google.cloud.run.v2.HTTPGetAction) probeType_;
+       return (com.google.cloud.run.v2.HTTPGetAction) probeType_;
     }
     return com.google.cloud.run.v2.HTTPGetAction.getDefaultInstance();
   }
 
   public static final int TCP_SOCKET_FIELD_NUMBER = 6;
   /**
-   *
-   *
    * 
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; - * * @return Whether the tcpSocket field is set. */ @java.lang.Override @@ -268,27 +223,22 @@ public boolean hasTcpSocket() { return probeTypeCase_ == 6; } /** - * - * *
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; - * * @return The tcpSocket. */ @java.lang.Override public com.google.cloud.run.v2.TCPSocketAction getTcpSocket() { if (probeTypeCase_ == 6) { - return (com.google.cloud.run.v2.TCPSocketAction) probeType_; + return (com.google.cloud.run.v2.TCPSocketAction) probeType_; } return com.google.cloud.run.v2.TCPSocketAction.getDefaultInstance(); } /** - * - * *
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -299,13 +249,12 @@ public com.google.cloud.run.v2.TCPSocketAction getTcpSocket() {
   @java.lang.Override
   public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder() {
     if (probeTypeCase_ == 6) {
-      return (com.google.cloud.run.v2.TCPSocketAction) probeType_;
+       return (com.google.cloud.run.v2.TCPSocketAction) probeType_;
     }
     return com.google.cloud.run.v2.TCPSocketAction.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -317,7 +266,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 (initialDelaySeconds_ != 0) {
       output.writeInt32(1, initialDelaySeconds_);
     }
@@ -346,26 +296,28 @@ public int getSerializedSize() {
 
     size = 0;
     if (initialDelaySeconds_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, initialDelaySeconds_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(1, initialDelaySeconds_);
     }
     if (timeoutSeconds_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, timeoutSeconds_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(2, timeoutSeconds_);
     }
     if (periodSeconds_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, periodSeconds_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(3, periodSeconds_);
     }
     if (failureThreshold_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, failureThreshold_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(4, failureThreshold_);
     }
     if (probeTypeCase_ == 5) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              5, (com.google.cloud.run.v2.HTTPGetAction) probeType_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, (com.google.cloud.run.v2.HTTPGetAction) probeType_);
     }
     if (probeTypeCase_ == 6) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              6, (com.google.cloud.run.v2.TCPSocketAction) probeType_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, (com.google.cloud.run.v2.TCPSocketAction) probeType_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -375,24 +327,30 @@ public int getSerializedSize() {
   @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.Probe)) {
       return super.equals(obj);
     }
     com.google.cloud.run.v2.Probe other = (com.google.cloud.run.v2.Probe) obj;
 
-    if (getInitialDelaySeconds() != other.getInitialDelaySeconds()) return false;
-    if (getTimeoutSeconds() != other.getTimeoutSeconds()) return false;
-    if (getPeriodSeconds() != other.getPeriodSeconds()) return false;
-    if (getFailureThreshold() != other.getFailureThreshold()) return false;
+    if (getInitialDelaySeconds()
+        != other.getInitialDelaySeconds()) return false;
+    if (getTimeoutSeconds()
+        != other.getTimeoutSeconds()) return false;
+    if (getPeriodSeconds()
+        != other.getPeriodSeconds()) return false;
+    if (getFailureThreshold()
+        != other.getFailureThreshold()) return false;
     if (!getProbeTypeCase().equals(other.getProbeTypeCase())) return false;
     switch (probeTypeCase_) {
       case 5:
-        if (!getHttpGet().equals(other.getHttpGet())) return false;
+        if (!getHttpGet()
+            .equals(other.getHttpGet())) return false;
         break;
       case 6:
-        if (!getTcpSocket().equals(other.getTcpSocket())) return false;
+        if (!getTcpSocket()
+            .equals(other.getTcpSocket())) return false;
         break;
       case 0:
       default:
@@ -433,103 +391,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.run.v2.Probe parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.run.v2.Probe parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.run.v2.Probe parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.Probe parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.run.v2.Probe parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.run.v2.Probe parseFrom(
       com.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.Probe parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.run.v2.Probe parseFrom(
-      byte[] data, com.google.protobuf.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.Probe 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.Probe parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.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.Probe 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.Probe parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.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.Probe parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.cloud.run.v2.Probe 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.Probe parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public 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.Probe prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Probe describes a health check to be performed against a container to
    * determine whether it is alive or ready to receive traffic.
@@ -537,31 +489,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.run.v2.Probe}
    */
-  public static final class Builder extends com.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.Probe)
       com.google.cloud.run.v2.ProbeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_Probe_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Probe_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.K8sMinProto
-          .internal_static_google_cloud_run_v2_Probe_fieldAccessorTable
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Probe_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.cloud.run.v2.Probe.class, com.google.cloud.run.v2.Probe.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.Probe.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -585,9 +539,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_Probe_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Probe_descriptor;
     }
 
     @java.lang.Override
@@ -634,39 +588,38 @@ public com.google.cloud.run.v2.Probe buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.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.Probe) {
-        return mergeFrom((com.google.cloud.run.v2.Probe) other);
+        return mergeFrom((com.google.cloud.run.v2.Probe)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -688,20 +641,17 @@ public Builder mergeFrom(com.google.cloud.run.v2.Probe other) {
         setFailureThreshold(other.getFailureThreshold());
       }
       switch (other.getProbeTypeCase()) {
-        case HTTP_GET:
-          {
-            mergeHttpGet(other.getHttpGet());
-            break;
-          }
-        case TCP_SOCKET:
-          {
-            mergeTcpSocket(other.getTcpSocket());
-            break;
-          }
-        case PROBETYPE_NOT_SET:
-          {
-            break;
-          }
+        case HTTP_GET: {
+          mergeHttpGet(other.getHttpGet());
+          break;
+        }
+        case TCP_SOCKET: {
+          mergeTcpSocket(other.getTcpSocket());
+          break;
+        }
+        case PROBETYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -729,49 +679,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                initialDelaySeconds_ = input.readInt32();
-
-                break;
-              } // case 8
-            case 16:
-              {
-                timeoutSeconds_ = input.readInt32();
-
-                break;
-              } // case 16
-            case 24:
-              {
-                periodSeconds_ = input.readInt32();
-
-                break;
-              } // case 24
-            case 32:
-              {
-                failureThreshold_ = input.readInt32();
-
-                break;
-              } // case 32
-            case 42:
-              {
-                input.readMessage(getHttpGetFieldBuilder().getBuilder(), extensionRegistry);
-                probeTypeCase_ = 5;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getTcpSocketFieldBuilder().getBuilder(), extensionRegistry);
-                probeTypeCase_ = 6;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              initialDelaySeconds_ = input.readInt32();
+
+              break;
+            } // case 8
+            case 16: {
+              timeoutSeconds_ = input.readInt32();
+
+              break;
+            } // case 16
+            case 24: {
+              periodSeconds_ = input.readInt32();
+
+              break;
+            } // case 24
+            case 32: {
+              failureThreshold_ = input.readInt32();
+
+              break;
+            } // case 32
+            case 42: {
+              input.readMessage(
+                  getHttpGetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              probeTypeCase_ = 5;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getTcpSocketFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              probeTypeCase_ = 6;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -781,12 +728,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int probeTypeCase_ = 0;
     private java.lang.Object probeType_;
-
-    public ProbeTypeCase getProbeTypeCase() {
-      return ProbeTypeCase.forNumber(probeTypeCase_);
+    public ProbeTypeCase
+        getProbeTypeCase() {
+      return ProbeTypeCase.forNumber(
+          probeTypeCase_);
     }
 
     public Builder clearProbeType() {
@@ -796,10 +743,9 @@ public Builder clearProbeType() {
       return this;
     }
 
-    private int initialDelaySeconds_;
+
+    private int initialDelaySeconds_ ;
     /**
-     *
-     *
      * 
      * Number of seconds after the container has started before the probe is
      * initiated.
@@ -810,7 +756,6 @@ public Builder clearProbeType() {
      * 
* * int32 initial_delay_seconds = 1; - * * @return The initialDelaySeconds. */ @java.lang.Override @@ -818,8 +763,6 @@ public int getInitialDelaySeconds() { return initialDelaySeconds_; } /** - * - * *
      * Number of seconds after the container has started before the probe is
      * initiated.
@@ -830,19 +773,16 @@ public int getInitialDelaySeconds() {
      * 
* * int32 initial_delay_seconds = 1; - * * @param value The initialDelaySeconds to set. * @return This builder for chaining. */ public Builder setInitialDelaySeconds(int value) { - + initialDelaySeconds_ = value; onChanged(); return this; } /** - * - * *
      * Number of seconds after the container has started before the probe is
      * initiated.
@@ -853,20 +793,17 @@ public Builder setInitialDelaySeconds(int value) {
      * 
* * int32 initial_delay_seconds = 1; - * * @return This builder for chaining. */ public Builder clearInitialDelaySeconds() { - + initialDelaySeconds_ = 0; onChanged(); return this; } - private int timeoutSeconds_; + private int timeoutSeconds_ ; /** - * - * *
      * Number of seconds after which the probe times out.
      * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
@@ -876,7 +813,6 @@ public Builder clearInitialDelaySeconds() {
      * 
* * int32 timeout_seconds = 2; - * * @return The timeoutSeconds. */ @java.lang.Override @@ -884,8 +820,6 @@ public int getTimeoutSeconds() { return timeoutSeconds_; } /** - * - * *
      * Number of seconds after which the probe times out.
      * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
@@ -895,19 +829,16 @@ public int getTimeoutSeconds() {
      * 
* * int32 timeout_seconds = 2; - * * @param value The timeoutSeconds to set. * @return This builder for chaining. */ public Builder setTimeoutSeconds(int value) { - + timeoutSeconds_ = value; onChanged(); return this; } /** - * - * *
      * Number of seconds after which the probe times out.
      * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
@@ -917,20 +848,17 @@ public Builder setTimeoutSeconds(int value) {
      * 
* * int32 timeout_seconds = 2; - * * @return This builder for chaining. */ public Builder clearTimeoutSeconds() { - + timeoutSeconds_ = 0; onChanged(); return this; } - private int periodSeconds_; + private int periodSeconds_ ; /** - * - * *
      * How often (in seconds) to perform the probe.
      * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
@@ -939,7 +867,6 @@ public Builder clearTimeoutSeconds() {
      * 
* * int32 period_seconds = 3; - * * @return The periodSeconds. */ @java.lang.Override @@ -947,8 +874,6 @@ public int getPeriodSeconds() { return periodSeconds_; } /** - * - * *
      * How often (in seconds) to perform the probe.
      * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
@@ -957,19 +882,16 @@ public int getPeriodSeconds() {
      * 
* * int32 period_seconds = 3; - * * @param value The periodSeconds to set. * @return This builder for chaining. */ public Builder setPeriodSeconds(int value) { - + periodSeconds_ = value; onChanged(); return this; } /** - * - * *
      * How often (in seconds) to perform the probe.
      * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
@@ -978,27 +900,23 @@ public Builder setPeriodSeconds(int value) {
      * 
* * int32 period_seconds = 3; - * * @return This builder for chaining. */ public Builder clearPeriodSeconds() { - + periodSeconds_ = 0; onChanged(); return this; } - private int failureThreshold_; + private int failureThreshold_ ; /** - * - * *
      * Minimum consecutive failures for the probe to be considered failed after
      * having succeeded. Defaults to 3. Minimum value is 1.
      * 
* * int32 failure_threshold = 4; - * * @return The failureThreshold. */ @java.lang.Override @@ -1006,58 +924,46 @@ public int getFailureThreshold() { return failureThreshold_; } /** - * - * *
      * Minimum consecutive failures for the probe to be considered failed after
      * having succeeded. Defaults to 3. Minimum value is 1.
      * 
* * int32 failure_threshold = 4; - * * @param value The failureThreshold to set. * @return This builder for chaining. */ public Builder setFailureThreshold(int value) { - + failureThreshold_ = value; onChanged(); return this; } /** - * - * *
      * Minimum consecutive failures for the probe to be considered failed after
      * having succeeded. Defaults to 3. Minimum value is 1.
      * 
* * int32 failure_threshold = 4; - * * @return This builder for chaining. */ public Builder clearFailureThreshold() { - + failureThreshold_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.HTTPGetAction, - com.google.cloud.run.v2.HTTPGetAction.Builder, - com.google.cloud.run.v2.HTTPGetActionOrBuilder> - httpGetBuilder_; + com.google.cloud.run.v2.HTTPGetAction, com.google.cloud.run.v2.HTTPGetAction.Builder, com.google.cloud.run.v2.HTTPGetActionOrBuilder> httpGetBuilder_; /** - * - * *
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
      * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; - * * @return Whether the httpGet field is set. */ @java.lang.Override @@ -1065,15 +971,12 @@ public boolean hasHttpGet() { return probeTypeCase_ == 5; } /** - * - * *
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
      * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; - * * @return The httpGet. */ @java.lang.Override @@ -1091,8 +994,6 @@ public com.google.cloud.run.v2.HTTPGetAction getHttpGet() { } } /** - * - * *
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1114,8 +1015,6 @@ public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1123,7 +1022,8 @@ public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction value) {
      *
      * .google.cloud.run.v2.HTTPGetAction http_get = 5;
      */
-    public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction.Builder builderForValue) {
+    public Builder setHttpGet(
+        com.google.cloud.run.v2.HTTPGetAction.Builder builderForValue) {
       if (httpGetBuilder_ == null) {
         probeType_ = builderForValue.build();
         onChanged();
@@ -1134,8 +1034,6 @@ public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1145,13 +1043,10 @@ public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction.Builder builderF
      */
     public Builder mergeHttpGet(com.google.cloud.run.v2.HTTPGetAction value) {
       if (httpGetBuilder_ == null) {
-        if (probeTypeCase_ == 5
-            && probeType_ != com.google.cloud.run.v2.HTTPGetAction.getDefaultInstance()) {
-          probeType_ =
-              com.google.cloud.run.v2.HTTPGetAction.newBuilder(
-                      (com.google.cloud.run.v2.HTTPGetAction) probeType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (probeTypeCase_ == 5 &&
+            probeType_ != com.google.cloud.run.v2.HTTPGetAction.getDefaultInstance()) {
+          probeType_ = com.google.cloud.run.v2.HTTPGetAction.newBuilder((com.google.cloud.run.v2.HTTPGetAction) probeType_)
+              .mergeFrom(value).buildPartial();
         } else {
           probeType_ = value;
         }
@@ -1167,8 +1062,6 @@ public Builder mergeHttpGet(com.google.cloud.run.v2.HTTPGetAction value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1193,8 +1086,6 @@ public Builder clearHttpGet() {
       return this;
     }
     /**
-     *
-     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1206,8 +1097,6 @@ public com.google.cloud.run.v2.HTTPGetAction.Builder getHttpGetBuilder() {
       return getHttpGetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1227,8 +1116,6 @@ public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1237,45 +1124,33 @@ public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() {
      * .google.cloud.run.v2.HTTPGetAction http_get = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.HTTPGetAction,
-            com.google.cloud.run.v2.HTTPGetAction.Builder,
-            com.google.cloud.run.v2.HTTPGetActionOrBuilder>
+        com.google.cloud.run.v2.HTTPGetAction, com.google.cloud.run.v2.HTTPGetAction.Builder, com.google.cloud.run.v2.HTTPGetActionOrBuilder> 
         getHttpGetFieldBuilder() {
       if (httpGetBuilder_ == null) {
         if (!(probeTypeCase_ == 5)) {
           probeType_ = com.google.cloud.run.v2.HTTPGetAction.getDefaultInstance();
         }
-        httpGetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.HTTPGetAction,
-                com.google.cloud.run.v2.HTTPGetAction.Builder,
-                com.google.cloud.run.v2.HTTPGetActionOrBuilder>(
+        httpGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.HTTPGetAction, com.google.cloud.run.v2.HTTPGetAction.Builder, com.google.cloud.run.v2.HTTPGetActionOrBuilder>(
                 (com.google.cloud.run.v2.HTTPGetAction) probeType_,
                 getParentForChildren(),
                 isClean());
         probeType_ = null;
       }
       probeTypeCase_ = 5;
-      onChanged();
-      ;
+      onChanged();;
       return httpGetBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.TCPSocketAction,
-            com.google.cloud.run.v2.TCPSocketAction.Builder,
-            com.google.cloud.run.v2.TCPSocketActionOrBuilder>
-        tcpSocketBuilder_;
+        com.google.cloud.run.v2.TCPSocketAction, com.google.cloud.run.v2.TCPSocketAction.Builder, com.google.cloud.run.v2.TCPSocketActionOrBuilder> tcpSocketBuilder_;
     /**
-     *
-     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
      * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; - * * @return Whether the tcpSocket field is set. */ @java.lang.Override @@ -1283,15 +1158,12 @@ public boolean hasTcpSocket() { return probeTypeCase_ == 6; } /** - * - * *
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
      * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; - * * @return The tcpSocket. */ @java.lang.Override @@ -1309,8 +1181,6 @@ public com.google.cloud.run.v2.TCPSocketAction getTcpSocket() { } } /** - * - * *
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1332,8 +1202,6 @@ public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1341,7 +1209,8 @@ public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) {
      *
      * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
      */
-    public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction.Builder builderForValue) {
+    public Builder setTcpSocket(
+        com.google.cloud.run.v2.TCPSocketAction.Builder builderForValue) {
       if (tcpSocketBuilder_ == null) {
         probeType_ = builderForValue.build();
         onChanged();
@@ -1352,8 +1221,6 @@ public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1363,13 +1230,10 @@ public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction.Builder buil
      */
     public Builder mergeTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) {
       if (tcpSocketBuilder_ == null) {
-        if (probeTypeCase_ == 6
-            && probeType_ != com.google.cloud.run.v2.TCPSocketAction.getDefaultInstance()) {
-          probeType_ =
-              com.google.cloud.run.v2.TCPSocketAction.newBuilder(
-                      (com.google.cloud.run.v2.TCPSocketAction) probeType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (probeTypeCase_ == 6 &&
+            probeType_ != com.google.cloud.run.v2.TCPSocketAction.getDefaultInstance()) {
+          probeType_ = com.google.cloud.run.v2.TCPSocketAction.newBuilder((com.google.cloud.run.v2.TCPSocketAction) probeType_)
+              .mergeFrom(value).buildPartial();
         } else {
           probeType_ = value;
         }
@@ -1385,8 +1249,6 @@ public Builder mergeTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1411,8 +1273,6 @@ public Builder clearTcpSocket() {
       return this;
     }
     /**
-     *
-     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1424,8 +1284,6 @@ public com.google.cloud.run.v2.TCPSocketAction.Builder getTcpSocketBuilder() {
       return getTcpSocketFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1445,8 +1303,6 @@ public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1455,32 +1311,26 @@ public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder()
      * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.TCPSocketAction,
-            com.google.cloud.run.v2.TCPSocketAction.Builder,
-            com.google.cloud.run.v2.TCPSocketActionOrBuilder>
+        com.google.cloud.run.v2.TCPSocketAction, com.google.cloud.run.v2.TCPSocketAction.Builder, com.google.cloud.run.v2.TCPSocketActionOrBuilder> 
         getTcpSocketFieldBuilder() {
       if (tcpSocketBuilder_ == null) {
         if (!(probeTypeCase_ == 6)) {
           probeType_ = com.google.cloud.run.v2.TCPSocketAction.getDefaultInstance();
         }
-        tcpSocketBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.TCPSocketAction,
-                com.google.cloud.run.v2.TCPSocketAction.Builder,
-                com.google.cloud.run.v2.TCPSocketActionOrBuilder>(
+        tcpSocketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.TCPSocketAction, com.google.cloud.run.v2.TCPSocketAction.Builder, com.google.cloud.run.v2.TCPSocketActionOrBuilder>(
                 (com.google.cloud.run.v2.TCPSocketAction) probeType_,
                 getParentForChildren(),
                 isClean());
         probeType_ = null;
       }
       probeTypeCase_ = 6;
-      onChanged();
-      ;
+      onChanged();;
       return tcpSocketBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1490,12 +1340,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Probe)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Probe)
   private static final com.google.cloud.run.v2.Probe DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.run.v2.Probe();
   }
@@ -1504,27 +1354,27 @@ public static com.google.cloud.run.v2.Probe getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Probe parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Probe parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1539,4 +1389,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.run.v2.Probe getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java
similarity index 82%
rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java
rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java
index 161f8b43509e..69ad92b9d739 100644
--- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java
+++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.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 ProbeOrBuilder
-    extends
+public interface ProbeOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Probe)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Number of seconds after the container has started before the probe is
    * initiated.
@@ -36,14 +18,11 @@ public interface ProbeOrBuilder
    * 
* * int32 initial_delay_seconds = 1; - * * @return The initialDelaySeconds. */ int getInitialDelaySeconds(); /** - * - * *
    * Number of seconds after which the probe times out.
    * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
@@ -53,14 +32,11 @@ public interface ProbeOrBuilder
    * 
* * int32 timeout_seconds = 2; - * * @return The timeoutSeconds. */ int getTimeoutSeconds(); /** - * - * *
    * How often (in seconds) to perform the probe.
    * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
@@ -69,54 +45,42 @@ public interface ProbeOrBuilder
    * 
* * int32 period_seconds = 3; - * * @return The periodSeconds. */ int getPeriodSeconds(); /** - * - * *
    * Minimum consecutive failures for the probe to be considered failed after
    * having succeeded. Defaults to 3. Minimum value is 1.
    * 
* * int32 failure_threshold = 4; - * * @return The failureThreshold. */ int getFailureThreshold(); /** - * - * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; - * * @return Whether the httpGet field is set. */ boolean hasHttpGet(); /** - * - * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; - * * @return The httpGet. */ com.google.cloud.run.v2.HTTPGetAction getHttpGet(); /** - * - * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -127,34 +91,26 @@ public interface ProbeOrBuilder
   com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder();
 
   /**
-   *
-   *
    * 
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; - * * @return Whether the tcpSocket field is set. */ boolean hasTcpSocket(); /** - * - * *
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; - * * @return The tcpSocket. */ com.google.cloud.run.v2.TCPSocketAction getTcpSocket(); /** - * - * *
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java
similarity index 63%
rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java
rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java
index 826e5128c9ab..f7c391aa6440 100644
--- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java
+++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java
@@ -1,99 +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;
 
 /**
- *
- *
  * 
  * 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; } - - 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_; } @@ -102,8 +86,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
@@ -114,22 +96,22 @@ public int getLimitsCount() {
    *
    * map<string, string> limits = 1;
    */
+
   @java.lang.Override
-  public boolean containsLimits(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLimits(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLimits().getMap().containsKey(key);
   }
-  /** Use {@link #getLimitsMap()} instead. */
+  /**
+   * Use {@link #getLimitsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLimits() {
     return getLimitsMap();
   }
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -141,12 +123,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
@@ -158,16 +139,16 @@ public java.util.Map getLimitsMap() {
    * map<string, string> limits = 1;
    */
   @java.lang.Override
-  public java.lang.String getLimitsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLimits().getMap();
+
+  public java.lang.String getLimitsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLimits().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -179,11 +160,12 @@ public java.lang.String getLimitsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> limits = 1;
    */
   @java.lang.Override
-  public java.lang.String getLimitsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLimits().getMap();
+
+  public java.lang.String getLimitsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLimits().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -193,14 +175,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 @@ -209,7 +188,6 @@ public boolean getCpuIdle() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,9 +199,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_); } @@ -236,18 +219,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -257,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,162 +268,159 @@ 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) + getUnknownFields().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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +431,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 @@ -470,8 +452,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(); @@ -484,39 +465,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; @@ -525,7 +505,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()); } @@ -555,30 +536,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.MapEntry limits__ = - input.readMessage( - LimitsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLimits() - .getMutableMap() - .put(limits__.getKey(), limits__.getValue()); - break; - } // case 10 - case 16: - { - cpuIdle_ = input.readBool(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.MapEntry + limits__ = input.readMessage( + LimitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLimits().getMutableMap().put( + limits__.getKey(), limits__.getValue()); + break; + } // case 10 + case 16: { + cpuIdle_ = input.readBool(); + + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -588,24 +564,24 @@ public Builder mergeFrom( } // finally 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(); @@ -617,8 +593,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
@@ -629,22 +603,22 @@ public int getLimitsCount() {
      *
      * map<string, string> limits = 1;
      */
+
     @java.lang.Override
-    public boolean containsLimits(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLimits(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLimits().getMap().containsKey(key);
     }
-    /** Use {@link #getLimitsMap()} instead. */
+    /**
+     * Use {@link #getLimitsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLimits() {
       return getLimitsMap();
     }
     /**
-     *
-     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -656,12 +630,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
@@ -673,17 +646,16 @@ public java.util.Map getLimitsMap() {
      * map<string, string> limits = 1;
      */
     @java.lang.Override
+
     public java.lang.String getLimitsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLimits().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLimits().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -695,11 +667,12 @@ public java.lang.String getLimitsOrDefault(
      * map<string, string> limits = 1;
      */
     @java.lang.Override
-    public java.lang.String getLimitsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLimits().getMap();
+
+    public java.lang.String getLimitsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLimits().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -707,12 +680,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
@@ -723,21 +695,23 @@ public Builder clearLimits() {
      *
      * map<string, string> limits = 1;
      */
-    public Builder removeLimits(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLimits().getMutableMap().remove(key);
+
+    public Builder removeLimits(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLimits().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLimits() {
+    public java.util.Map
+    getMutableLimits() {
       return internalGetMutableLimits().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -748,20 +722,19 @@ public java.util.Map getMutableLimits() {
      *
      * map<string, string> limits = 1;
      */
-    public Builder putLimits(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putLimits(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLimits().getMutableMap().put(key, value);
+      internalGetMutableLimits().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -772,21 +745,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 @@ -794,43 +767,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); } @@ -840,12 +807,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(); } @@ -854,27 +821,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -889,4 +856,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ResourceRequirements getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java similarity index 72% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java index 34a5a4563c97..f6c05be9e553 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface ResourceRequirementsOrBuilder - extends +public interface ResourceRequirementsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ResourceRequirements) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -38,8 +20,6 @@ public interface ResourceRequirementsOrBuilder
    */
   int getLimitsCount();
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -50,13 +30,15 @@ public interface ResourceRequirementsOrBuilder
    *
    * map<string, string> limits = 1;
    */
-  boolean containsLimits(java.lang.String key);
-  /** Use {@link #getLimitsMap()} instead. */
+  boolean containsLimits(
+      java.lang.String key);
+  /**
+   * Use {@link #getLimitsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLimits();
+  java.util.Map
+  getLimits();
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -67,10 +49,9 @@ public interface ResourceRequirementsOrBuilder
    *
    * map<string, string> limits = 1;
    */
-  java.util.Map getLimitsMap();
+  java.util.Map
+  getLimitsMap();
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -83,13 +64,11 @@ public interface ResourceRequirementsOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLimitsOrDefault(
+java.lang.String getLimitsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -100,17 +79,16 @@ java.lang.String getLimitsOrDefault(
    *
    * map<string, string> limits = 1;
    */
-  java.lang.String getLimitsOrThrow(java.lang.String key);
+
+  java.lang.String getLimitsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Determines whether CPU should be throttled or not outside of requests.
    * 
* * bool cpu_idle = 2; - * * @return The cpuIdle. */ boolean getCpuIdle(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java similarity index 72% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java index 2e2f3105e67c..0a18460d4dd7 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java +++ b/owl-bot-staging/java-run/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,38 +38,39 @@ 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;
   }
-
-  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);
   }
@@ -95,14 +78,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 @@ -111,29 +91,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 { @@ -144,15 +124,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 @@ -161,30 +138,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 { @@ -195,15 +172,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 @@ -212,23 +186,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_; } @@ -237,8 +212,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
@@ -253,22 +226,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -284,12 +257,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
@@ -305,16 +277,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -330,11 +302,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -342,24 +315,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_;
   }
@@ -368,30 +341,28 @@ public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
-   *
-   *
    * 
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ + @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -399,12 +370,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.
    * 
@@ -412,17 +382,16 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override + public java.lang.String getAnnotationsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -430,11 +399,12 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -444,15 +414,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 @@ -460,15 +426,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 @@ -476,14 +438,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() { @@ -493,15 +452,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 @@ -509,15 +464,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 @@ -525,14 +476,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() { @@ -542,16 +490,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 @@ -559,16 +503,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 @@ -576,15 +516,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() { @@ -594,17 +531,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 @@ -612,17 +545,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 @@ -630,16 +559,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() { @@ -649,8 +575,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
@@ -659,16 +583,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
@@ -677,11 +597,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; @@ -690,16 +608,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 @@ -708,31 +621,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 { @@ -743,14 +654,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 @@ -758,25 +666,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.
    * 
@@ -791,15 +692,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 @@ -807,15 +705,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 @@ -823,8 +718,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.
@@ -840,14 +733,11 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER = 34;
   private int maxInstanceRequestConcurrency_;
   /**
-   *
-   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 34; - * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -858,14 +748,11 @@ public int getMaxInstanceRequestConcurrency() { public static final int TIMEOUT_FIELD_NUMBER = 15; private com.google.protobuf.Duration timeout_; /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; - * * @return Whether the timeout field is set. */ @java.lang.Override @@ -873,14 +760,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 @@ -888,8 +772,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.
    * 
@@ -904,8 +786,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
@@ -913,7 +793,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 16; - * * @return The serviceAccount. */ @java.lang.Override @@ -922,15 +801,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
@@ -938,15 +816,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 { @@ -957,8 +836,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.
@@ -971,8 +848,6 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -981,13 +856,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.
@@ -1000,8 +873,6 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -1014,8 +885,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.
@@ -1024,15 +893,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.
    * 
@@ -1044,8 +912,6 @@ public java.util.List getVolumesList() { return volumes_; } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -1053,13 +919,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.
    * 
@@ -1071,8 +935,6 @@ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -1084,8 +946,6 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -1093,51 +953,41 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * repeated .google.cloud.run.v2.Volume volumes = 18; */ @java.lang.Override - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { return volumes_.get(index); } public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 20; private int executionEnvironment_; /** - * - * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override - public int getExecutionEnvironmentValue() { + @java.lang.Override public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** - * - * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The executionEnvironment. */ - @java.lang.Override - public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { + @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = - com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 21; private volatile java.lang.Object encryptionKey_; /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -1145,7 +995,6 @@ public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() {
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ @java.lang.Override @@ -1154,15 +1003,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
@@ -1170,15 +1018,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 { @@ -1189,8 +1038,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
@@ -1198,7 +1045,6 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() {
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1209,92 +1055,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
@@ -1302,7 +1127,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 @@ -1313,14 +1137,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 @@ -1329,29 +1150,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 { @@ -1362,15 +1183,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 @@ -1379,30 +1197,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 { @@ -1411,7 +1229,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1423,7 +1240,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_); } @@ -1433,10 +1251,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()); } @@ -1473,9 +1299,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(18, volumes_.get(i)); } - if (executionEnvironment_ - != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED - .getNumber()) { + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(20, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { @@ -1515,88 +1339,100 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, generation_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getExpireTime()); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, launchStage_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, launchStage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, service_); } if (scaling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getScaling()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getScaling()); } if (vpcAccess_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVpcAccess()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getVpcAccess()); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, serviceAccount_); } for (int i = 0; i < containers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, containers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, containers_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, volumes_.get(i)); } - if (executionEnvironment_ - != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, executionEnvironment_); + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(20, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, encryptionKey_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(30, reconciling_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, conditions_.get(i)); } if (observedGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(32, observedGeneration_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(32, observedGeneration_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, logUri_); } if (maxInstanceRequestConcurrency_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 34, maxInstanceRequestConcurrency_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(34, maxInstanceRequestConcurrency_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); @@ -1609,60 +1445,82 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.Revision)) { return super.equals(obj); } com.google.cloud.run.v2.Revision other = (com.google.cloud.run.v2.Revision) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getGeneration() != other.getGeneration()) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getGeneration() + != other.getGeneration()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (launchStage_ != other.launchStage_) return false; - if (!getService().equals(other.getService())) return false; + if (!getService() + .equals(other.getService())) return false; if (hasScaling() != other.hasScaling()) return false; if (hasScaling()) { - if (!getScaling().equals(other.getScaling())) return false; + if (!getScaling() + .equals(other.getScaling())) return false; } if (hasVpcAccess() != other.hasVpcAccess()) return false; if (hasVpcAccess()) { - if (!getVpcAccess().equals(other.getVpcAccess())) return false; + if (!getVpcAccess() + .equals(other.getVpcAccess())) return false; } - if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency()) - return false; + if (getMaxInstanceRequestConcurrency() + != other.getMaxInstanceRequestConcurrency()) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout().equals(other.getTimeout())) return false; - } - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getContainersList().equals(other.getContainersList())) return false; - if (!getVolumesList().equals(other.getVolumesList())) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getContainersList() + .equals(other.getContainersList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!getConditionsList().equals(other.getConditionsList())) return false; - if (getObservedGeneration() != other.getObservedGeneration()) return false; - if (!getLogUri().equals(other.getLogUri())) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; + if (getObservedGeneration() + != other.getObservedGeneration()) return false; + if (!getLogUri() + .equals(other.getLogUri())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1679,7 +1537,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(); @@ -1737,13 +1596,15 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; hash = (53 * hash) + getEncryptionKey().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (37 * hash) + OBSERVED_GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObservedGeneration()); hash = (37 * hash) + LOG_URI_FIELD_NUMBER; hash = (53 * hash) + getLogUri().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; @@ -1753,103 +1614,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
@@ -1858,56 +1713,59 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2006,9 +1864,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
@@ -2116,39 +1974,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;
@@ -2168,8 +2025,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());
       }
@@ -2223,10 +2082,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_);
           }
@@ -2250,10 +2108,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_);
           }
@@ -2287,10 +2144,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_);
           }
@@ -2333,221 +2189,206 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                uid_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 18
-            case 24:
-              {
-                generation_ = input.readInt64();
-
-                break;
-              } // case 24
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 74
-            case 80:
-              {
-                launchStage_ = input.readEnum();
-
-                break;
-              } // case 80
-            case 90:
-              {
-                service_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(getScalingFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(getVpcAccessFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 106
-            case 122:
-              {
-                input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 122
-            case 130:
-              {
-                serviceAccount_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 130
-            case 138:
-              {
-                com.google.cloud.run.v2.Container m =
-                    input.readMessage(
-                        com.google.cloud.run.v2.Container.parser(), extensionRegistry);
-                if (containersBuilder_ == null) {
-                  ensureContainersIsMutable();
-                  containers_.add(m);
-                } else {
-                  containersBuilder_.addMessage(m);
-                }
-                break;
-              } // case 138
-            case 146:
-              {
-                com.google.cloud.run.v2.Volume m =
-                    input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry);
-                if (volumesBuilder_ == null) {
-                  ensureVolumesIsMutable();
-                  volumes_.add(m);
-                } else {
-                  volumesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 146
-            case 160:
-              {
-                executionEnvironment_ = input.readEnum();
-
-                break;
-              } // case 160
-            case 170:
-              {
-                encryptionKey_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 170
-            case 240:
-              {
-                reconciling_ = input.readBool();
-
-                break;
-              } // case 240
-            case 250:
-              {
-                com.google.cloud.run.v2.Condition m =
-                    input.readMessage(
-                        com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
-                if (conditionsBuilder_ == null) {
-                  ensureConditionsIsMutable();
-                  conditions_.add(m);
-                } else {
-                  conditionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 250
-            case 256:
-              {
-                observedGeneration_ = input.readInt64();
-
-                break;
-              } // case 256
-            case 266:
-              {
-                logUri_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 266
-            case 272:
-              {
-                maxInstanceRequestConcurrency_ = input.readInt32();
-
-                break;
-              } // case 272
-            case 794:
-              {
-                etag_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 794
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
-          } // switch (tag)
-        } // while (!done)
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.unwrapIOException();
-      } finally {
-        onChanged();
-      } // finally
-      return this;
-    }
+            case 10: {
+              name_ = input.readStringRequireUtf8();
 
-    private int bitField0_;
+              break;
+            } // case 10
+            case 18: {
+              uid_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 18
+            case 24: {
+              generation_ = input.readInt64();
+
+              break;
+            } // case 24
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getExpireTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 74
+            case 80: {
+              launchStage_ = input.readEnum();
+
+              break;
+            } // case 80
+            case 90: {
+              service_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getScalingFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getVpcAccessFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 106
+            case 122: {
+              input.readMessage(
+                  getTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 122
+            case 130: {
+              serviceAccount_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 130
+            case 138: {
+              com.google.cloud.run.v2.Container m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.Container.parser(),
+                      extensionRegistry);
+              if (containersBuilder_ == null) {
+                ensureContainersIsMutable();
+                containers_.add(m);
+              } else {
+                containersBuilder_.addMessage(m);
+              }
+              break;
+            } // case 138
+            case 146: {
+              com.google.cloud.run.v2.Volume m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.Volume.parser(),
+                      extensionRegistry);
+              if (volumesBuilder_ == null) {
+                ensureVolumesIsMutable();
+                volumes_.add(m);
+              } else {
+                volumesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 146
+            case 160: {
+              executionEnvironment_ = input.readEnum();
+
+              break;
+            } // case 160
+            case 170: {
+              encryptionKey_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 170
+            case 240: {
+              reconciling_ = input.readBool();
+
+              break;
+            } // case 240
+            case 250: {
+              com.google.cloud.run.v2.Condition m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.Condition.parser(),
+                      extensionRegistry);
+              if (conditionsBuilder_ == null) {
+                ensureConditionsIsMutable();
+                conditions_.add(m);
+              } else {
+                conditionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 250
+            case 256: {
+              observedGeneration_ = input.readInt64();
+
+              break;
+            } // case 256
+            case 266: {
+              logUri_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 266
+            case 272: {
+              maxInstanceRequestConcurrency_ = input.readInt32();
+
+              break;
+            } // case 272
+            case 794: {
+              etag_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 794
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
+          } // switch (tag)
+        } // while (!done)
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.unwrapIOException();
+      } finally {
+        onChanged();
+      } // finally
+      return this;
+    }
+    private int bitField0_;
 
     private java.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; @@ -2556,21 +2397,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 { @@ -2578,61 +2418,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; @@ -2640,21 +2473,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; @@ -2663,22 +2494,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 { @@ -2686,80 +2516,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 @@ -2767,58 +2587,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(); @@ -2830,8 +2645,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
@@ -2846,22 +2659,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2877,12 +2690,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
@@ -2898,17 +2710,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2924,11 +2735,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2936,12 +2748,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
@@ -2956,21 +2767,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2985,20 +2798,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -3013,29 +2825,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();
@@ -3047,30 +2860,28 @@ public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
-     *
-     *
      * 
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ + @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -3078,12 +2889,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.
      * 
@@ -3091,17 +2901,16 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override + public java.lang.String getAnnotationsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -3109,11 +2918,12 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3121,118 +2931,102 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableAnnotations().getMutableMap().put(key, value); + internalGetMutableAnnotations().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3248,17 +3042,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(); @@ -3269,21 +3060,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; } @@ -3295,15 +3082,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) { @@ -3317,64 +3100,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_; @@ -3382,58 +3149,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) { @@ -3449,17 +3197,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(); @@ -3470,21 +3215,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; } @@ -3496,15 +3237,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) { @@ -3518,64 +3255,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_; @@ -3583,61 +3304,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) { @@ -3653,18 +3355,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(); @@ -3675,22 +3374,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; } @@ -3702,16 +3397,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) { @@ -3725,67 +3416,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_; @@ -3793,64 +3468,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) { @@ -3866,19 +3522,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(); @@ -3889,23 +3542,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; } @@ -3917,17 +3566,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) { @@ -3941,70 +3586,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_; @@ -4012,8 +3641,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
@@ -4022,16 +3649,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
@@ -4040,19 +3663,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
@@ -4061,7 +3681,6 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return The launchStage. */ @java.lang.Override @@ -4071,8 +3690,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
@@ -4081,7 +3698,6 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 10; - * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -4089,14 +3705,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
@@ -4105,11 +3719,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; @@ -4117,22 +3730,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; @@ -4141,23 +3750,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 { @@ -4165,67 +3771,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; @@ -4233,47 +3826,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.
      * 
@@ -4294,15 +3874,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(); @@ -4313,8 +3892,6 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builde return this; } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4325,9 +3902,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; } @@ -4339,8 +3914,6 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4359,8 +3932,6 @@ public Builder clearScaling() { return this; } /** - * - * *
      * Scaling settings for this revision.
      * 
@@ -4368,13 +3939,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.
      * 
@@ -4385,14 +3954,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.
      * 
@@ -4400,17 +3966,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_; @@ -4418,49 +3981,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.
@@ -4482,8 +4032,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.
@@ -4491,7 +4039,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();
@@ -4502,8 +4051,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.
@@ -4515,9 +4062,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;
         }
@@ -4529,8 +4074,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.
@@ -4550,8 +4093,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.
@@ -4560,13 +4101,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.
@@ -4578,14 +4117,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.
@@ -4594,32 +4130,26 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.VpcAccess,
-            com.google.cloud.run.v2.VpcAccess.Builder,
-            com.google.cloud.run.v2.VpcAccessOrBuilder>
+        com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> 
         getVpcAccessFieldBuilder() {
       if (vpcAccessBuilder_ == null) {
-        vpcAccessBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.VpcAccess,
-                com.google.cloud.run.v2.VpcAccess.Builder,
-                com.google.cloud.run.v2.VpcAccessOrBuilder>(
-                getVpcAccess(), getParentForChildren(), isClean());
+        vpcAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder>(
+                getVpcAccess(),
+                getParentForChildren(),
+                isClean());
         vpcAccess_ = null;
       }
       return vpcAccessBuilder_;
     }
 
-    private int maxInstanceRequestConcurrency_;
+    private int maxInstanceRequestConcurrency_ ;
     /**
-     *
-     *
      * 
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; - * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -4627,36 +4157,30 @@ public int getMaxInstanceRequestConcurrency() { return maxInstanceRequestConcurrency_; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; - * * @param value The maxInstanceRequestConcurrency to set. * @return This builder for chaining. */ public Builder setMaxInstanceRequestConcurrency(int value) { - + maxInstanceRequestConcurrency_ = value; onChanged(); return this; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; - * * @return This builder for chaining. */ public Builder clearMaxInstanceRequestConcurrency() { - + maxInstanceRequestConcurrency_ = 0; onChanged(); return this; @@ -4664,33 +4188,24 @@ public Builder clearMaxInstanceRequestConcurrency() { private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - timeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 15; - * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 15; - * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -4701,8 +4216,6 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4723,15 +4236,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(); @@ -4742,8 +4254,6 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4754,7 +4264,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; } @@ -4766,8 +4276,6 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4786,8 +4294,6 @@ public Builder clearTimeout() { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4795,13 +4301,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.
      * 
@@ -4812,12 +4316,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.
      * 
@@ -4825,17 +4328,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_; @@ -4843,8 +4343,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
@@ -4852,13 +4350,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; @@ -4867,8 +4365,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
@@ -4876,14 +4372,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 { @@ -4891,8 +4388,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
@@ -4900,22 +4395,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
@@ -4923,18 +4416,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
@@ -4942,40 +4432,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.
@@ -4991,8 +4475,6 @@ public java.util.List getContainersList() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5008,8 +4490,6 @@ public int getContainersCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5025,8 +4505,6 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5034,7 +4512,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();
@@ -5048,8 +4527,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.
@@ -5069,8 +4546,6 @@ public Builder setContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5092,8 +4567,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.
@@ -5101,7 +4574,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();
@@ -5115,8 +4589,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.
@@ -5124,7 +4596,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());
@@ -5135,8 +4608,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.
@@ -5156,8 +4627,6 @@ public Builder addContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5169,7 +4638,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);
@@ -5177,8 +4647,6 @@ public Builder addAllContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5197,8 +4665,6 @@ public Builder clearContainers() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5217,8 +4683,6 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5226,12 +4690,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.
@@ -5239,16 +4702,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.
@@ -5256,8 +4717,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 {
@@ -5265,8 +4726,6 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -5275,12 +4734,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.
@@ -5288,13 +4745,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.
@@ -5302,46 +4758,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.
      * 
@@ -5356,8 +4804,6 @@ public java.util.List getVolumesList() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5372,8 +4818,6 @@ public int getVolumesCount() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5388,15 +4832,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(); @@ -5410,15 +4853,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()); @@ -5429,8 +4871,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.
      * 
@@ -5451,15 +4891,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(); @@ -5473,15 +4912,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()); @@ -5492,15 +4930,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()); @@ -5511,8 +4948,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.
      * 
@@ -5523,7 +4958,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); @@ -5531,8 +4967,6 @@ public Builder addAllVolumes( return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5550,8 +4984,6 @@ public Builder clearVolumes() { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5569,44 +5001,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 { @@ -5614,8 +5041,6 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -5623,47 +5048,42 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { * repeated .google.cloud.run.v2.Volume volumes = 18; */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder() - .addBuilder(com.google.cloud.run.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder().addBuilder( + com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { - return getVolumesFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.Volume.getDefaultInstance()); + public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( + int index) { + return getVolumesFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public java.util.List getVolumesBuilderList() { + public java.util.List + getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, - com.google.cloud.run.v2.Volume.Builder, - com.google.cloud.run.v2.VolumeOrBuilder> + com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, - com.google.cloud.run.v2.Volume.Builder, - com.google.cloud.run.v2.VolumeOrBuilder>( - volumes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder>( + volumes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); volumes_ = null; } return volumesBuilder_; @@ -5671,65 +5091,51 @@ public java.util.List getVolumesBuilderL private int executionEnvironment_ = 0; /** - * - * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override - public int getExecutionEnvironmentValue() { + @java.lang.Override public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** - * - * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @param value The enum numeric value on the wire for executionEnvironment to set. * @return This builder for chaining. */ public Builder setExecutionEnvironmentValue(int value) { - + executionEnvironment_ = value; onChanged(); return this; } /** - * - * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The executionEnvironment. */ @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = - com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } /** - * - * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @param value The executionEnvironment to set. * @return This builder for chaining. */ @@ -5737,24 +5143,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; @@ -5762,8 +5165,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
@@ -5771,13 +5172,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; @@ -5786,8 +5187,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
@@ -5795,14 +5194,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 { @@ -5810,8 +5210,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
@@ -5819,22 +5217,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
@@ -5842,18 +5238,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
@@ -5861,25 +5254,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
@@ -5887,7 +5278,6 @@ public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) {
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -5895,8 +5285,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
@@ -5904,19 +5292,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
@@ -5924,43 +5309,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) { @@ -5970,16 +5346,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) { @@ -5989,16 +5361,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) { @@ -6008,18 +5376,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(); @@ -6033,16 +5398,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) { @@ -6056,16 +5417,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) { @@ -6081,18 +5438,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(); @@ -6106,18 +5460,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()); @@ -6128,16 +5479,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) { @@ -6151,22 +5498,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); @@ -6174,16 +5518,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) { @@ -6196,16 +5536,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) { @@ -6218,53 +5554,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 { @@ -6272,74 +5597,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
@@ -6347,7 +5657,6 @@ public java.util.List getConditionsBu
      * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ @java.lang.Override @@ -6355,8 +5664,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
@@ -6364,19 +5671,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
@@ -6384,11 +5688,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; @@ -6396,20 +5699,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; @@ -6418,21 +5719,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 { @@ -6440,61 +5740,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; @@ -6502,21 +5795,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; @@ -6525,22 +5816,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 { @@ -6548,71 +5838,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); } @@ -6622,12 +5905,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(); } @@ -6636,27 +5919,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6671,4 +5954,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Revision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java similarity index 100% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java similarity index 81% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java index 1ebeb9a331ec..946412fb15f0 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java @@ -1,97 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/revision.proto package com.google.cloud.run.v2; -public interface RevisionOrBuilder - extends +public interface RevisionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Revision) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ long getGeneration(); /** - * - * *
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -108,8 +77,6 @@ public interface RevisionOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -124,13 +91,15 @@ public interface RevisionOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -145,10 +114,9 @@ public interface RevisionOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -165,13 +133,11 @@ public interface RevisionOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -186,11 +152,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * KRM-style annotations for the resource.
    * 
@@ -199,31 +165,30 @@ java.lang.String getLabelsOrDefault( */ int getAnnotationsCount(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -232,185 +197,139 @@ java.lang.String getLabelsOrDefault( */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -419,13 +338,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** - * - * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -434,67 +350,49 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.api.LaunchStage launch_stage = 10; - * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); /** - * - * *
    * Output only. The name of the parent service.
    * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The service. */ java.lang.String getService(); /** - * - * *
    * Output only. The name of the parent service.
    * 
* - * - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for service. */ - com.google.protobuf.ByteString getServiceBytes(); + com.google.protobuf.ByteString + getServiceBytes(); /** - * - * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; - * * @return Whether the scaling field is set. */ boolean hasScaling(); /** - * - * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; - * * @return The scaling. */ com.google.cloud.run.v2.RevisionScaling getScaling(); /** - * - * *
    * Scaling settings for this revision.
    * 
@@ -504,34 +402,26 @@ java.lang.String getAnnotationsOrDefault( com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder(); /** - * - * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; - * * @return Whether the vpcAccess field is set. */ boolean hasVpcAccess(); /** - * - * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; - * * @return The vpcAccess. */ com.google.cloud.run.v2.VpcAccess getVpcAccess(); /** - * - * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -542,45 +432,34 @@ java.lang.String getAnnotationsOrDefault(
   com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder();
 
   /**
-   *
-   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 34; - * * @return The maxInstanceRequestConcurrency. */ int getMaxInstanceRequestConcurrency(); /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; - * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; - * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -590,8 +469,6 @@ java.lang.String getAnnotationsOrDefault( com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -599,13 +476,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string service_account = 16; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -613,14 +487,12 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string service_account = 16; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -628,10 +500,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  java.util.List getContainersList();
+  java.util.List 
+      getContainersList();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -641,8 +512,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -652,8 +521,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getContainersCount();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -661,10 +528,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  java.util.List getContainersOrBuilderList();
+  java.util.List 
+      getContainersOrBuilderList();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -672,21 +538,19 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index);
+  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - java.util.List getVolumesList(); + java.util.List + getVolumesList(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -695,8 +559,6 @@ java.lang.String getAnnotationsOrDefault( */ com.google.cloud.run.v2.Volume getVolumes(int index); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -705,54 +567,44 @@ java.lang.String getAnnotationsOrDefault( */ int getVolumesCount(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - java.util.List getVolumesOrBuilderList(); + java.util.List + getVolumesOrBuilderList(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index); /** - * - * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The enum numeric value on the wire for executionEnvironment. */ int getExecutionEnvironmentValue(); /** - * - * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; - * * @return The executionEnvironment. */ com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment(); /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -760,13 +612,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ java.lang.String getEncryptionKey(); /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -774,14 +623,12 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } - * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString getEncryptionKeyBytes(); + com.google.protobuf.ByteString + getEncryptionKeyBytes(); /** - * - * *
    * Output only. Indicates whether the resource's reconciliation is still in progress.
    * See comments in `Service.reconciling` for additional information on
@@ -789,80 +636,60 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.run.v2.Condition getConditions(int index); /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConditionsCount(); /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsOrBuilderList(); + java.util.List + getConditionsOrBuilderList(); /** - * - * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index); + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index); /** - * - * *
    * Output only. The generation of this Revision currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -870,60 +697,49 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ long getObservedGeneration(); /** - * - * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The logUri. */ java.lang.String getLogUri(); /** - * - * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for logUri. */ - com.google.protobuf.ByteString getLogUriBytes(); + com.google.protobuf.ByteString + getLogUriBytes(); /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java new file mode 100644 index 000000000000..1829e7d43250 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java @@ -0,0 +1,226 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/revision.proto + +package com.google.cloud.run.v2; + +public final class RevisionProto { + private RevisionProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\"google/cloud/run/v2/revision.proto\022\023go" + + "ogle.cloud.run.v2\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\035google/api/la" + + "unch_stage.proto\032\031google/api/resource.pr" + + "oto\032\030google/api/routing.proto\032#google/cl" + + "oud/run/v2/condition.proto\032!google/cloud" + + "/run/v2/k8s.min.proto\032)google/cloud/run/" + + "v2/vendor_settings.proto\032#google/longrun" + + "ning/operations.proto\032\036google/protobuf/d" + + "uration.proto\032\037google/protobuf/timestamp" + + ".proto\"G\n\022GetRevisionRequest\0221\n\004name\030\001 \001" + + "(\tB#\340A\002\372A\035\n\033run.googleapis.com/Revision\"" + + "\210\001\n\024ListRevisionsRequest\0223\n\006parent\030\001 \001(\t" + + "B#\340A\002\372A\035\022\033run.googleapis.com/Revision\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" + + "show_deleted\030\004 \001(\010\"b\n\025ListRevisionsRespo" + + "nse\0220\n\trevisions\030\001 \003(\0132\035.google.cloud.ru" + + "n.v2.Revision\022\027\n\017next_page_token\030\002 \001(\t\"o" + + "\n\025DeleteRevisionRequest\0221\n\004name\030\001 \001(\tB#\340" + + "A\002\372A\035\n\033run.googleapis.com/Revision\022\025\n\rva" + + "lidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\301\n\n\010Revi" + + "sion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A" + + "\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0229\n\006labels\030\004 \003" + + "(\0132).google.cloud.run.v2.Revision.Labels" + + "Entry\022C\n\013annotations\030\005 \003(\0132..google.clou" + + "d.run.v2.Revision.AnnotationsEntry\0224\n\013cr" + + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "expire_time\030\t \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022-\n\014launch_stage\030\n \001(\0162\027.googl" + + "e.api.LaunchStage\0223\n\007service\030\013 \001(\tB\"\340A\003\372" + + "A\034\n\032run.googleapis.com/Service\0225\n\007scalin" + + "g\030\014 \001(\0132$.google.cloud.run.v2.RevisionSc" + + "aling\0222\n\nvpc_access\030\r \001(\0132\036.google.cloud" + + ".run.v2.VpcAccess\022(\n max_instance_reques" + + "t_concurrency\030\" \001(\005\022*\n\007timeout\030\017 \001(\0132\031.g" + + "oogle.protobuf.Duration\022\027\n\017service_accou" + + "nt\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google.cl" + + "oud.run.v2.Container\022,\n\007volumes\030\022 \003(\0132\033." + + "google.cloud.run.v2.Volume\022H\n\025execution_" + + "environment\030\024 \001(\0162).google.cloud.run.v2." + + "ExecutionEnvironment\022>\n\016encryption_key\030\025" + + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" + + "oKey\022\030\n\013reconciling\030\036 \001(\010B\003\340A\003\0227\n\ncondit" + + "ions\030\037 \003(\0132\036.google.cloud.run.v2.Conditi" + + "onB\003\340A\003\022 \n\023observed_generation\030 \001(\003B\003\340A" + + "\003\022\024\n\007log_uri\030! \001(\tB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340" + + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n\033run.googleap" + + "is.com/Revision\022Oprojects/{project}/loca" + + "tions/{location}/services/{service}/revi" + + "sions/{revision}R\001\0012\205\006\n\tRevisions\022\322\001\n\013Ge" + + "tRevision\022\'.google.cloud.run.v2.GetRevis" + + "ionRequest\032\035.google.cloud.run.v2.Revisio" + + "n\"{\202\323\344\223\002:\0228/v2/{name=projects/*/location" + + "s/*/services/*/revisions/*}\212\323\344\223\002.\022,\n\004nam" + + "e\022$projects/*/locations/{location=*}/**\332" + + "A\004name\022\347\001\n\rListRevisions\022).google.cloud." + + "run.v2.ListRevisionsRequest\032*.google.clo" + + "ud.run.v2.ListRevisionsResponse\"\177\202\323\344\223\002:\022" + + "8/v2/{parent=projects/*/locations/*/serv" + + "ices/*}/revisions\212\323\344\223\0020\022.\n\006parent\022$proje" + + "cts/*/locations/{location=*}/**\332A\006parent" + + "\022\360\001\n\016DeleteRevision\022*.google.cloud.run.v" + + "2.DeleteRevisionRequest\032\035.google.longrun" + + "ning.Operation\"\222\001\202\323\344\223\002:*8/v2/{name=proje" + + "cts/*/locations/*/services/*/revisions/*" + + "}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{l" + + "ocation=*}/**\332A\004name\312A\024\n\010Revision\022\010Revis" + + "ion\032F\312A\022run.googleapis.com\322A.https://www" + + ".googleapis.com/auth/cloud-platformBb\n\027c" + + "om.google.cloud.run.v2B\rRevisionProtoP\001Z" + + "6google.golang.org/genproto/googleapis/c" + + "loud/run/v2;runb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.cloud.run.v2.ConditionProto.getDescriptor(), + com.google.cloud.run.v2.K8sMinProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor, + new java.lang.String[] { "Revisions", "NextPageToken", }); + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_run_v2_Revision_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_Revision_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_descriptor, + new java.lang.String[] { "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "LaunchStage", "Service", "Scaling", "VpcAccess", "MaxInstanceRequestConcurrency", "Timeout", "ServiceAccount", "Containers", "Volumes", "ExecutionEnvironment", "EncryptionKey", "Reconciling", "Conditions", "ObservedGeneration", "LogUri", "Etag", }); + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.LaunchStageProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.K8sMinProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java similarity index 66% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java index dff47a57d3f3..48a7962b0ebf 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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; } - - 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 @@ -86,14 +65,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 @@ -102,7 +78,6 @@ public int getMaxInstanceCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -114,7 +89,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_); } @@ -131,10 +107,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -144,15 +122,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,136 +153,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -314,9 +288,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 @@ -335,8 +309,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(); @@ -347,39 +320,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; @@ -420,25 +392,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - minInstanceCount_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - maxInstanceCount_ = input.readInt32(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + minInstanceCount_ = input.readInt32(); + + break; + } // case 8 + case 16: { + maxInstanceCount_ = input.readInt32(); + + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -449,16 +418,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 @@ -466,51 +432,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 @@ -518,43 +475,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); } @@ -564,12 +515,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(); } @@ -578,27 +529,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -613,4 +564,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.RevisionScaling getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java similarity index 51% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java index 90a7a2039e0b..caca17cac017 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java similarity index 72% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java index cb4649bac6e6..314429ba7ae2 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java +++ b/owl-bot-staging/java-run/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,55 +31,52 @@ 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;
   }
-
-  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 @@ -106,30 +85,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 { @@ -138,23 +117,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_; } @@ -163,30 +143,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * KRM-style labels for the resource.
    * 
@@ -194,12 +172,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.
    * 
@@ -207,16 +184,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * KRM-style labels for the resource.
    * 
@@ -224,11 +201,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -236,24 +214,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_; } @@ -262,30 +240,28 @@ public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ + @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -293,12 +269,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.
    * 
@@ -306,17 +281,16 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 3; */ @java.lang.Override + public java.lang.String getAnnotationsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -324,11 +298,12 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 3; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -338,14 +313,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 @@ -353,25 +325,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.
    * 
@@ -386,15 +351,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 @@ -402,15 +364,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 @@ -418,8 +377,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.
@@ -435,14 +392,11 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int TIMEOUT_FIELD_NUMBER = 8;
   private com.google.protobuf.Duration timeout_;
   /**
-   *
-   *
    * 
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return Whether the timeout field is set. */ @java.lang.Override @@ -450,14 +404,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 @@ -465,8 +416,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.
    * 
@@ -481,8 +430,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
@@ -491,7 +438,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 9; - * * @return The serviceAccount. */ @java.lang.Override @@ -500,15 +446,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
@@ -517,15 +462,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 { @@ -536,8 +482,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.
@@ -550,8 +494,6 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -560,13 +502,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.
@@ -579,8 +519,6 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -593,8 +531,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.
@@ -603,15 +539,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.
    * 
@@ -623,8 +558,6 @@ public java.util.List getVolumesList() { return volumes_; } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -632,13 +565,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.
    * 
@@ -650,8 +581,6 @@ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -663,8 +592,6 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -672,51 +599,41 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * repeated .google.cloud.run.v2.Volume volumes = 11; */ @java.lang.Override - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { return volumes_.get(index); } public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 13; private int executionEnvironment_; /** - * - * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override - public int getExecutionEnvironmentValue() { + @java.lang.Override public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** - * - * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The executionEnvironment. */ - @java.lang.Override - public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { + @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = - com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 14; private volatile java.lang.Object encryptionKey_; /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -724,7 +641,6 @@ public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() {
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ @java.lang.Override @@ -733,15 +649,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
@@ -749,15 +664,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 { @@ -768,14 +684,11 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER = 15; private int maxInstanceRequestConcurrency_; /** - * - * *
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 15; - * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -784,7 +697,6 @@ public int getMaxInstanceRequestConcurrency() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -796,14 +708,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()); } @@ -822,9 +743,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(11, volumes_.get(i)); } - if (executionEnvironment_ - != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED - .getNumber()) { + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(13, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { @@ -845,56 +764,59 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, revision_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, annotations__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, labels__); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, annotations__); } if (scaling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getScaling()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getScaling()); } if (vpcAccess_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVpcAccess()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getVpcAccess()); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); } for (int i = 0; i < containers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, containers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, containers_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, volumes_.get(i)); } - if (executionEnvironment_ - != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, executionEnvironment_); + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, encryptionKey_); } if (maxInstanceRequestConcurrency_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 15, maxInstanceRequestConcurrency_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(15, maxInstanceRequestConcurrency_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -904,35 +826,45 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.RevisionTemplate)) { return super.equals(obj); } com.google.cloud.run.v2.RevisionTemplate other = (com.google.cloud.run.v2.RevisionTemplate) obj; - if (!getRevision().equals(other.getRevision())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getRevision() + .equals(other.getRevision())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; if (hasScaling() != other.hasScaling()) return false; if (hasScaling()) { - if (!getScaling().equals(other.getScaling())) return false; + if (!getScaling() + .equals(other.getScaling())) return false; } if (hasVpcAccess() != other.hasVpcAccess()) return false; if (hasVpcAccess()) { - if (!getVpcAccess().equals(other.getVpcAccess())) return false; + if (!getVpcAccess() + .equals(other.getVpcAccess())) return false; } if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout().equals(other.getTimeout())) return false; - } - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getContainersList().equals(other.getContainersList())) return false; - if (!getVolumesList().equals(other.getVolumesList())) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getContainersList() + .equals(other.getContainersList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; - if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency()) - return false; + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; + if (getMaxInstanceRequestConcurrency() + != other.getMaxInstanceRequestConcurrency()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -987,104 +919,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.
@@ -1092,56 +1017,59 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1193,9 +1121,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
@@ -1214,8 +1142,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();
@@ -1267,39 +1194,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;
@@ -1312,8 +1238,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());
       }
@@ -1345,10 +1273,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_);
           }
@@ -1372,10 +1299,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_);
           }
@@ -1417,108 +1343,100 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                revision_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getScalingFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 34
-            case 50:
-              {
-                input.readMessage(getVpcAccessFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 50
-            case 66:
-              {
-                input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 66
-            case 74:
-              {
-                serviceAccount_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 74
-            case 82:
-              {
-                com.google.cloud.run.v2.Container m =
-                    input.readMessage(
-                        com.google.cloud.run.v2.Container.parser(), extensionRegistry);
-                if (containersBuilder_ == null) {
-                  ensureContainersIsMutable();
-                  containers_.add(m);
-                } else {
-                  containersBuilder_.addMessage(m);
-                }
-                break;
-              } // case 82
-            case 90:
-              {
-                com.google.cloud.run.v2.Volume m =
-                    input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry);
-                if (volumesBuilder_ == null) {
-                  ensureVolumesIsMutable();
-                  volumes_.add(m);
-                } else {
-                  volumesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 90
-            case 104:
-              {
-                executionEnvironment_ = input.readEnum();
-
-                break;
-              } // case 104
-            case 114:
-              {
-                encryptionKey_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 114
-            case 120:
-              {
-                maxInstanceRequestConcurrency_ = input.readInt32();
-
-                break;
-              } // case 120
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              revision_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              break;
+            } // case 18
+            case 26: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getScalingFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 34
+            case 50: {
+              input.readMessage(
+                  getVpcAccessFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 50
+            case 66: {
+              input.readMessage(
+                  getTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 66
+            case 74: {
+              serviceAccount_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 74
+            case 82: {
+              com.google.cloud.run.v2.Container m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.Container.parser(),
+                      extensionRegistry);
+              if (containersBuilder_ == null) {
+                ensureContainersIsMutable();
+                containers_.add(m);
+              } else {
+                containersBuilder_.addMessage(m);
+              }
+              break;
+            } // case 82
+            case 90: {
+              com.google.cloud.run.v2.Volume m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.Volume.parser(),
+                      extensionRegistry);
+              if (volumesBuilder_ == null) {
+                ensureVolumesIsMutable();
+                volumes_.add(m);
+              } else {
+                volumesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 90
+            case 104: {
+              executionEnvironment_ = input.readEnum();
+
+              break;
+            } // case 104
+            case 114: {
+              encryptionKey_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 114
+            case 120: {
+              maxInstanceRequestConcurrency_ = input.readInt32();
+
+              break;
+            } // case 120
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1528,26 +1446,23 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1556,22 +1471,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 { @@ -1579,84 +1493,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(); @@ -1668,30 +1576,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * KRM-style labels for the resource.
      * 
@@ -1699,12 +1605,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.
      * 
@@ -1712,17 +1617,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * KRM-style labels for the resource.
      * 
@@ -1730,11 +1634,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1742,82 +1647,83 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged(); - ; + internalGetMutableAnnotations() { + onChanged();; if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -1829,30 +1735,28 @@ public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ + @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -1860,12 +1764,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.
      * 
@@ -1873,17 +1776,16 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 3; */ @java.lang.Override + public java.lang.String getAnnotationsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
@@ -1891,11 +1793,12 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 3; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1903,107 +1806,97 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableAnnotations().getMutableMap().put(key, value); + internalGetMutableAnnotations().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); return this; } private com.google.cloud.run.v2.RevisionScaling scaling_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, - com.google.cloud.run.v2.RevisionScaling.Builder, - com.google.cloud.run.v2.RevisionScalingOrBuilder> - scalingBuilder_; + com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder> scalingBuilder_; /** - * - * *
      * Scaling settings for this Revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; - * * @return Whether the scaling field is set. */ public boolean hasScaling() { return scalingBuilder_ != null || scaling_ != null; } /** - * - * *
      * Scaling settings for this Revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; - * * @return The scaling. */ public com.google.cloud.run.v2.RevisionScaling getScaling() { if (scalingBuilder_ == null) { - return scaling_ == null - ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() - : scaling_; + return scaling_ == null ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; } else { return scalingBuilder_.getMessage(); } } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2024,15 +1917,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(); @@ -2043,8 +1935,6 @@ public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builde return this; } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2055,9 +1945,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; } @@ -2069,8 +1957,6 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2089,8 +1975,6 @@ public Builder clearScaling() { return this; } /** - * - * *
      * Scaling settings for this Revision.
      * 
@@ -2098,13 +1982,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.
      * 
@@ -2115,14 +1997,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.
      * 
@@ -2130,17 +2009,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_; @@ -2148,49 +2024,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.
@@ -2212,8 +2075,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.
@@ -2221,7 +2082,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();
@@ -2232,8 +2094,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.
@@ -2245,9 +2105,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;
         }
@@ -2259,8 +2117,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.
@@ -2280,8 +2136,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.
@@ -2290,13 +2144,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.
@@ -2308,14 +2160,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.
@@ -2324,17 +2173,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.VpcAccess,
-            com.google.cloud.run.v2.VpcAccess.Builder,
-            com.google.cloud.run.v2.VpcAccessOrBuilder>
+        com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> 
         getVpcAccessFieldBuilder() {
       if (vpcAccessBuilder_ == null) {
-        vpcAccessBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.run.v2.VpcAccess,
-                com.google.cloud.run.v2.VpcAccess.Builder,
-                com.google.cloud.run.v2.VpcAccessOrBuilder>(
-                getVpcAccess(), getParentForChildren(), isClean());
+        vpcAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder>(
+                getVpcAccess(),
+                getParentForChildren(),
+                isClean());
         vpcAccess_ = null;
       }
       return vpcAccessBuilder_;
@@ -2342,33 +2188,24 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
 
     private com.google.protobuf.Duration timeout_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        timeoutBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_;
     /**
-     *
-     *
      * 
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 8; - * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 8; - * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -2379,8 +2216,6 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2401,15 +2236,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(); @@ -2420,8 +2254,6 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2432,7 +2264,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; } @@ -2444,8 +2276,6 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2464,8 +2294,6 @@ public Builder clearTimeout() { return this; } /** - * - * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2473,13 +2301,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.
      * 
@@ -2490,12 +2316,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.
      * 
@@ -2503,17 +2328,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_; @@ -2521,8 +2343,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
@@ -2531,13 +2351,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; @@ -2546,8 +2366,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
@@ -2556,14 +2374,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 { @@ -2571,8 +2390,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
@@ -2581,22 +2398,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
@@ -2605,18 +2420,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
@@ -2625,40 +2437,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.
@@ -2674,8 +2480,6 @@ public java.util.List getContainersList() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2691,8 +2495,6 @@ public int getContainersCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2708,8 +2510,6 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2717,7 +2517,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();
@@ -2731,8 +2532,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.
@@ -2752,8 +2551,6 @@ public Builder setContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2775,8 +2572,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.
@@ -2784,7 +2579,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();
@@ -2798,8 +2594,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.
@@ -2807,7 +2601,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());
@@ -2818,8 +2613,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.
@@ -2839,8 +2632,6 @@ public Builder addContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2852,7 +2643,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);
@@ -2860,8 +2652,6 @@ public Builder addAllContainers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2880,8 +2670,6 @@ public Builder clearContainers() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2900,8 +2688,6 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2909,12 +2695,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.
@@ -2922,16 +2707,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.
@@ -2939,8 +2722,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 {
@@ -2948,8 +2731,6 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2958,12 +2739,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.
@@ -2971,13 +2750,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.
@@ -2985,46 +2763,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.
      * 
@@ -3039,8 +2809,6 @@ public java.util.List getVolumesList() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3055,8 +2823,6 @@ public int getVolumesCount() { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3071,15 +2837,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(); @@ -3093,15 +2858,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()); @@ -3112,8 +2876,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.
      * 
@@ -3134,15 +2896,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(); @@ -3156,15 +2917,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()); @@ -3175,15 +2935,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()); @@ -3194,8 +2953,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.
      * 
@@ -3206,7 +2963,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); @@ -3214,8 +2972,6 @@ public Builder addAllVolumes( return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3233,8 +2989,6 @@ public Builder clearVolumes() { return this; } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3252,44 +3006,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 { @@ -3297,8 +3046,6 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { } } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
@@ -3306,47 +3053,42 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { * repeated .google.cloud.run.v2.Volume volumes = 11; */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder() - .addBuilder(com.google.cloud.run.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder().addBuilder( + com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { - return getVolumesFieldBuilder() - .addBuilder(index, com.google.cloud.run.v2.Volume.getDefaultInstance()); + public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( + int index) { + return getVolumesFieldBuilder().addBuilder( + index, com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** - * - * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public java.util.List getVolumesBuilderList() { + public java.util.List + getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, - com.google.cloud.run.v2.Volume.Builder, - com.google.cloud.run.v2.VolumeOrBuilder> + com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, - com.google.cloud.run.v2.Volume.Builder, - com.google.cloud.run.v2.VolumeOrBuilder>( - volumes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder>( + volumes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); volumes_ = null; } return volumesBuilder_; @@ -3354,65 +3096,51 @@ public java.util.List getVolumesBuilderL private int executionEnvironment_ = 0; /** - * - * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override - public int getExecutionEnvironmentValue() { + @java.lang.Override public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** - * - * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @param value The enum numeric value on the wire for executionEnvironment to set. * @return This builder for chaining. */ public Builder setExecutionEnvironmentValue(int value) { - + executionEnvironment_ = value; onChanged(); return this; } /** - * - * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The executionEnvironment. */ @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = - com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } /** - * - * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @param value The executionEnvironment to set. * @return This builder for chaining. */ @@ -3420,24 +3148,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; @@ -3445,8 +3170,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
@@ -3454,13 +3177,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; @@ -3469,8 +3192,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
@@ -3478,14 +3199,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 { @@ -3493,8 +3215,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
@@ -3502,22 +3222,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
@@ -3525,18 +3243,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
@@ -3544,31 +3259,28 @@ public Builder clearEncryptionKey() {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for encryptionKey to set. * @return This builder for chaining. */ - public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) { + public Builder setEncryptionKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encryptionKey_ = value; onChanged(); return this; } - private int maxInstanceRequestConcurrency_; + private int maxInstanceRequestConcurrency_ ; /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; - * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -3576,43 +3288,37 @@ public int getMaxInstanceRequestConcurrency() { return maxInstanceRequestConcurrency_; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; - * * @param value The maxInstanceRequestConcurrency to set. * @return This builder for chaining. */ public Builder setMaxInstanceRequestConcurrency(int value) { - + maxInstanceRequestConcurrency_ = value; onChanged(); return this; } /** - * - * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; - * * @return This builder for chaining. */ public Builder clearMaxInstanceRequestConcurrency() { - + maxInstanceRequestConcurrency_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3622,12 +3328,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(); } @@ -3636,27 +3342,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3671,4 +3377,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.RevisionTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java similarity index 80% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java index 15f01a284848..ababa87c2725 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/revision_template.proto package com.google.cloud.run.v2; -public interface RevisionTemplateOrBuilder - extends +public interface RevisionTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.RevisionTemplate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @return The revision. */ java.lang.String getRevision(); /** - * - * *
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for revision. */ - com.google.protobuf.ByteString getRevisionBytes(); + com.google.protobuf.ByteString + getRevisionBytes(); /** - * - * *
    * KRM-style labels for the resource.
    * 
@@ -61,31 +38,30 @@ public interface RevisionTemplateOrBuilder */ int getLabelsCount(); /** - * - * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * KRM-style labels for the resource.
    * 
@@ -94,24 +70,22 @@ public interface RevisionTemplateOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -120,31 +94,30 @@ java.lang.String getLabelsOrDefault( */ int getAnnotationsCount(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * KRM-style annotations for the resource.
    * 
@@ -153,48 +126,40 @@ java.lang.String getLabelsOrDefault( */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; - * * @return Whether the scaling field is set. */ boolean hasScaling(); /** - * - * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; - * * @return The scaling. */ com.google.cloud.run.v2.RevisionScaling getScaling(); /** - * - * *
    * Scaling settings for this Revision.
    * 
@@ -204,34 +169,26 @@ java.lang.String getAnnotationsOrDefault( com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder(); /** - * - * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; - * * @return Whether the vpcAccess field is set. */ boolean hasVpcAccess(); /** - * - * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; - * * @return The vpcAccess. */ com.google.cloud.run.v2.VpcAccess getVpcAccess(); /** - * - * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -242,32 +199,24 @@ java.lang.String getAnnotationsOrDefault(
   com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder();
 
   /**
-   *
-   *
    * 
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; - * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** - * - * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -277,8 +226,6 @@ java.lang.String getAnnotationsOrDefault( com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -287,13 +234,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string service_account = 9; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -302,14 +246,12 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string service_account = 9; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -317,10 +259,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  java.util.List getContainersList();
+  java.util.List 
+      getContainersList();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -330,8 +271,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -341,8 +280,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getContainersCount();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -350,10 +287,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  java.util.List getContainersOrBuilderList();
+  java.util.List 
+      getContainersOrBuilderList();
   /**
-   *
-   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -361,21 +297,19 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index);
+  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - java.util.List getVolumesList(); + java.util.List + getVolumesList(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -384,8 +318,6 @@ java.lang.String getAnnotationsOrDefault( */ com.google.cloud.run.v2.Volume getVolumes(int index); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
@@ -394,54 +326,44 @@ java.lang.String getAnnotationsOrDefault( */ int getVolumesCount(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - java.util.List getVolumesOrBuilderList(); + java.util.List + getVolumesOrBuilderList(); /** - * - * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index); /** - * - * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The enum numeric value on the wire for executionEnvironment. */ int getExecutionEnvironmentValue(); /** - * - * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; - * * @return The executionEnvironment. */ com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment(); /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -449,13 +371,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The encryptionKey. */ java.lang.String getEncryptionKey(); /** - * - * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -463,20 +382,17 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } - * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString getEncryptionKeyBytes(); + com.google.protobuf.ByteString + getEncryptionKeyBytes(); /** - * - * *
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 15; - * * @return The maxInstanceRequestConcurrency. */ int getMaxInstanceRequestConcurrency(); diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java new file mode 100644 index 000000000000..4b86c8be11c4 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java @@ -0,0 +1,108 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/revision_template.proto + +package com.google.cloud.run.v2; + +public final class RevisionTemplateProto { + private RevisionTemplateProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/run/v2/revision_template." + + "proto\022\023google.cloud.run.v2\032\031google/api/r" + + "esource.proto\032!google/cloud/run/v2/k8s.m" + + "in.proto\032)google/cloud/run/v2/vendor_set" + + "tings.proto\032\036google/protobuf/duration.pr" + + "oto\"\377\005\n\020RevisionTemplate\0222\n\010revision\030\001 \001" + + "(\tB \372A\035\n\033run.googleapis.com/Revision\022A\n\006" + + "labels\030\002 \003(\01321.google.cloud.run.v2.Revis" + + "ionTemplate.LabelsEntry\022K\n\013annotations\030\003" + + " \003(\01326.google.cloud.run.v2.RevisionTempl" + + "ate.AnnotationsEntry\0225\n\007scaling\030\004 \001(\0132$." + + "google.cloud.run.v2.RevisionScaling\0222\n\nv" + + "pc_access\030\006 \001(\0132\036.google.cloud.run.v2.Vp" + + "cAccess\022*\n\007timeout\030\010 \001(\0132\031.google.protob" + + "uf.Duration\022\027\n\017service_account\030\t \001(\t\0222\n\n" + + "containers\030\n \003(\0132\036.google.cloud.run.v2.C" + + "ontainer\022,\n\007volumes\030\013 \003(\0132\033.google.cloud" + + ".run.v2.Volume\022H\n\025execution_environment\030" + + "\r \001(\0162).google.cloud.run.v2.ExecutionEnv" + + "ironment\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\022(\n max_" + + "instance_request_concurrency\030\017 \001(\005\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001Bj\n\027com.google.cloud.run.v2" + + "B\025RevisionTemplateProtoP\001Z6google.golang" + + ".org/genproto/googleapis/cloud/run/v2;ru" + + "nb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.run.v2.K8sMinProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor, + new java.lang.String[] { "Revision", "Labels", "Annotations", "Scaling", "VpcAccess", "Timeout", "ServiceAccount", "Containers", "Volumes", "ExecutionEnvironment", "EncryptionKey", "MaxInstanceRequestConcurrency", }); + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.run.v2.K8sMinProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.java new file mode 100644 index 000000000000..38575aca8db6 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.java @@ -0,0 +1,838 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message to create a new Execution of a Job.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.RunJobRequest} + */ +public final class RunJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.RunJobRequest) + RunJobRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use RunJobRequest.newBuilder() to construct. + private RunJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RunJobRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RunJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_RunJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.RunJobRequest.class, com.google.cloud.run.v2.RunJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The full name of the Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The full name of the Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getValidateOnly() { + return validateOnly_; + } + + 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 + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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() { + 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); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.RunJobRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.RunJobRequest other = (com.google.cloud.run.v2.RunJobRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + 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 = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.RunJobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.RunJobRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.RunJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.RunJobRequest parseFrom( + com.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.RunJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.RunJobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.RunJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.RunJobRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.RunJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.RunJobRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.RunJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.RunJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.RunJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message to create a new Execution of a Job.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.RunJobRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.RunJobRequest) + com.google.cloud.run.v2.RunJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_RunJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.RunJobRequest.class, com.google.cloud.run.v2.RunJobRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.RunJobRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + validateOnly_ = false; + + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_RunJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.RunJobRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.RunJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.RunJobRequest build() { + com.google.cloud.run.v2.RunJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.RunJobRequest buildPartial() { + com.google.cloud.run.v2.RunJobRequest result = new com.google.cloud.run.v2.RunJobRequest(this); + result.name_ = name_; + result.validateOnly_ = validateOnly_; + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.RunJobRequest) { + return mergeFrom((com.google.cloud.run.v2.RunJobRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.RunJobRequest other) { + if (other == com.google.cloud.run.v2.RunJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The full name of the Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * 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 Job.
+     * Format: projects/{project}/locations/{location}/jobs/{job}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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 + 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; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) { + if (value == null) { + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.RunJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.RunJobRequest) + private static final com.google.cloud.run.v2.RunJobRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.RunJobRequest(); + } + + public static com.google.cloud.run.v2.RunJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.RunJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.java new file mode 100644 index 000000000000..002425df9973 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public interface RunJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.RunJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full name of the Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * 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 Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + 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(); +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java similarity index 66% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java index ce3275006334..fc66d3b7b70d 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java +++ b/owl-bot-staging/java-run/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,35 +26,32 @@ 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; } - - 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.
@@ -80,10 +59,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 @@ -92,15 +68,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.
@@ -108,18 +83,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 { @@ -130,15 +104,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 @@ -147,30 +118,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 { @@ -179,7 +150,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +161,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_); } @@ -221,16 +192,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,136 +223,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -392,9 +358,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 @@ -413,8 +379,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(); @@ -425,39 +390,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; @@ -500,25 +464,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - secret_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - version_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + secret_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -531,8 +492,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.
@@ -540,16 +499,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; @@ -558,8 +515,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.
@@ -567,17 +522,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 { @@ -585,8 +539,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.
@@ -594,25 +546,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.
@@ -620,21 +568,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.
@@ -642,19 +585,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; @@ -662,21 +603,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; @@ -685,22 +624,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 { @@ -708,71 +646,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); } @@ -782,12 +713,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(); } @@ -796,27 +727,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.SecretKeySelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java similarity index 57% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java index fa3ba53dcb18..a226a5b59381 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java similarity index 79% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java index 0040d636d878..c634677aa12e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java +++ b/owl-bot-staging/java-run/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,35 +28,32 @@ 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;
   }
-
-  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.
@@ -83,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The secret. */ @java.lang.Override @@ -92,15 +70,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.
@@ -109,15 +86,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 { @@ -128,8 +106,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.
@@ -145,8 +121,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.
@@ -158,13 +132,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.
@@ -180,8 +152,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.
@@ -197,8 +167,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.
@@ -210,15 +178,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 0444.
@@ -238,7 +205,6 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int inde
    * 
* * int32 default_mode = 3; - * * @return The defaultMode. */ @java.lang.Override @@ -247,7 +213,6 @@ public int getDefaultMode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +224,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_); } @@ -282,10 +248,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -295,17 +263,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; - - if (!getSecret().equals(other.getSecret())) return false; - if (!getItemsList().equals(other.getItemsList())) return false; - if (getDefaultMode() != other.getDefaultMode()) return false; + 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -330,104 +300,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
@@ -436,32 +399,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -480,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_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
@@ -501,8 +465,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) {
@@ -523,39 +486,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;
@@ -586,10 +548,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_);
           }
@@ -624,38 +585,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                secret_ = input.readStringRequireUtf8();
+            case 10: {
+              secret_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.run.v2.VersionToPath m =
-                    input.readMessage(
-                        com.google.cloud.run.v2.VersionToPath.parser(), extensionRegistry);
-                if (itemsBuilder_ == null) {
-                  ensureItemsIsMutable();
-                  items_.add(m);
-                } else {
-                  itemsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 24:
-              {
-                defaultMode_ = input.readInt32();
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.run.v2.VersionToPath m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.VersionToPath.parser(),
+                      extensionRegistry);
+              if (itemsBuilder_ == null) {
+                ensureItemsIsMutable();
+                items_.add(m);
+              } else {
+                itemsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 24: {
+              defaultMode_ = input.readInt32();
 
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -665,13 +623,10 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -680,13 +635,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; @@ -695,8 +650,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.
@@ -705,14 +658,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 { @@ -720,8 +674,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.
@@ -730,22 +682,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.
@@ -754,18 +704,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.
@@ -774,40 +721,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.
@@ -826,8 +767,6 @@ public java.util.List getItemsList() {
       }
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -846,8 +785,6 @@ public int getItemsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -866,8 +803,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.
@@ -878,7 +813,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();
@@ -892,8 +828,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.
@@ -916,8 +850,6 @@ public Builder setItems(
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -942,8 +874,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.
@@ -954,7 +884,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();
@@ -968,8 +899,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.
@@ -980,7 +909,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());
@@ -991,8 +921,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.
@@ -1015,8 +943,6 @@ public Builder addItems(
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1031,7 +957,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);
@@ -1039,8 +966,6 @@ public Builder addAllItems(
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1062,8 +987,6 @@ public Builder clearItems() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1085,8 +1008,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.
@@ -1097,12 +1018,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.
@@ -1113,16 +1033,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.
@@ -1133,8 +1051,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 {
@@ -1142,8 +1060,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.
@@ -1155,12 +1071,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.
@@ -1171,13 +1085,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.
@@ -1188,31 +1101,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 0444.
@@ -1232,7 +1141,6 @@ public java.util.List getItemsBui
      * 
* * int32 default_mode = 3; - * * @return The defaultMode. */ @java.lang.Override @@ -1240,8 +1148,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 0444.
@@ -1261,19 +1167,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 0444.
@@ -1293,18 +1196,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); } @@ -1314,12 +1216,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(); } @@ -1328,27 +1230,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1363,4 +1265,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.SecretVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java similarity index 83% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java index 26630a58b7d5..fcaab33a1590 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java +++ b/owl-bot-staging/java-run/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 0444.
@@ -147,7 +117,6 @@ public interface SecretVolumeSourceOrBuilder
    * 
* * int32 default_mode = 3; - * * @return The defaultMode. */ int getDefaultMode(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java similarity index 72% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java index 40788ebb49b0..1de1e0fa8e22 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java +++ b/owl-bot-staging/java-run/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,38 +44,39 @@ 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;
   }
-
-  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);
   }
@@ -101,8 +84,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
@@ -112,7 +93,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -121,15 +101,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
@@ -139,15 +118,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 { @@ -158,15 +138,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 @@ -175,30 +152,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 { @@ -209,15 +186,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 @@ -226,30 +200,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 { @@ -260,8 +234,6 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int GENERATION_FIELD_NUMBER = 4; private long generation_; /** - * - * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
@@ -270,7 +242,6 @@ public com.google.protobuf.ByteString getUidBytes() {
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ @java.lang.Override @@ -279,23 +250,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_; } @@ -304,8 +276,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -321,22 +291,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 5;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -353,12 +323,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.
@@ -375,16 +344,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 5;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -401,11 +370,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 5;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -413,24 +383,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_;
   }
@@ -439,8 +409,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
@@ -452,22 +420,22 @@ public int getAnnotationsCount() {
    *
    * map<string, string> annotations = 6;
    */
+
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /** Use {@link #getAnnotationsMap()} instead. */
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -480,12 +448,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
@@ -498,17 +465,16 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 6;
    */
   @java.lang.Override
+
   public java.lang.String getAnnotationsOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -521,11 +487,12 @@ public java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 6;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -535,15 +502,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 @@ -551,15 +514,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 @@ -567,14 +526,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() { @@ -584,15 +540,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 @@ -600,15 +552,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 @@ -616,14 +564,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() { @@ -633,15 +578,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 @@ -649,15 +590,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 @@ -665,14 +602,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() { @@ -682,16 +616,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 @@ -699,16 +629,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 @@ -716,15 +642,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() { @@ -734,14 +657,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 @@ -750,29 +670,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 { @@ -783,14 +703,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 @@ -799,29 +716,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 { @@ -832,14 +749,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 @@ -848,29 +762,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 { @@ -881,14 +795,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 @@ -897,29 +808,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 { @@ -930,8 +841,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
@@ -939,16 +848,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
@@ -956,22 +861,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).
@@ -980,16 +880,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).
@@ -998,11 +894,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; @@ -1011,14 +905,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 @@ -1026,25 +917,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.
    * 
@@ -1059,16 +943,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 @@ -1076,34 +955,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() { @@ -1113,8 +981,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
@@ -1128,8 +994,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
@@ -1139,13 +1003,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
@@ -1159,8 +1021,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
@@ -1174,8 +1034,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
@@ -1185,15 +1043,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
@@ -1203,7 +1060,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 @@ -1214,8 +1070,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
@@ -1223,10 +1077,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 @@ -1234,8 +1085,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
@@ -1243,21 +1092,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
@@ -1265,9 +1107,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() { @@ -1277,8 +1117,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
@@ -1286,17 +1124,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
@@ -1304,18 +1138,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
@@ -1323,17 +1153,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
@@ -1341,17 +1167,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
@@ -1359,30 +1181,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 @@ -1391,33 +1207,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 { @@ -1428,17 +1242,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 @@ -1447,32 +1256,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 { @@ -1483,86 +1290,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( @@ -1573,14 +1360,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 @@ -1589,29 +1373,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 { @@ -1622,8 +1406,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.
@@ -1647,7 +1429,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1658,15 +1439,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 @@ -1675,30 +1453,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1707,7 +1485,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1719,7 +1496,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_); } @@ -1732,10 +1510,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()); } @@ -1760,8 +1546,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()) { @@ -1822,39 +1607,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_); @@ -1868,31 +1658,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_); @@ -1901,13 +1697,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_); @@ -1920,62 +1718,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1994,7 +1818,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(); @@ -2044,7 +1869,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(); @@ -2064,7 +1890,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) + getUnknownFields().hashCode(); @@ -2072,103 +1899,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.
@@ -2179,55 +2000,59 @@ 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);
     }
 
     // Construct using com.google.cloud.run.v2.Service.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2332,9 +2157,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
@@ -2445,39 +2270,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;
@@ -2501,8 +2325,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());
       }
@@ -2561,10 +2387,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_);
           }
@@ -2594,10 +2419,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_);
           }
@@ -2629,10 +2453,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_);
           }
@@ -2675,214 +2498,196 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                description_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 18
-            case 26:
-              {
-                uid_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 26
-            case 32:
-              {
-                generation_ = input.readInt64();
-
-                break;
-              } // case 32
-            case 42:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                break;
-              } // case 42
-            case 50:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 82
-            case 90:
-              {
-                creator_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 90
-            case 98:
-              {
-                lastModifier_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 98
-            case 106:
-              {
-                client_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 106
-            case 114:
-              {
-                clientVersion_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 114
-            case 120:
-              {
-                ingress_ = input.readEnum();
-
-                break;
-              } // case 120
-            case 128:
-              {
-                launchStage_ = input.readEnum();
-
-                break;
-              } // case 128
-            case 138:
-              {
-                input.readMessage(
-                    getBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 138
-            case 146:
-              {
-                input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 146
-            case 154:
-              {
-                com.google.cloud.run.v2.TrafficTarget m =
-                    input.readMessage(
-                        com.google.cloud.run.v2.TrafficTarget.parser(), extensionRegistry);
-                if (trafficBuilder_ == null) {
-                  ensureTrafficIsMutable();
-                  traffic_.add(m);
-                } else {
-                  trafficBuilder_.addMessage(m);
-                }
-                break;
-              } // case 154
-            case 240:
-              {
-                observedGeneration_ = input.readInt64();
-
-                break;
-              } // case 240
-            case 250:
-              {
-                input.readMessage(
-                    getTerminalConditionFieldBuilder().getBuilder(), extensionRegistry);
-
-                break;
-              } // case 250
-            case 258:
-              {
-                com.google.cloud.run.v2.Condition m =
-                    input.readMessage(
-                        com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
-                if (conditionsBuilder_ == null) {
-                  ensureConditionsIsMutable();
-                  conditions_.add(m);
-                } else {
-                  conditionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 258
-            case 266:
-              {
-                latestReadyRevision_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 266
-            case 274:
-              {
-                latestCreatedRevision_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 274
-            case 282:
-              {
-                com.google.cloud.run.v2.TrafficTargetStatus m =
-                    input.readMessage(
-                        com.google.cloud.run.v2.TrafficTargetStatus.parser(), extensionRegistry);
-                if (trafficStatusesBuilder_ == null) {
-                  ensureTrafficStatusesIsMutable();
-                  trafficStatuses_.add(m);
-                } else {
-                  trafficStatusesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 282
-            case 290:
-              {
-                uri_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 290
-            case 784:
-              {
-                reconciling_ = input.readBool();
-
-                break;
-              } // case 784
-            case 794:
-              {
-                etag_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 794
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              description_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 18
+            case 26: {
+              uid_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 26
+            case 32: {
+              generation_ = input.readInt64();
+
+              break;
+            } // case 32
+            case 42: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              break;
+            } // case 42
+            case 50: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getExpireTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 82
+            case 90: {
+              creator_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 90
+            case 98: {
+              lastModifier_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 98
+            case 106: {
+              client_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 106
+            case 114: {
+              clientVersion_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 114
+            case 120: {
+              ingress_ = input.readEnum();
+
+              break;
+            } // case 120
+            case 128: {
+              launchStage_ = input.readEnum();
+
+              break;
+            } // case 128
+            case 138: {
+              input.readMessage(
+                  getBinaryAuthorizationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 138
+            case 146: {
+              input.readMessage(
+                  getTemplateFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 146
+            case 154: {
+              com.google.cloud.run.v2.TrafficTarget m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.TrafficTarget.parser(),
+                      extensionRegistry);
+              if (trafficBuilder_ == null) {
+                ensureTrafficIsMutable();
+                traffic_.add(m);
+              } else {
+                trafficBuilder_.addMessage(m);
+              }
+              break;
+            } // case 154
+            case 240: {
+              observedGeneration_ = input.readInt64();
+
+              break;
+            } // case 240
+            case 250: {
+              input.readMessage(
+                  getTerminalConditionFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 250
+            case 258: {
+              com.google.cloud.run.v2.Condition m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.Condition.parser(),
+                      extensionRegistry);
+              if (conditionsBuilder_ == null) {
+                ensureConditionsIsMutable();
+                conditions_.add(m);
+              } else {
+                conditionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 258
+            case 266: {
+              latestReadyRevision_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 266
+            case 274: {
+              latestCreatedRevision_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 274
+            case 282: {
+              com.google.cloud.run.v2.TrafficTargetStatus m =
+                  input.readMessage(
+                      com.google.cloud.run.v2.TrafficTargetStatus.parser(),
+                      extensionRegistry);
+              if (trafficStatusesBuilder_ == null) {
+                ensureTrafficStatusesIsMutable();
+                trafficStatuses_.add(m);
+              } else {
+                trafficStatusesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 282
+            case 290: {
+              uri_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 290
+            case 784: {
+              reconciling_ = input.readBool();
+
+              break;
+            } // case 784
+            case 794: {
+              etag_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 794
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2892,13 +2697,10 @@ public Builder mergeFrom(
       } // finally
       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
@@ -2908,13 +2710,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; @@ -2923,8 +2725,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
@@ -2934,14 +2734,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 { @@ -2949,8 +2750,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
@@ -2960,22 +2759,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
@@ -2985,18 +2782,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
@@ -3006,16 +2800,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; @@ -3023,21 +2817,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; @@ -3046,22 +2838,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 { @@ -3069,64 +2860,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; @@ -3134,21 +2918,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; @@ -3157,22 +2939,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 { @@ -3180,73 +2961,64 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** - * - * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; } - private long generation_; + private long generation_ ; /** - * - * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3255,7 +3027,6 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ @java.lang.Override @@ -3263,8 +3034,6 @@ public long getGeneration() { return generation_; } /** - * - * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3273,19 +3042,16 @@ public long getGeneration() {
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3294,31 +3060,31 @@ public Builder setGeneration(long value) {
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 0L; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3330,8 +3096,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3347,22 +3111,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 5;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3379,12 +3143,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.
@@ -3401,17 +3164,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 5;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3428,11 +3190,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 5;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3440,12 +3203,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.
@@ -3461,21 +3223,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 5;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3491,20 +3255,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 5;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3520,29 +3283,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();
@@ -3554,8 +3318,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
@@ -3567,22 +3329,22 @@ public int getAnnotationsCount() {
      *
      * map<string, string> annotations = 6;
      */
+
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /** Use {@link #getAnnotationsMap()} instead. */
+    /**
+     * Use {@link #getAnnotationsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3595,12 +3357,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
@@ -3613,17 +3374,16 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 6;
      */
     @java.lang.Override
+
     public java.lang.String getAnnotationsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3636,11 +3396,12 @@ public java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 6;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3648,12 +3409,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
@@ -3665,21 +3425,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 6;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAnnotations() {
+    public java.util.Map
+    getMutableAnnotations() {
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3691,20 +3453,19 @@ public java.util.Map getMutableAnnotations()
      *
      * map<string, string> annotations = 6;
      */
-    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putAnnotations(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+      internalGetMutableAnnotations().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3716,65 +3477,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) { @@ -3790,17 +3535,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(); @@ -3811,21 +3553,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; } @@ -3837,15 +3575,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) { @@ -3859,64 +3593,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_; @@ -3924,58 +3642,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) { @@ -3991,17 +3690,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(); @@ -4012,21 +3708,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; } @@ -4038,15 +3730,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) { @@ -4060,64 +3748,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_; @@ -4125,58 +3797,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) { @@ -4192,17 +3845,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(); @@ -4213,21 +3863,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; } @@ -4239,15 +3885,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) { @@ -4261,64 +3903,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_; @@ -4326,61 +3952,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) { @@ -4396,18 +4003,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(); @@ -4418,22 +4022,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; } @@ -4445,16 +4045,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) { @@ -4468,67 +4064,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_; @@ -4536,20 +4116,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; @@ -4558,21 +4136,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 { @@ -4580,61 +4157,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; @@ -4642,20 +4212,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; @@ -4664,21 +4232,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 { @@ -4686,61 +4253,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; @@ -4748,20 +4308,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; @@ -4770,21 +4328,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 { @@ -4792,61 +4349,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; @@ -4854,20 +4404,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; @@ -4876,21 +4424,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 { @@ -4898,61 +4445,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; @@ -4960,8 +4500,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
@@ -4969,16 +4507,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
@@ -4986,19 +4520,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
@@ -5006,19 +4537,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
@@ -5026,7 +4553,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. */ @@ -5034,14 +4560,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
@@ -5049,11 +4573,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; @@ -5061,8 +4584,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).
@@ -5071,16 +4592,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).
@@ -5089,19 +4606,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).
@@ -5110,7 +4624,6 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return The launchStage. */ @java.lang.Override @@ -5120,8 +4633,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).
@@ -5130,7 +4641,6 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 16; - * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -5138,14 +4648,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).
@@ -5154,11 +4662,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; @@ -5166,47 +4673,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.
      * 
@@ -5227,8 +4721,6 @@ public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizatio return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5247,8 +4739,6 @@ public Builder setBinaryAuthorization( return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5259,9 +4749,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; } @@ -5273,8 +4761,6 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5293,8 +4779,6 @@ public Builder clearBinaryAuthorization() { return this; } /** - * - * *
      * Settings for the Binary Authorization feature.
      * 
@@ -5302,13 +4786,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.
      * 
@@ -5319,14 +4801,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.
      * 
@@ -5334,17 +4813,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_; @@ -5352,58 +4828,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) { @@ -5419,17 +4876,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(); @@ -5440,23 +4894,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; } @@ -5468,15 +4916,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) { @@ -5490,88 +4934,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
@@ -5588,8 +5010,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
@@ -5606,8 +5026,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
@@ -5624,8 +5042,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
@@ -5634,7 +5050,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();
@@ -5648,8 +5065,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
@@ -5670,8 +5085,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
@@ -5694,8 +5107,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
@@ -5704,7 +5115,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();
@@ -5718,8 +5130,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
@@ -5728,7 +5138,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());
@@ -5739,8 +5150,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
@@ -5761,8 +5170,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
@@ -5775,7 +5182,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);
@@ -5783,8 +5191,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
@@ -5804,8 +5210,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
@@ -5825,8 +5229,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
@@ -5835,12 +5237,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
@@ -5849,16 +5250,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
@@ -5867,8 +5266,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 {
@@ -5876,8 +5275,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
@@ -5887,12 +5284,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
@@ -5901,13 +5296,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
@@ -5916,31 +5310,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
@@ -5950,7 +5340,6 @@ public java.util.List getTrafficB
      * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ @java.lang.Override @@ -5958,8 +5347,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
@@ -5969,19 +5356,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
@@ -5991,11 +5375,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; @@ -6003,13 +5386,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
@@ -6017,18 +5395,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
@@ -6036,24 +5409,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
@@ -6061,9 +5427,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) { @@ -6079,8 +5443,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
@@ -6088,11 +5450,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(); @@ -6103,8 +5464,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
@@ -6112,17 +5471,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; } @@ -6134,8 +5489,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
@@ -6143,9 +5496,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) { @@ -6159,8 +5510,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
@@ -6168,18 +5517,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
@@ -6187,22 +5532,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
@@ -6210,46 +5550,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
@@ -6257,9 +5586,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) { @@ -6269,8 +5596,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
@@ -6278,9 +5603,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) { @@ -6290,8 +5613,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
@@ -6299,9 +5620,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) { @@ -6311,8 +5630,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
@@ -6320,11 +5637,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(); @@ -6338,8 +5654,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
@@ -6347,9 +5661,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) { @@ -6363,8 +5675,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
@@ -6372,9 +5682,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) { @@ -6390,8 +5698,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
@@ -6399,11 +5705,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(); @@ -6417,8 +5722,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
@@ -6426,11 +5729,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()); @@ -6441,8 +5743,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
@@ -6450,9 +5750,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) { @@ -6466,8 +5764,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
@@ -6475,15 +5771,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); @@ -6491,8 +5786,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
@@ -6500,9 +5793,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) { @@ -6515,8 +5806,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
@@ -6524,9 +5813,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) { @@ -6539,8 +5826,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
@@ -6548,16 +5833,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
@@ -6565,20 +5847,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
@@ -6586,12 +5864,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 { @@ -6599,8 +5875,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
@@ -6608,17 +5882,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
@@ -6626,17 +5896,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
@@ -6644,26 +5911,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_; @@ -6671,24 +5934,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; @@ -6697,25 +5956,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 { @@ -6723,73 +5979,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; @@ -6797,23 +6040,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; @@ -6822,24 +6061,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 { @@ -6847,104 +6083,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) { @@ -6954,17 +6168,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) { @@ -6974,17 +6184,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) { @@ -6994,17 +6200,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) { @@ -7021,17 +6223,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) { @@ -7045,17 +6243,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) { @@ -7071,17 +6265,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) { @@ -7098,17 +6288,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) { @@ -7122,17 +6308,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) { @@ -7146,23 +6328,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); @@ -7170,17 +6349,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) { @@ -7193,17 +6368,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) { @@ -7216,58 +6387,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 { @@ -7275,69 +6433,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(), @@ -7349,20 +6489,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; @@ -7371,21 +6509,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 { @@ -7393,70 +6530,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.
@@ -7480,7 +6608,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -7488,8 +6615,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.
@@ -7513,19 +6638,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.
@@ -7549,11 +6671,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; @@ -7561,21 +6682,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; @@ -7584,22 +6703,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 { @@ -7607,71 +6725,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); } @@ -7681,12 +6792,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(); } @@ -7695,27 +6806,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7730,4 +6841,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java similarity index 100% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java similarity index 80% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java index d8cc384bfe62..df89e68fea9e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/service.proto package com.google.cloud.run.v2; -public interface ServiceOrBuilder - extends +public interface ServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Service) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -35,13 +17,10 @@ public interface ServiceOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -51,68 +30,56 @@ public interface ServiceOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * User-provided description of the Service. This field currently has a
    * 512-character limit.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User-provided description of the Service. This field currently has a
    * 512-character limit.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
@@ -121,14 +88,11 @@ public interface ServiceOrBuilder
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The generation. */ long getGeneration(); /** - * - * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -146,8 +110,6 @@ public interface ServiceOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -163,13 +125,15 @@ public interface ServiceOrBuilder
    *
    * map<string, string> labels = 5;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -185,10 +149,9 @@ public interface ServiceOrBuilder
    *
    * map<string, string> labels = 5;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -206,13 +169,11 @@ public interface ServiceOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -228,11 +189,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 5;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -246,8 +207,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -259,13 +218,15 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> annotations = 6;
    */
-  boolean containsAnnotations(java.lang.String key);
-  /** Use {@link #getAnnotationsMap()} instead. */
+  boolean containsAnnotations(
+      java.lang.String key);
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAnnotations();
+  java.util.Map
+  getAnnotations();
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -277,10 +238,9 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> annotations = 6;
    */
-  java.util.Map getAnnotationsMap();
+  java.util.Map
+  getAnnotationsMap();
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -294,13 +254,11 @@ java.lang.String getLabelsOrDefault(
    */
 
   /* nullable */
-  java.lang.String getAnnotationsOrDefault(
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -312,266 +270,202 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 6;
    */
-  java.lang.String getAnnotationsOrThrow(java.lang.String key);
+
+  java.lang.String getAnnotationsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creator. */ java.lang.String getCreator(); /** - * - * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for creator. */ - com.google.protobuf.ByteString getCreatorBytes(); + com.google.protobuf.ByteString + getCreatorBytes(); /** - * - * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastModifier. */ java.lang.String getLastModifier(); /** - * - * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastModifier. */ - com.google.protobuf.ByteString getLastModifierBytes(); + com.google.protobuf.ByteString + getLastModifierBytes(); /** - * - * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; - * * @return The client. */ java.lang.String getClient(); /** - * - * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; - * * @return The bytes for client. */ - com.google.protobuf.ByteString getClientBytes(); + com.google.protobuf.ByteString + getClientBytes(); /** - * - * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; - * * @return The clientVersion. */ java.lang.String getClientVersion(); /** - * - * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; - * * @return The bytes for clientVersion. */ - com.google.protobuf.ByteString getClientVersionBytes(); + com.google.protobuf.ByteString + getClientVersionBytes(); /** - * - * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -579,13 +473,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @return The enum numeric value on the wire for ingress. */ int getIngressValue(); /** - * - * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -593,14 +484,11 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; - * * @return The ingress. */ com.google.cloud.run.v2.IngressTraffic getIngress(); /** - * - * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -609,13 +497,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** - * - * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -624,38 +509,29 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * .google.api.LaunchStage launch_stage = 16; - * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); /** - * - * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; - * * @return Whether the binaryAuthorization field is set. */ boolean hasBinaryAuthorization(); /** - * - * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; - * * @return The binaryAuthorization. */ com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization(); /** - * - * *
    * Settings for the Binary Authorization feature.
    * 
@@ -665,49 +541,33 @@ java.lang.String getAnnotationsOrDefault( com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); /** - * - * *
    * Required. The template used to create revisions for this Service.
    * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the template field is set. */ boolean hasTemplate(); /** - * - * *
    * Required. The template used to create revisions for this Service.
    * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; * @return The template. */ com.google.cloud.run.v2.RevisionTemplate getTemplate(); /** - * - * *
    * Required. The template used to create revisions for this Service.
    * 
* - * - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder(); /** - * - * *
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -716,10 +576,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  java.util.List getTrafficList();
+  java.util.List 
+      getTrafficList();
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -730,8 +589,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   com.google.cloud.run.v2.TrafficTarget getTraffic(int index);
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -742,8 +599,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getTrafficCount();
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -752,11 +607,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  java.util.List
+  java.util.List 
       getTrafficOrBuilderList();
   /**
-   *
-   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -765,11 +618,10 @@ java.lang.String getAnnotationsOrDefault(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index);
+  com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Output only. The generation of this Service currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -779,14 +631,11 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The observedGeneration. */ long getObservedGeneration(); /** - * - * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -794,16 +643,11 @@ java.lang.String getAnnotationsOrDefault(
    * process in Cloud Run.
    * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the terminalCondition field is set. */ boolean hasTerminalCondition(); /** - * - * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -811,16 +655,11 @@ java.lang.String getAnnotationsOrDefault(
    * process in Cloud Run.
    * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The terminalCondition. */ com.google.cloud.run.v2.Condition getTerminalCondition(); /** - * - * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -828,15 +667,11 @@ java.lang.String getAnnotationsOrDefault(
    * process in Cloud Run.
    * 
* - * - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder(); /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -844,14 +679,11 @@ java.lang.String getAnnotationsOrDefault(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -859,14 +691,10 @@ java.lang.String getAnnotationsOrDefault(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.run.v2.Condition getConditions(int index); /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -874,14 +702,10 @@ java.lang.String getAnnotationsOrDefault(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConditionsCount(); /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -889,14 +713,11 @@ java.lang.String getAnnotationsOrDefault(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsOrBuilderList(); + java.util.List + getConditionsOrBuilderList(); /** - * - * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -904,176 +725,132 @@ java.lang.String getAnnotationsOrDefault(
    * reconciliation process in Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index); + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index); /** - * - * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The latestReadyRevision. */ java.lang.String getLatestReadyRevision(); /** - * - * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for latestReadyRevision. */ - com.google.protobuf.ByteString getLatestReadyRevisionBytes(); + com.google.protobuf.ByteString + getLatestReadyRevisionBytes(); /** - * - * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The latestCreatedRevision. */ java.lang.String getLatestCreatedRevision(); /** - * - * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for latestCreatedRevision. */ - com.google.protobuf.ByteString getLatestCreatedRevisionBytes(); + com.google.protobuf.ByteString + getLatestCreatedRevisionBytes(); /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getTrafficStatusesList(); + java.util.List + getTrafficStatusesList(); /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.run.v2.TrafficTargetStatus getTrafficStatuses(int index); /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getTrafficStatusesCount(); /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getTrafficStatusesOrBuilderList(); /** - * - * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder(int index); + com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder( + int index); /** - * - * *
    * Output only. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Output only. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Output only. Returns true if the Service is currently being acted upon by the system to
    * bring it into the desired state.
@@ -1097,35 +874,29 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java new file mode 100644 index 000000000000..6a7900808751 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java @@ -0,0 +1,287 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/service.proto + +package com.google.cloud.run.v2; + +public final class ServiceProto { + private ServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n!google/cloud/run/v2/service.proto\022\023goo" + + "gle.cloud.run.v2\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\035google/api/lau" + + "nch_stage.proto\032\031google/api/resource.pro" + + "to\032\030google/api/routing.proto\032#google/clo" + + "ud/run/v2/condition.proto\032+google/cloud/" + + "run/v2/revision_template.proto\032(google/c" + + "loud/run/v2/traffic_target.proto\032)google" + + "/cloud/run/v2/vendor_settings.proto\032\036goo" + + "gle/iam/v1/iam_policy.proto\032\032google/iam/" + + "v1/policy.proto\032#google/longrunning/oper" + + "ations.proto\032\037google/protobuf/timestamp." + + "proto\"\256\001\n\024CreateServiceRequest\0222\n\006parent" + + "\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.com/Servi" + + "ce\0222\n\007service\030\002 \001(\0132\034.google.cloud.run.v" + + "2.ServiceB\003\340A\002\022\027\n\nservice_id\030\003 \001(\tB\003\340A\002\022" + + "\025\n\rvalidate_only\030\004 \001(\010\"x\n\024UpdateServiceR" + + "equest\0222\n\007service\030\001 \001(\0132\034.google.cloud.r" + + "un.v2.ServiceB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" + + "\010\022\025\n\rallow_missing\030\004 \001(\010\"\206\001\n\023ListService" + + "sRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.go" + + "ogleapis.com/Service\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + + "\010\"_\n\024ListServicesResponse\022.\n\010services\030\001 " + + "\003(\0132\034.google.cloud.run.v2.Service\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"E\n\021GetServiceRequest\022" + + "0\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.co" + + "m/Service\"m\n\024DeleteServiceRequest\0220\n\004nam" + + "e\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.com/Serv" + + "ice\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" + + "\"\230\013\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" + + "n\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\027\n\ngeneration\030" + + "\004 \001(\003B\003\340A\003\0228\n\006labels\030\005 \003(\0132(.google.clou" + + "d.run.v2.Service.LabelsEntry\022B\n\013annotati" + + "ons\030\006 \003(\0132-.google.cloud.run.v2.Service." + + "AnnotationsEntry\0224\n\013create_time\030\007 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013expire_time\030\n \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007crea" + + "tor\030\013 \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\014 \001(\tB\003\340" + + "A\003\022\016\n\006client\030\r \001(\t\022\026\n\016client_version\030\016 \001" + + "(\t\0224\n\007ingress\030\017 \001(\0162#.google.cloud.run.v" + + "2.IngressTraffic\022-\n\014launch_stage\030\020 \001(\0162\027" + + ".google.api.LaunchStage\022F\n\024binary_author" + + "ization\030\021 \001(\0132(.google.cloud.run.v2.Bina" + + "ryAuthorization\022<\n\010template\030\022 \001(\0132%.goog" + + "le.cloud.run.v2.RevisionTemplateB\003\340A\002\0223\n" + + "\007traffic\030\023 \003(\0132\".google.cloud.run.v2.Tra" + + "fficTarget\022 \n\023observed_generation\030\036 \001(\003B" + + "\003\340A\003\022?\n\022terminal_condition\030\037 \001(\0132\036.googl" + + "e.cloud.run.v2.ConditionB\003\340A\003\0227\n\nconditi" + + "ons\030 \003(\0132\036.google.cloud.run.v2.Conditio" + + "nB\003\340A\003\022B\n\025latest_ready_revision\030! \001(\tB#\340" + + "A\003\372A\035\n\033run.googleapis.com/Revision\022D\n\027la" + + "test_created_revision\030\" \001(\tB#\340A\003\372A\035\n\033run" + + ".googleapis.com/Revision\022G\n\020traffic_stat" + + "uses\030# \003(\0132(.google.cloud.run.v2.Traffic" + + "TargetStatusB\003\340A\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\030\n\013r" + + "econciling\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis" + + ".com/Service\022:projects/{project}/locatio" + + "ns/{location}/services/{service}R\001\0012\267\r\n\010" + + "Services\022\375\001\n\rCreateService\022).google.clou" + + "d.run.v2.CreateServiceRequest\032\035.google.l" + + "ongrunning.Operation\"\241\001\202\323\344\223\0027\",/v2/{pare" + + "nt=projects/*/locations/*}/services:\007ser" + + "vice\212\323\344\223\002-\022+\n\006parent\022!projects/*/locatio" + + "ns/{location=*}\332A\031parent,service,service" + + "_id\312A\022\n\007Service\022\007Service\022\303\001\n\nGetService\022" + + "&.google.cloud.run.v2.GetServiceRequest\032" + + "\034.google.cloud.run.v2.Service\"o\202\323\344\223\002.\022,/" + + "v2/{name=projects/*/locations/*/services" + + "/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/" + + "{location=*}/**\332A\004name\022\325\001\n\014ListServices\022" + + "(.google.cloud.run.v2.ListServicesReques" + + "t\032).google.cloud.run.v2.ListServicesResp" + + "onse\"p\202\323\344\223\002.\022,/v2/{parent=projects/*/loc" + + "ations/*}/services\212\323\344\223\002-\022+\n\006parent\022!proj" + + "ects/*/locations/{location=*}\332A\006parent\022\374" + + "\001\n\rUpdateService\022).google.cloud.run.v2.U" + + "pdateServiceRequest\032\035.google.longrunning" + + ".Operation\"\240\001\202\323\344\223\002?24/v2/{service.name=p" + + "rojects/*/locations/*/services/*}:\007servi" + + "ce\212\323\344\223\0026\0224\n\014service.name\022$projects/*/loc" + + "ations/{location=*}/**\332A\007service\312A\022\n\007Ser" + + "vice\022\007Service\022\340\001\n\rDeleteService\022).google" + + ".cloud.run.v2.DeleteServiceRequest\032\035.goo" + + "gle.longrunning.Operation\"\204\001\202\323\344\223\002.*,/v2/" + + "{name=projects/*/locations/*/services/*}" + + "\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{lo" + + "cation=*}/**\332A\004name\312A\022\n\007Service\022\007Service" + + "\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam" + + "PolicyRequest\032\025.google.iam.v1.Policy\"E\202\323" + + "\344\223\002?\022=/v2/{resource=projects/*/locations" + + "/*/services/*}:getIamPolicy\022\223\001\n\014SetIamPo" + + "licy\022\".google.iam.v1.SetIamPolicyRequest" + + "\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{re" + + "source=projects/*/locations/*/services/*" + + "}:setIamPolicy:\001*\022\271\001\n\022TestIamPermissions" + + "\022(.google.iam.v1.TestIamPermissionsReque" + + "st\032).google.iam.v1.TestIamPermissionsRes" + + "ponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*/" + + "locations/*/services/*}:testIamPermissio" + + "ns:\001*\032F\312A\022run.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformBa\n" + + "\027com.google.cloud.run.v2B\014ServiceProtoP\001" + + "Z6google.golang.org/genproto/googleapis/" + + "cloud/run/v2;runb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.cloud.run.v2.ConditionProto.getDescriptor(), + com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(), + com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor, + new java.lang.String[] { "Parent", "Service", "ServiceId", "ValidateOnly", }); + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor, + new java.lang.String[] { "Service", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor, + new java.lang.String[] { "Services", "NextPageToken", }); + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_run_v2_Service_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_run_v2_Service_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_descriptor, + new java.lang.String[] { "Name", "Description", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Creator", "LastModifier", "Client", "ClientVersion", "Ingress", "LaunchStage", "BinaryAuthorization", "Template", "Traffic", "ObservedGeneration", "TerminalCondition", "Conditions", "LatestReadyRevision", "LatestCreatedRevision", "TrafficStatuses", "Uri", "Reconciling", "Etag", }); + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.LaunchStageProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(); + com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java similarity index 64% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java index 59c4e2531f0d..e91f673c15c2 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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; /** - * - * *
  * TCPSocketAction describes an action based on opening a socket
  * 
* * Protobuf type {@code google.cloud.run.v2.TCPSocketAction} */ -public final class TCPSocketAction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TCPSocketAction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.TCPSocketAction) TCPSocketActionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TCPSocketAction.newBuilder() to construct. private TCPSocketAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TCPSocketAction() {} + private TCPSocketAction() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TCPSocketAction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.TCPSocketAction.class, - com.google.cloud.run.v2.TCPSocketAction.Builder.class); + com.google.cloud.run.v2.TCPSocketAction.class, com.google.cloud.run.v2.TCPSocketAction.Builder.class); } public static final int PORT_FIELD_NUMBER = 1; private int port_; /** - * - * *
    * Port number to access on the container. Must be in the range 1 to 65535.
    * 
* * int32 port = 1; - * * @return The port. */ @java.lang.Override @@ -84,7 +63,6 @@ public int getPort() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,7 +74,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 (port_ != 0) { output.writeInt32(1, port_); } @@ -110,7 +89,8 @@ public int getSerializedSize() { size = 0; if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, port_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,14 +100,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.TCPSocketAction)) { return super.equals(obj); } com.google.cloud.run.v2.TCPSocketAction other = (com.google.cloud.run.v2.TCPSocketAction) obj; - if (getPort() != other.getPort()) return false; + if (getPort() + != other.getPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -146,136 +127,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.TCPSocketAction parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.TCPSocketAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.TCPSocketAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TCPSocketAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.TCPSocketAction parseFrom( com.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.TCPSocketAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.run.v2.TCPSocketAction parseFrom( - byte[] data, com.google.protobuf.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.TCPSocketAction 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.TCPSocketAction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.TCPSocketAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.run.v2.TCPSocketAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.run.v2.TCPSocketAction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.TCPSocketAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(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.TCPSocketAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public 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.TCPSocketAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TCPSocketAction describes an action based on opening a socket
    * 
* * Protobuf type {@code google.cloud.run.v2.TCPSocketAction} */ - public static final class Builder extends com.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.TCPSocketAction) com.google.cloud.run.v2.TCPSocketActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto - .internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.TCPSocketAction.class, - com.google.cloud.run.v2.TCPSocketAction.Builder.class); + com.google.cloud.run.v2.TCPSocketAction.class, com.google.cloud.run.v2.TCPSocketAction.Builder.class); } // Construct using com.google.cloud.run.v2.TCPSocketAction.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -285,9 +260,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_TCPSocketAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; } @java.lang.Override @@ -306,8 +281,7 @@ public com.google.cloud.run.v2.TCPSocketAction build() { @java.lang.Override public com.google.cloud.run.v2.TCPSocketAction buildPartial() { - com.google.cloud.run.v2.TCPSocketAction result = - new com.google.cloud.run.v2.TCPSocketAction(this); + com.google.cloud.run.v2.TCPSocketAction result = new com.google.cloud.run.v2.TCPSocketAction(this); result.port_ = port_; onBuilt(); return result; @@ -317,39 +291,38 @@ public com.google.cloud.run.v2.TCPSocketAction buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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.TCPSocketAction) { - return mergeFrom((com.google.cloud.run.v2.TCPSocketAction) other); + return mergeFrom((com.google.cloud.run.v2.TCPSocketAction)other); } else { super.mergeFrom(other); return this; @@ -387,19 +360,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - port_ = input.readInt32(); - - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + port_ = input.readInt32(); + + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -410,16 +381,13 @@ public Builder mergeFrom( return this; } - private int port_; + private int port_ ; /** - * - * *
      * Port number to access on the container. Must be in the range 1 to 65535.
      * 
* * int32 port = 1; - * * @return The port. */ @java.lang.Override @@ -427,43 +395,37 @@ public int getPort() { return port_; } /** - * - * *
      * Port number to access on the container. Must be in the range 1 to 65535.
      * 
* * int32 port = 1; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** - * - * *
      * Port number to access on the container. Must be in the range 1 to 65535.
      * 
* * int32 port = 1; - * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 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); } @@ -473,12 +435,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.TCPSocketAction) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.TCPSocketAction) private static final com.google.cloud.run.v2.TCPSocketAction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.TCPSocketAction(); } @@ -487,27 +449,27 @@ public static com.google.cloud.run.v2.TCPSocketAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TCPSocketAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TCPSocketAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -522,4 +484,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TCPSocketAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java new file mode 100644 index 000000000000..30ccfe45c046 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java @@ -0,0 +1,19 @@ +// 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 TCPSocketActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TCPSocketAction) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Port number to access on the container. Must be in the range 1 to 65535.
+   * 
+ * + * int32 port = 1; + * @return The port. + */ + int getPort(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java new file mode 100644 index 000000000000..26687ade2529 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java @@ -0,0 +1,6522 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Task represents a single run of a container to completion.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.Task} + */ +public final class Task extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Task) + TaskOrBuilder { +private static final long serialVersionUID = 0L; + // Use Task.newBuilder() to construct. + private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Task() { + name_ = ""; + uid_ = ""; + job_ = ""; + execution_ = ""; + containers_ = java.util.Collections.emptyList(); + volumes_ = java.util.Collections.emptyList(); + serviceAccount_ = ""; + executionEnvironment_ = 0; + conditions_ = java.util.Collections.emptyList(); + encryptionKey_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Task(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_Task_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + 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); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_Task_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.Task.class, com.google.cloud.run.v2.Task.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Output only. The unique name of this Task.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Output only. The unique name of this Task.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + private volatile java.lang.Object uid_; + /** + *
+   * Output only. Server assigned unique identifier for the Task. 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 + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + *
+   * Output only. Server assigned unique identifier for the Task. 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() { + 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); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public long getGeneration() { + return generation_; + } + + 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.TaskProto.internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * 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
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + 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
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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.TaskProto.internal_static_google_cloud_run_v2_Task_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() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. Represents time when the task was created by the job controller.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. Represents time when the task was created by the job controller.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. Represents time when the task was created by the job controller.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int START_TIME_FIELD_NUMBER = 27; + private com.google.protobuf.Timestamp startTime_; + /** + *
+   * Output only. Represents time when the task started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + *
+   * Output only. Represents time when the task started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + *
+   * Output only. Represents time when the task started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int COMPLETION_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp completionTime_; + /** + *
+   * Output only. Represents time when the Task was completed. It is not guaranteed to
+   * be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the completionTime field is set. + */ + @java.lang.Override + public boolean hasCompletionTime() { + return completionTime_ != null; + } + /** + *
+   * Output only. Represents time when the Task was completed. It is not guaranteed to
+   * be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The completionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompletionTime() { + return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + } + /** + *
+   * Output only. Represents time when the Task was completed. It is not guaranteed to
+   * be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { + return getCompletionTime(); + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * Output only. The last-modified time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int DELETE_TIME_FIELD_NUMBER = 9; + 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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + 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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + @java.lang.Override + 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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return getDeleteTime(); + } + + 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. It is only populated as a response to a Delete
+   * request.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the expireTime field is set. + */ + @java.lang.Override + 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The expireTime. + */ + @java.lang.Override + 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return getExpireTime(); + } + + public static final int JOB_FIELD_NUMBER = 12; + private volatile java.lang.Object job_; + /** + *
+   * Output only. The name of the parent Job.
+   * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The job. + */ + @java.lang.Override + public java.lang.String getJob() { + java.lang.Object ref = job_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + job_ = s; + return s; + } + } + /** + *
+   * Output only. The name of the parent Job.
+   * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for job. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJobBytes() { + java.lang.Object ref = job_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + job_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_FIELD_NUMBER = 13; + private volatile java.lang.Object execution_; + /** + *
+   * Output only. The name of the parent Execution.
+   * 
+ * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The execution. + */ + @java.lang.Override + public java.lang.String getExecution() { + java.lang.Object ref = execution_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execution_ = s; + return s; + } + } + /** + *
+   * Output only. The name of the parent Execution.
+   * 
+ * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for execution. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getExecutionBytes() { + java.lang.Object ref = execution_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + execution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTAINERS_FIELD_NUMBER = 14; + private java.util.List containers_; + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + @java.lang.Override + public java.util.List getContainersList() { + return containers_; + } + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + @java.lang.Override + public java.util.List + getContainersOrBuilderList() { + return containers_; + } + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + @java.lang.Override + public int getContainersCount() { + return containers_.size(); + } + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + @java.lang.Override + 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
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + @java.lang.Override + public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( + int index) { + return containers_.get(index); + } + + public static final int VOLUMES_FIELD_NUMBER = 15; + private java.util.List volumes_; + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + @java.lang.Override + public java.util.List getVolumesList() { + return volumes_; + } + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + @java.lang.Override + public java.util.List + getVolumesOrBuilderList() { + return volumes_; + } + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + @java.lang.Override + public int getVolumesCount() { + return volumes_.size(); + } + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + @java.lang.Override + public com.google.cloud.run.v2.Volume getVolumes(int index) { + return volumes_.get(index); + } + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + @java.lang.Override + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { + return volumes_.get(index); + } + + public static final int MAX_RETRIES_FIELD_NUMBER = 16; + private int maxRetries_; + /** + *
+   * Number of retries allowed per Task, before marking this Task failed.
+   * 
+ * + * int32 max_retries = 16; + * @return The maxRetries. + */ + @java.lang.Override + public int getMaxRetries() { + return maxRetries_; + } + + public static final int TIMEOUT_FIELD_NUMBER = 17; + private com.google.protobuf.Duration timeout_; + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 17; + * @return Whether the timeout field is set. + */ + @java.lang.Override + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 17; + * @return The timeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 17; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 18; + private volatile java.lang.Object serviceAccount_; + /** + *
+   * Email address of the IAM service account associated with the Task of a
+   * Job. The service account represents the identity of the
+   * running task, and determines what permissions the task has. If
+   * not provided, the task will use the project's default service account.
+   * 
+ * + * string service_account = 18; + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + *
+   * Email address of the IAM service account associated with the Task of a
+   * Job. The service account represents the identity of the
+   * running task, and determines what permissions the task has. If
+   * not provided, the task will use the project's default service account.
+   * 
+ * + * string service_account = 18; + * @return The bytes for serviceAccount. + */ + @java.lang.Override + 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); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 20; + private int executionEnvironment_; + /** + *
+   * The execution environment being used to host this Task.
+   * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * @return The enum numeric value on the wire for executionEnvironment. + */ + @java.lang.Override public int getExecutionEnvironmentValue() { + return executionEnvironment_; + } + /** + *
+   * The execution environment being used to host this Task.
+   * 
+ * + * .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_); + return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; + } + + public static final int RECONCILING_FIELD_NUMBER = 21; + private boolean reconciling_; + /** + *
+   * Output only. Indicates whether the resource's reconciliation is still in progress.
+   * See comments in `Job.reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * bool reconciling = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 22; + private java.util.List conditions_; + /** + *
+   * Output only. The Condition of this Task, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Output only. The Condition of this Task, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Output only. The Condition of this Task, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Output only. The Condition of this Task, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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 Task, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + public static final int OBSERVED_GENERATION_FIELD_NUMBER = 23; + private long observedGeneration_; + /** + *
+   * Output only. The generation of this Task. See comments in `Job.reconciling`
+   * for additional information on reconciliation process in Cloud Run.
+   * 
+ * + * int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The observedGeneration. + */ + @java.lang.Override + public long getObservedGeneration() { + return observedGeneration_; + } + + public static final int INDEX_FIELD_NUMBER = 24; + private int index_; + /** + *
+   * Output only. Index of the Task, unique per execution, and beginning at 0.
+   * 
+ * + * int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int RETRIED_FIELD_NUMBER = 25; + private int retried_; + /** + *
+   * Output only. The number of times this Task was retried.
+   * Tasks are retried when they fail up to the maxRetries limit.
+   * 
+ * + * int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The retried. + */ + @java.lang.Override + public int getRetried() { + return retried_; + } + + public static final int LAST_ATTEMPT_RESULT_FIELD_NUMBER = 26; + private com.google.cloud.run.v2.TaskAttemptResult lastAttemptResult_; + /** + *
+   * Output only. Result of the last attempt of this Task.
+   * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the lastAttemptResult field is set. + */ + @java.lang.Override + public boolean hasLastAttemptResult() { + return lastAttemptResult_ != null; + } + /** + *
+   * Output only. Result of the last attempt of this Task.
+   * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The lastAttemptResult. + */ + @java.lang.Override + public com.google.cloud.run.v2.TaskAttemptResult getLastAttemptResult() { + return lastAttemptResult_ == null ? com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance() : lastAttemptResult_; + } + /** + *
+   * Output only. Result of the last attempt of this Task.
+   * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.run.v2.TaskAttemptResultOrBuilder getLastAttemptResultOrBuilder() { + return getLastAttemptResult(); + } + + public static final int ENCRYPTION_KEY_FIELD_NUMBER = 28; + private volatile java.lang.Object encryptionKey_; + /** + *
+   * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
+   * this container image. For more information, go to
+   * https://cloud.google.com/run/docs/securing/using-cmek
+   * 
+ * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The encryptionKey. + */ + @java.lang.Override + public java.lang.String getEncryptionKey() { + java.lang.Object ref = encryptionKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + encryptionKey_ = s; + return s; + } + } + /** + *
+   * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
+   * this container image. For more information, go to
+   * https://cloud.google.com/run/docs/securing/using-cmek
+   * 
+ * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for encryptionKey. + */ + @java.lang.Override + 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); + encryptionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPC_ACCESS_FIELD_NUMBER = 29; + private com.google.cloud.run.v2.VpcAccess vpcAccess_; + /** + *
+   * Output only. VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the vpcAccess field is set. + */ + @java.lang.Override + public boolean hasVpcAccess() { + return vpcAccess_ != null; + } + /** + *
+   * Output only. VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The vpcAccess. + */ + @java.lang.Override + public com.google.cloud.run.v2.VpcAccess getVpcAccess() { + return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; + } + /** + *
+   * Output only. VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { + return getVpcAccess(); + } + + 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 + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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() { + 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); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); + } + 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); + if (createTime_ != null) { + output.writeMessage(6, getCreateTime()); + } + if (completionTime_ != null) { + output.writeMessage(7, getCompletionTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + if (deleteTime_ != null) { + output.writeMessage(9, getDeleteTime()); + } + if (expireTime_ != null) { + output.writeMessage(10, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(job_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, job_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(execution_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, execution_); + } + for (int i = 0; i < containers_.size(); i++) { + output.writeMessage(14, containers_.get(i)); + } + for (int i = 0; i < volumes_.size(); i++) { + output.writeMessage(15, volumes_.get(i)); + } + if (maxRetries_ != 0) { + output.writeInt32(16, maxRetries_); + } + if (timeout_ != null) { + output.writeMessage(17, getTimeout()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, serviceAccount_); + } + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + output.writeEnum(20, executionEnvironment_); + } + if (reconciling_ != false) { + output.writeBool(21, reconciling_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(22, conditions_.get(i)); + } + if (observedGeneration_ != 0L) { + output.writeInt64(23, observedGeneration_); + } + if (index_ != 0) { + output.writeInt32(24, index_); + } + if (retried_ != 0) { + output.writeInt32(25, retried_); + } + if (lastAttemptResult_ != null) { + output.writeMessage(26, getLastAttemptResult()); + } + if (startTime_ != null) { + output.writeMessage(27, getStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, encryptionKey_); + } + if (vpcAccess_ != null) { + output.writeMessage(29, getVpcAccess()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + 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__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); + } + if (completionTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCompletionTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdateTime()); + } + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDeleteTime()); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(job_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, job_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(execution_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, execution_); + } + for (int i = 0; i < containers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, containers_.get(i)); + } + for (int i = 0; i < volumes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, volumes_.get(i)); + } + if (maxRetries_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(16, maxRetries_); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getTimeout()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, serviceAccount_); + } + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(20, executionEnvironment_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(21, reconciling_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, conditions_.get(i)); + } + if (observedGeneration_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(23, observedGeneration_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(24, index_); + } + if (retried_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(25, retried_); + } + if (lastAttemptResult_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getLastAttemptResult()); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, encryptionKey_); + } + if (vpcAccess_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, getVpcAccess()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.Task)) { + return super.equals(obj); + } + com.google.cloud.run.v2.Task other = (com.google.cloud.run.v2.Task) 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 (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasCompletionTime() != other.hasCompletionTime()) return false; + if (hasCompletionTime()) { + if (!getCompletionTime() + .equals(other.getCompletionTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; + } + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + } + if (!getJob() + .equals(other.getJob())) return false; + if (!getExecution() + .equals(other.getExecution())) return false; + if (!getContainersList() + .equals(other.getContainersList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) return false; + if (getMaxRetries() + != other.getMaxRetries()) 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 (executionEnvironment_ != other.executionEnvironment_) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; + if (getObservedGeneration() + != other.getObservedGeneration()) return false; + if (getIndex() + != other.getIndex()) return false; + if (getRetried() + != other.getRetried()) return false; + if (hasLastAttemptResult() != other.hasLastAttemptResult()) return false; + if (hasLastAttemptResult()) { + if (!getLastAttemptResult() + .equals(other.getLastAttemptResult())) return false; + } + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; + if (hasVpcAccess() != other.hasVpcAccess()) return false; + if (hasVpcAccess()) { + if (!getVpcAccess() + .equals(other.getVpcAccess())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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()); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasCompletionTime()) { + hash = (37 * hash) + COMPLETION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompletionTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + hash = (37 * hash) + EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getExecution().hashCode(); + if (getContainersCount() > 0) { + hash = (37 * hash) + CONTAINERS_FIELD_NUMBER; + hash = (53 * hash) + getContainersList().hashCode(); + } + if (getVolumesCount() > 0) { + hash = (37 * hash) + VOLUMES_FIELD_NUMBER; + hash = (53 * hash) + getVolumesList().hashCode(); + } + hash = (37 * hash) + MAX_RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getMaxRetries(); + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (37 * hash) + EXECUTION_ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + executionEnvironment_; + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + 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 = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (37 * hash) + RETRIED_FIELD_NUMBER; + hash = (53 * hash) + getRetried(); + if (hasLastAttemptResult()) { + hash = (37 * hash) + LAST_ATTEMPT_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getLastAttemptResult().hashCode(); + } + hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionKey().hashCode(); + if (hasVpcAccess()) { + hash = (37 * hash) + VPC_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + getVpcAccess().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.Task parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.Task parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.Task parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.Task parseFrom( + com.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.Task parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.Task parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.Task parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.Task parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.Task parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.Task parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.Task parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.Task parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.Task prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Task represents a single run of a container to completion.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.Task} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.Task) + com.google.cloud.run.v2.TaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_Task_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + 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); + } + } + @SuppressWarnings({"rawtypes"}) + 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); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_Task_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.Task.class, com.google.cloud.run.v2.Task.Builder.class); + } + + // Construct using com.google.cloud.run.v2.Task.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + uid_ = ""; + + generation_ = 0L; + + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (completionTimeBuilder_ == null) { + completionTime_ = null; + } else { + completionTime_ = null; + completionTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + if (expireTimeBuilder_ == null) { + expireTime_ = null; + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + job_ = ""; + + execution_ = ""; + + if (containersBuilder_ == null) { + containers_ = java.util.Collections.emptyList(); + } else { + containers_ = null; + containersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (volumesBuilder_ == null) { + volumes_ = java.util.Collections.emptyList(); + } else { + volumes_ = null; + volumesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + maxRetries_ = 0; + + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + serviceAccount_ = ""; + + executionEnvironment_ = 0; + + reconciling_ = false; + + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + observedGeneration_ = 0L; + + index_ = 0; + + retried_ = 0; + + if (lastAttemptResultBuilder_ == null) { + lastAttemptResult_ = null; + } else { + lastAttemptResult_ = null; + lastAttemptResultBuilder_ = null; + } + encryptionKey_ = ""; + + if (vpcAccessBuilder_ == null) { + vpcAccess_ = null; + } else { + vpcAccess_ = null; + vpcAccessBuilder_ = null; + } + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_Task_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.Task getDefaultInstanceForType() { + return com.google.cloud.run.v2.Task.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.Task build() { + com.google.cloud.run.v2.Task result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.Task buildPartial() { + com.google.cloud.run.v2.Task result = new com.google.cloud.run.v2.Task(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.uid_ = uid_; + result.generation_ = generation_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (completionTimeBuilder_ == null) { + result.completionTime_ = completionTime_; + } else { + result.completionTime_ = completionTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (deleteTimeBuilder_ == null) { + result.deleteTime_ = deleteTime_; + } else { + result.deleteTime_ = deleteTimeBuilder_.build(); + } + if (expireTimeBuilder_ == null) { + result.expireTime_ = expireTime_; + } else { + result.expireTime_ = expireTimeBuilder_.build(); + } + result.job_ = job_; + result.execution_ = execution_; + if (containersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + containers_ = java.util.Collections.unmodifiableList(containers_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.containers_ = containers_; + } else { + result.containers_ = containersBuilder_.build(); + } + if (volumesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + volumes_ = java.util.Collections.unmodifiableList(volumes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.volumes_ = volumes_; + } else { + result.volumes_ = volumesBuilder_.build(); + } + result.maxRetries_ = maxRetries_; + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + result.serviceAccount_ = serviceAccount_; + result.executionEnvironment_ = executionEnvironment_; + result.reconciling_ = reconciling_; + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.observedGeneration_ = observedGeneration_; + result.index_ = index_; + result.retried_ = retried_; + if (lastAttemptResultBuilder_ == null) { + result.lastAttemptResult_ = lastAttemptResult_; + } else { + result.lastAttemptResult_ = lastAttemptResultBuilder_.build(); + } + result.encryptionKey_ = encryptionKey_; + if (vpcAccessBuilder_ == null) { + result.vpcAccess_ = vpcAccess_; + } else { + result.vpcAccess_ = vpcAccessBuilder_.build(); + } + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.Task) { + return mergeFrom((com.google.cloud.run.v2.Task)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.Task other) { + if (other == com.google.cloud.run.v2.Task.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (other.getGeneration() != 0L) { + setGeneration(other.getGeneration()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasCompletionTime()) { + mergeCompletionTime(other.getCompletionTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (!other.getJob().isEmpty()) { + job_ = other.job_; + onChanged(); + } + if (!other.getExecution().isEmpty()) { + execution_ = other.execution_; + onChanged(); + } + if (containersBuilder_ == null) { + if (!other.containers_.isEmpty()) { + if (containers_.isEmpty()) { + containers_ = other.containers_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureContainersIsMutable(); + containers_.addAll(other.containers_); + } + onChanged(); + } + } else { + if (!other.containers_.isEmpty()) { + if (containersBuilder_.isEmpty()) { + containersBuilder_.dispose(); + containersBuilder_ = null; + containers_ = other.containers_; + bitField0_ = (bitField0_ & ~0x00000004); + containersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getContainersFieldBuilder() : null; + } else { + containersBuilder_.addAllMessages(other.containers_); + } + } + } + if (volumesBuilder_ == null) { + if (!other.volumes_.isEmpty()) { + if (volumes_.isEmpty()) { + volumes_ = other.volumes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureVolumesIsMutable(); + volumes_.addAll(other.volumes_); + } + onChanged(); + } + } else { + if (!other.volumes_.isEmpty()) { + if (volumesBuilder_.isEmpty()) { + volumesBuilder_.dispose(); + volumesBuilder_ = null; + volumes_ = other.volumes_; + bitField0_ = (bitField0_ & ~0x00000008); + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVolumesFieldBuilder() : null; + } else { + volumesBuilder_.addAllMessages(other.volumes_); + } + } + } + if (other.getMaxRetries() != 0) { + setMaxRetries(other.getMaxRetries()); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + if (other.executionEnvironment_ != 0) { + setExecutionEnvironmentValue(other.getExecutionEnvironmentValue()); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000010); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.getObservedGeneration() != 0L) { + setObservedGeneration(other.getObservedGeneration()); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.getRetried() != 0) { + setRetried(other.getRetried()); + } + if (other.hasLastAttemptResult()) { + mergeLastAttemptResult(other.getLastAttemptResult()); + } + if (!other.getEncryptionKey().isEmpty()) { + encryptionKey_ = other.encryptionKey_; + onChanged(); + } + if (other.hasVpcAccess()) { + mergeVpcAccess(other.getVpcAccess()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + generation_ = input.readInt64(); + + break; + } // case 24 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 58: { + input.readMessage( + getCompletionTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 66: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + case 74: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 82 + case 98: { + job_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: { + execution_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 114: { + com.google.cloud.run.v2.Container m = + input.readMessage( + com.google.cloud.run.v2.Container.parser(), + extensionRegistry); + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.add(m); + } else { + containersBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: { + com.google.cloud.run.v2.Volume m = + input.readMessage( + com.google.cloud.run.v2.Volume.parser(), + extensionRegistry); + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(m); + } else { + volumesBuilder_.addMessage(m); + } + break; + } // case 122 + case 128: { + maxRetries_ = input.readInt32(); + + break; + } // case 128 + case 138: { + input.readMessage( + getTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 138 + case 146: { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 146 + case 160: { + executionEnvironment_ = input.readEnum(); + + break; + } // case 160 + case 168: { + reconciling_ = input.readBool(); + + break; + } // case 168 + case 178: { + com.google.cloud.run.v2.Condition m = + input.readMessage( + com.google.cloud.run.v2.Condition.parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 178 + case 184: { + observedGeneration_ = input.readInt64(); + + break; + } // case 184 + case 192: { + index_ = input.readInt32(); + + break; + } // case 192 + case 200: { + retried_ = input.readInt32(); + + break; + } // case 200 + case 210: { + input.readMessage( + getLastAttemptResultFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 210 + case 218: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 218 + case 226: { + encryptionKey_ = input.readStringRequireUtf8(); + + break; + } // case 226 + case 234: { + input.readMessage( + getVpcAccessFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 234 + case 794: { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 794 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. The unique name of this Task.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The unique name of this Task.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The unique name of this Task.
+     * 
+ * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The unique name of this Task.
+     * 
+ * + * 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 Task.
+     * 
+ * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + *
+     * Output only. Server assigned unique identifier for the Task. 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; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Server assigned unique identifier for the Task. 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() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Server assigned unique identifier for the Task. 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) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Server assigned unique identifier for the Task. 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 Task. 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + 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 + 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() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * 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
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + 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
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * KRM-style labels for the resource.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels
+     * Cloud Run will populate some labels with 'run.googleapis.com' or
+     * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+     * changes will not be preserved.
+     * 
+ * + * map<string, string> labels = 4; + */ + + 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 + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + onChanged();; + if (annotations_ == null) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + internalGetMutableAnnotations().getMutableMap() + .clear(); + return this; + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAnnotations() { + return internalGetMutableAnnotations().getMutableMap(); + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableAnnotations().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * KRM-style annotations for the resource.
+     * 
+ * + * map<string, string> annotations = 5; + */ + + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); + 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_; + /** + *
+     * Output only. Represents time when the task was created by the job controller.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .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. Represents time when the task was created by the job controller.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Represents time when the task was created by the job controller.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the task was created by the job controller.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Represents time when the task was created by the job controller.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .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(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the task was created by the job controller.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Represents time when the task was created by the job controller.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .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. Represents time when the task was created by the job controller.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Output only. Represents time when the task was created by the job controller.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .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> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + *
+     * Output only. Represents time when the task started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + *
+     * Output only. Represents time when the task started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Represents time when the task started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the task started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Represents time when the task started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the task started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Represents time when the task started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Represents time when the task started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + *
+     * Output only. Represents time when the task started to run.
+     * It is not guaranteed to be set in happens-before order across separate
+     * operations.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp completionTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; + /** + *
+     * Output only. Represents time when the Task was completed. It is not guaranteed to
+     * be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the completionTime field is set. + */ + public boolean hasCompletionTime() { + return completionTimeBuilder_ != null || completionTime_ != null; + } + /** + *
+     * Output only. Represents time when the Task was completed. It is not guaranteed to
+     * be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The completionTime. + */ + public com.google.protobuf.Timestamp getCompletionTime() { + if (completionTimeBuilder_ == null) { + return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + } else { + return completionTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Represents time when the Task was completed. It is not guaranteed to
+     * be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCompletionTime(com.google.protobuf.Timestamp value) { + if (completionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completionTime_ = value; + onChanged(); + } else { + completionTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the Task was completed. It is not guaranteed to
+     * be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCompletionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (completionTimeBuilder_ == null) { + completionTime_ = builderForValue.build(); + onChanged(); + } else { + completionTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Represents time when the Task was completed. It is not guaranteed to
+     * be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { + if (completionTimeBuilder_ == null) { + if (completionTime_ != null) { + completionTime_ = + com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); + } else { + completionTime_ = value; + } + onChanged(); + } else { + completionTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Represents time when the Task was completed. It is not guaranteed to
+     * be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCompletionTime() { + if (completionTimeBuilder_ == null) { + completionTime_ = null; + onChanged(); + } else { + completionTime_ = null; + completionTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Represents time when the Task was completed. It is not guaranteed to
+     * be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { + + onChanged(); + return getCompletionTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Represents time when the Task was completed. It is not guaranteed to
+     * be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { + if (completionTimeBuilder_ != null) { + return completionTimeBuilder_.getMessageOrBuilder(); + } else { + return completionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + } + } + /** + *
+     * Output only. Represents time when the Task was completed. It is not guaranteed to
+     * be set in happens-before order across separate operations.
+     * 
+ * + * .google.protobuf.Timestamp completion_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> + getCompletionTimeFieldBuilder() { + if (completionTimeBuilder_ == null) { + completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCompletionTime(), + getParentForChildren(), + isClean()); + completionTime_ = null; + } + return completionTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .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(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Output only. The last-modified time.
+     * 
+ * + * .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> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + 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 = 9 [(.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 = 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_; + } 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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + onChanged(); + } else { + deleteTimeBuilder_.setMessage(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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + onChanged(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + + 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 = 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(); + } else { + deleteTime_ = value; + } + onChanged(); + } else { + deleteTimeBuilder_.mergeFrom(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 = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearDeleteTime() { + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + onChanged(); + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + + 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 = 9 [(.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 = 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_; + } + } + /** + *
+     * 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 = 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> + 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()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + 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_; + /** + *
+     * 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 = 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. It is only populated as a response to a Delete
+     * request.
+     * 
+ * + * .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_; + } 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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + + 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 = 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(); + } else { + expireTime_ = value; + } + onChanged(); + } else { + expireTimeBuilder_.mergeFrom(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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + expireTime_ = null; + onChanged(); + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + + 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 = 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. It is only populated as a response to a Delete
+     * request.
+     * 
+ * + * .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_; + } + } + /** + *
+     * 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 = 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> + 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()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private java.lang.Object job_ = ""; + /** + *
+     * Output only. The name of the parent Job.
+     * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The job. + */ + public java.lang.String getJob() { + java.lang.Object ref = job_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + job_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The name of the parent Job.
+     * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for job. + */ + public com.google.protobuf.ByteString + getJobBytes() { + java.lang.Object ref = job_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + job_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The name of the parent Job.
+     * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The job to set. + * @return This builder for chaining. + */ + public Builder setJob( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + job_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The name of the parent Job.
+     * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearJob() { + + job_ = getDefaultInstance().getJob(); + onChanged(); + return this; + } + /** + *
+     * Output only. The name of the parent Job.
+     * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The bytes for job to set. + * @return This builder for chaining. + */ + public Builder setJobBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + job_ = value; + onChanged(); + return this; + } + + private java.lang.Object execution_ = ""; + /** + *
+     * Output only. The name of the parent Execution.
+     * 
+ * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The execution. + */ + public java.lang.String getExecution() { + java.lang.Object ref = execution_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + execution_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The name of the parent Execution.
+     * 
+ * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for execution. + */ + public com.google.protobuf.ByteString + getExecutionBytes() { + java.lang.Object ref = execution_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + execution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The name of the parent Execution.
+     * 
+ * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The execution to set. + * @return This builder for chaining. + */ + public Builder setExecution( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + execution_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The name of the parent Execution.
+     * 
+ * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearExecution() { + + execution_ = getDefaultInstance().getExecution(); + onChanged(); + return this; + } + /** + *
+     * Output only. The name of the parent Execution.
+     * 
+ * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The bytes for execution to set. + * @return This builder for chaining. + */ + public Builder setExecutionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + execution_ = value; + onChanged(); + return this; + } + + private java.util.List containers_ = + 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_; + + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public java.util.List getContainersList() { + if (containersBuilder_ == null) { + return java.util.Collections.unmodifiableList(containers_); + } else { + return containersBuilder_.getMessageList(); + } + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public int getContainersCount() { + if (containersBuilder_ == null) { + return containers_.size(); + } else { + return containersBuilder_.getCount(); + } + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public com.google.cloud.run.v2.Container getContainers(int index) { + if (containersBuilder_ == null) { + return containers_.get(index); + } else { + return containersBuilder_.getMessage(index); + } + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public Builder setContainers( + int index, com.google.cloud.run.v2.Container value) { + if (containersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainersIsMutable(); + containers_.set(index, value); + onChanged(); + } else { + containersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public Builder setContainers( + int index, com.google.cloud.run.v2.Container.Builder builderForValue) { + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.set(index, builderForValue.build()); + onChanged(); + } else { + containersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public Builder addContainers(com.google.cloud.run.v2.Container value) { + if (containersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainersIsMutable(); + containers_.add(value); + onChanged(); + } else { + containersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public Builder addContainers( + int index, com.google.cloud.run.v2.Container value) { + if (containersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainersIsMutable(); + containers_.add(index, value); + onChanged(); + } else { + containersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public Builder addContainers( + com.google.cloud.run.v2.Container.Builder builderForValue) { + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.add(builderForValue.build()); + onChanged(); + } else { + containersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public Builder addContainers( + int index, com.google.cloud.run.v2.Container.Builder builderForValue) { + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.add(index, builderForValue.build()); + onChanged(); + } else { + containersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public Builder addAllContainers( + java.lang.Iterable values) { + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, containers_); + onChanged(); + } else { + containersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public Builder clearContainers() { + if (containersBuilder_ == null) { + containers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + containersBuilder_.clear(); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public Builder removeContainers(int index) { + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.remove(index); + onChanged(); + } else { + containersBuilder_.remove(index); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + 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
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( + int index) { + if (containersBuilder_ == null) { + return containers_.get(index); } else { + return containersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public java.util.List + getContainersOrBuilderList() { + if (containersBuilder_ != null) { + return containersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(containers_); + } + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + public com.google.cloud.run.v2.Container.Builder addContainersBuilder() { + return getContainersFieldBuilder().addBuilder( + com.google.cloud.run.v2.Container.getDefaultInstance()); + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + 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
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + 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> + 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()); + containers_ = null; + } + return containersBuilder_; + } + + private java.util.List volumes_ = + 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_; + + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public java.util.List getVolumesList() { + if (volumesBuilder_ == null) { + return java.util.Collections.unmodifiableList(volumes_); + } else { + return volumesBuilder_.getMessageList(); + } + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public int getVolumesCount() { + if (volumesBuilder_ == null) { + return volumes_.size(); + } else { + return volumesBuilder_.getCount(); + } + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public com.google.cloud.run.v2.Volume getVolumes(int index) { + if (volumesBuilder_ == null) { + return volumes_.get(index); + } else { + return volumesBuilder_.getMessage(index); + } + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public Builder setVolumes( + int index, com.google.cloud.run.v2.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.set(index, value); + onChanged(); + } else { + volumesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public Builder setVolumes( + int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.set(index, builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public Builder addVolumes(com.google.cloud.run.v2.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.add(value); + onChanged(); + } else { + volumesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public Builder addVolumes( + int index, com.google.cloud.run.v2.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.add(index, value); + onChanged(); + } else { + volumesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public Builder addVolumes( + com.google.cloud.run.v2.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public Builder addVolumes( + int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(index, builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public Builder addAllVolumes( + java.lang.Iterable values) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); + onChanged(); + } else { + volumesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public Builder clearVolumes() { + if (volumesBuilder_ == null) { + volumes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + volumesBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public Builder removeVolumes(int index) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.remove(index); + onChanged(); + } else { + volumesBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + 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 = 15; + */ + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { + if (volumesBuilder_ == null) { + 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 = 15; + */ + public java.util.List + getVolumesOrBuilderList() { + if (volumesBuilder_ != null) { + return volumesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(volumes_); + } + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { + 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 = 15; + */ + 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 = 15; + */ + 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> + 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()); + volumes_ = null; + } + return volumesBuilder_; + } + + private int maxRetries_ ; + /** + *
+     * Number of retries allowed per Task, before marking this Task failed.
+     * 
+ * + * int32 max_retries = 16; + * @return The maxRetries. + */ + @java.lang.Override + public int getMaxRetries() { + return maxRetries_; + } + /** + *
+     * Number of retries allowed per Task, before marking this Task failed.
+     * 
+ * + * int32 max_retries = 16; + * @param value The maxRetries to set. + * @return This builder for chaining. + */ + public Builder setMaxRetries(int value) { + + maxRetries_ = value; + onChanged(); + return this; + } + /** + *
+     * Number of retries allowed per Task, before marking this Task failed.
+     * 
+ * + * int32 max_retries = 16; + * @return This builder for chaining. + */ + public Builder clearMaxRetries() { + + maxRetries_ = 0; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 17; + * @return Whether the timeout field is set. + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 17; + * @return The timeout. + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 17; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 17; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 17; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 17; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 17; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 17; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private java.lang.Object serviceAccount_ = ""; + /** + *
+     * Email address of the IAM service account associated with the Task of a
+     * Job. The service account represents the identity of the
+     * running task, and determines what permissions the task has. If
+     * not provided, the task will use the project's default service account.
+     * 
+ * + * string service_account = 18; + * @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; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Email address of the IAM service account associated with the Task of a
+     * Job. The service account represents the identity of the
+     * running task, and determines what permissions the task has. If
+     * not provided, the task will use the project's default service account.
+     * 
+ * + * string service_account = 18; + * @return The bytes for serviceAccount. + */ + 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); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Email address of the IAM service account associated with the Task of a
+     * Job. The service account represents the identity of the
+     * running task, and determines what permissions the task has. If
+     * not provided, the task will use the project's default service account.
+     * 
+ * + * string service_account = 18; + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + *
+     * Email address of the IAM service account associated with the Task of a
+     * Job. The service account represents the identity of the
+     * running task, and determines what permissions the task has. If
+     * not provided, the task will use the project's default service account.
+     * 
+ * + * string service_account = 18; + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + *
+     * Email address of the IAM service account associated with the Task of a
+     * Job. The service account represents the identity of the
+     * running task, and determines what permissions the task has. If
+     * not provided, the task will use the project's default service account.
+     * 
+ * + * string service_account = 18; + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private int executionEnvironment_ = 0; + /** + *
+     * The execution environment being used to host this Task.
+     * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * @return The enum numeric value on the wire for executionEnvironment. + */ + @java.lang.Override public int getExecutionEnvironmentValue() { + return executionEnvironment_; + } + /** + *
+     * The execution environment being used to host this Task.
+     * 
+ * + * .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 Task.
+     * 
+ * + * .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_); + return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; + } + /** + *
+     * The execution environment being used to host this Task.
+     * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * @param value The executionEnvironment to set. + * @return This builder for chaining. + */ + public Builder setExecutionEnvironment(com.google.cloud.run.v2.ExecutionEnvironment value) { + if (value == null) { + throw new NullPointerException(); + } + + executionEnvironment_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The execution environment being used to host this Task.
+     * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * @return This builder for chaining. + */ + public Builder clearExecutionEnvironment() { + + executionEnvironment_ = 0; + onChanged(); + return this; + } + + private boolean reconciling_ ; + /** + *
+     * Output only. Indicates whether the resource's reconciliation is still in progress.
+     * See comments in `Job.reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * bool reconciling = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + /** + *
+     * Output only. Indicates whether the resource's reconciliation is still in progress.
+     * See comments in `Job.reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * bool reconciling = 21 [(.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 `Job.reconciling` for additional information on
+     * reconciliation process in Cloud Run.
+     * 
+ * + * bool reconciling = 21 [(.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(); + 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_; + + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.Condition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConditions( + int index, com.google.cloud.run.v2.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConditions( + int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions(com.google.cloud.run.v2.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + int index, com.google.cloud.run.v2.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + com.google.cloud.run.v2.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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()); + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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()); + } + /** + *
+     * Output only. The Condition of this Task, containing its readiness status, and
+     * detailed error information in case it did not reach the desired state.
+     * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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> + 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()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private long observedGeneration_ ; + /** + *
+     * Output only. The generation of this Task. See comments in `Job.reconciling`
+     * for additional information on reconciliation process in Cloud Run.
+     * 
+ * + * int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The observedGeneration. + */ + @java.lang.Override + public long getObservedGeneration() { + return observedGeneration_; + } + /** + *
+     * Output only. The generation of this Task. See comments in `Job.reconciling`
+     * for additional information on reconciliation process in Cloud Run.
+     * 
+ * + * int64 observed_generation = 23 [(.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 Task. See comments in `Job.reconciling`
+     * for additional information on reconciliation process in Cloud Run.
+     * 
+ * + * int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearObservedGeneration() { + + observedGeneration_ = 0L; + onChanged(); + return this; + } + + private int index_ ; + /** + *
+     * Output only. Index of the Task, unique per execution, and beginning at 0.
+     * 
+ * + * int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + /** + *
+     * Output only. Index of the Task, unique per execution, and beginning at 0.
+     * 
+ * + * int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. Index of the Task, unique per execution, and beginning at 0.
+     * 
+ * + * int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + private int retried_ ; + /** + *
+     * Output only. The number of times this Task was retried.
+     * Tasks are retried when they fail up to the maxRetries limit.
+     * 
+ * + * int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The retried. + */ + @java.lang.Override + public int getRetried() { + return retried_; + } + /** + *
+     * Output only. The number of times this Task was retried.
+     * Tasks are retried when they fail up to the maxRetries limit.
+     * 
+ * + * int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The retried to set. + * @return This builder for chaining. + */ + public Builder setRetried(int value) { + + retried_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The number of times this Task was retried.
+     * Tasks are retried when they fail up to the maxRetries limit.
+     * 
+ * + * int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearRetried() { + + retried_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.run.v2.TaskAttemptResult lastAttemptResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskAttemptResult, com.google.cloud.run.v2.TaskAttemptResult.Builder, com.google.cloud.run.v2.TaskAttemptResultOrBuilder> lastAttemptResultBuilder_; + /** + *
+     * Output only. Result of the last attempt of this Task.
+     * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the lastAttemptResult field is set. + */ + public boolean hasLastAttemptResult() { + return lastAttemptResultBuilder_ != null || lastAttemptResult_ != null; + } + /** + *
+     * Output only. Result of the last attempt of this Task.
+     * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The lastAttemptResult. + */ + public com.google.cloud.run.v2.TaskAttemptResult getLastAttemptResult() { + if (lastAttemptResultBuilder_ == null) { + return lastAttemptResult_ == null ? com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance() : lastAttemptResult_; + } else { + return lastAttemptResultBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Result of the last attempt of this Task.
+     * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setLastAttemptResult(com.google.cloud.run.v2.TaskAttemptResult value) { + if (lastAttemptResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastAttemptResult_ = value; + onChanged(); + } else { + lastAttemptResultBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Result of the last attempt of this Task.
+     * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setLastAttemptResult( + com.google.cloud.run.v2.TaskAttemptResult.Builder builderForValue) { + if (lastAttemptResultBuilder_ == null) { + lastAttemptResult_ = builderForValue.build(); + onChanged(); + } else { + lastAttemptResultBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Result of the last attempt of this Task.
+     * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeLastAttemptResult(com.google.cloud.run.v2.TaskAttemptResult value) { + if (lastAttemptResultBuilder_ == null) { + if (lastAttemptResult_ != null) { + lastAttemptResult_ = + com.google.cloud.run.v2.TaskAttemptResult.newBuilder(lastAttemptResult_).mergeFrom(value).buildPartial(); + } else { + lastAttemptResult_ = value; + } + onChanged(); + } else { + lastAttemptResultBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Result of the last attempt of this Task.
+     * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearLastAttemptResult() { + if (lastAttemptResultBuilder_ == null) { + lastAttemptResult_ = null; + onChanged(); + } else { + lastAttemptResult_ = null; + lastAttemptResultBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Result of the last attempt of this Task.
+     * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.TaskAttemptResult.Builder getLastAttemptResultBuilder() { + + onChanged(); + return getLastAttemptResultFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Result of the last attempt of this Task.
+     * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.TaskAttemptResultOrBuilder getLastAttemptResultOrBuilder() { + if (lastAttemptResultBuilder_ != null) { + return lastAttemptResultBuilder_.getMessageOrBuilder(); + } else { + return lastAttemptResult_ == null ? + com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance() : lastAttemptResult_; + } + } + /** + *
+     * Output only. Result of the last attempt of this Task.
+     * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskAttemptResult, com.google.cloud.run.v2.TaskAttemptResult.Builder, com.google.cloud.run.v2.TaskAttemptResultOrBuilder> + getLastAttemptResultFieldBuilder() { + if (lastAttemptResultBuilder_ == null) { + lastAttemptResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskAttemptResult, com.google.cloud.run.v2.TaskAttemptResult.Builder, com.google.cloud.run.v2.TaskAttemptResultOrBuilder>( + getLastAttemptResult(), + getParentForChildren(), + isClean()); + lastAttemptResult_ = null; + } + return lastAttemptResultBuilder_; + } + + private java.lang.Object encryptionKey_ = ""; + /** + *
+     * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
+     * this container image. For more information, go to
+     * https://cloud.google.com/run/docs/securing/using-cmek
+     * 
+ * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; + java.lang.String s = bs.toStringUtf8(); + encryptionKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
+     * this container image. For more information, go to
+     * https://cloud.google.com/run/docs/securing/using-cmek
+     * 
+ * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for encryptionKey. + */ + 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); + encryptionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
+     * this container image. For more information, go to
+     * https://cloud.google.com/run/docs/securing/using-cmek
+     * 
+ * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The encryptionKey to set. + * @return This builder for chaining. + */ + public Builder setEncryptionKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + encryptionKey_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
+     * this container image. For more information, go to
+     * https://cloud.google.com/run/docs/securing/using-cmek
+     * 
+ * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearEncryptionKey() { + + encryptionKey_ = getDefaultInstance().getEncryptionKey(); + onChanged(); + return this; + } + /** + *
+     * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
+     * this container image. For more information, go to
+     * https://cloud.google.com/run/docs/securing/using-cmek
+     * 
+ * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + encryptionKey_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Output only. VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the vpcAccess field is set. + */ + public boolean hasVpcAccess() { + return vpcAccessBuilder_ != null || vpcAccess_ != null; + } + /** + *
+     * Output only. VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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_; + } else { + return vpcAccessBuilder_.getMessage(); + } + } + /** + *
+     * Output only. VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) { + if (vpcAccessBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vpcAccess_ = value; + onChanged(); + } else { + vpcAccessBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setVpcAccess( + com.google.cloud.run.v2.VpcAccess.Builder builderForValue) { + if (vpcAccessBuilder_ == null) { + vpcAccess_ = builderForValue.build(); + onChanged(); + } else { + vpcAccessBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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(); + } else { + vpcAccess_ = value; + } + onChanged(); + } else { + vpcAccessBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearVpcAccess() { + if (vpcAccessBuilder_ == null) { + vpcAccess_ = null; + onChanged(); + } else { + vpcAccess_ = null; + vpcAccessBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() { + + onChanged(); + return getVpcAccessFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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_; + } + } + /** + *
+     * Output only. VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + vpcAccess_ = null; + } + return vpcAccessBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) { + if (value == null) { + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Task) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Task) + private static final com.google.cloud.run.v2.Task DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.Task(); + } + + public static com.google.cloud.run.v2.Task getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Task parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.Task getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java new file mode 100644 index 000000000000..302b3c73d27b --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java @@ -0,0 +1,743 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Result of a task attempt.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.TaskAttemptResult} + */ +public final class TaskAttemptResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.TaskAttemptResult) + TaskAttemptResultOrBuilder { +private static final long serialVersionUID = 0L; + // Use TaskAttemptResult.newBuilder() to construct. + private TaskAttemptResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskAttemptResult() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TaskAttemptResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_TaskAttemptResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.TaskAttemptResult.class, com.google.cloud.run.v2.TaskAttemptResult.Builder.class); + } + + public static final int STATUS_FIELD_NUMBER = 1; + private com.google.rpc.Status status_; + /** + *
+   * Output only. The status of this attempt.
+   * If the status code is OK, then the attempt succeeded.
+   * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+   * Output only. The status of this attempt.
+   * If the status code is OK, then the attempt succeeded.
+   * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + *
+   * Output only. The status of this attempt.
+   * If the status code is OK, then the attempt succeeded.
+   * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + public static final int EXIT_CODE_FIELD_NUMBER = 2; + private int exitCode_; + /** + *
+   * Output only. The exit code of this attempt.
+   * This may be unset if the container was unable to exit cleanly with a code
+   * due to some other failure.
+   * See status field for possible failure details.
+   * 
+ * + * int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The exitCode. + */ + @java.lang.Override + public int getExitCode() { + return exitCode_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (status_ != null) { + output.writeMessage(1, getStatus()); + } + if (exitCode_ != 0) { + output.writeInt32(2, exitCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (exitCode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, exitCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.TaskAttemptResult)) { + return super.equals(obj); + } + com.google.cloud.run.v2.TaskAttemptResult other = (com.google.cloud.run.v2.TaskAttemptResult) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (getExitCode() + != other.getExitCode()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (37 * hash) + EXIT_CODE_FIELD_NUMBER; + hash = (53 * hash) + getExitCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( + com.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.TaskAttemptResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.TaskAttemptResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.TaskAttemptResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.TaskAttemptResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Result of a task attempt.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.TaskAttemptResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.TaskAttemptResult) + com.google.cloud.run.v2.TaskAttemptResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_TaskAttemptResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.TaskAttemptResult.class, com.google.cloud.run.v2.TaskAttemptResult.Builder.class); + } + + // Construct using com.google.cloud.run.v2.TaskAttemptResult.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + exitCode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.TaskAttemptResult getDefaultInstanceForType() { + return com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.TaskAttemptResult build() { + com.google.cloud.run.v2.TaskAttemptResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.TaskAttemptResult buildPartial() { + com.google.cloud.run.v2.TaskAttemptResult result = new com.google.cloud.run.v2.TaskAttemptResult(this); + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + result.exitCode_ = exitCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.TaskAttemptResult) { + return mergeFrom((com.google.cloud.run.v2.TaskAttemptResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.TaskAttemptResult other) { + if (other == com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.getExitCode() != 0) { + setExitCode(other.getExitCode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 16: { + exitCode_ = input.readInt32(); + + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + /** + *
+     * Output only. The status of this attempt.
+     * If the status code is OK, then the attempt succeeded.
+     * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + *
+     * Output only. The status of this attempt.
+     * If the status code is OK, then the attempt succeeded.
+     * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The status of this attempt.
+     * If the status code is OK, then the attempt succeeded.
+     * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The status of this attempt.
+     * If the status code is OK, then the attempt succeeded.
+     * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The status of this attempt.
+     * If the status code is OK, then the attempt succeeded.
+     * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = + com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The status of this attempt.
+     * If the status code is OK, then the attempt succeeded.
+     * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The status of this attempt.
+     * If the status code is OK, then the attempt succeeded.
+     * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The status of this attempt.
+     * If the status code is OK, then the attempt succeeded.
+     * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + *
+     * Output only. The status of this attempt.
+     * If the status code is OK, then the attempt succeeded.
+     * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private int exitCode_ ; + /** + *
+     * Output only. The exit code of this attempt.
+     * This may be unset if the container was unable to exit cleanly with a code
+     * due to some other failure.
+     * See status field for possible failure details.
+     * 
+ * + * int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The exitCode. + */ + @java.lang.Override + public int getExitCode() { + return exitCode_; + } + /** + *
+     * Output only. The exit code of this attempt.
+     * This may be unset if the container was unable to exit cleanly with a code
+     * due to some other failure.
+     * See status field for possible failure details.
+     * 
+ * + * int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The exitCode to set. + * @return This builder for chaining. + */ + public Builder setExitCode(int value) { + + exitCode_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The exit code of this attempt.
+     * This may be unset if the container was unable to exit cleanly with a code
+     * due to some other failure.
+     * See status field for possible failure details.
+     * 
+ * + * int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearExitCode() { + + exitCode_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.TaskAttemptResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.TaskAttemptResult) + private static final com.google.cloud.run.v2.TaskAttemptResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.TaskAttemptResult(); + } + + public static com.google.cloud.run.v2.TaskAttemptResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskAttemptResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.TaskAttemptResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java new file mode 100644 index 000000000000..2582b521e527 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +public interface TaskAttemptResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TaskAttemptResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The status of this attempt.
+   * If the status code is OK, then the attempt succeeded.
+   * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+   * Output only. The status of this attempt.
+   * If the status code is OK, then the attempt succeeded.
+   * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The status. + */ + com.google.rpc.Status getStatus(); + /** + *
+   * Output only. The status of this attempt.
+   * If the status code is OK, then the attempt succeeded.
+   * 
+ * + * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + + /** + *
+   * Output only. The exit code of this attempt.
+   * This may be unset if the container was unable to exit cleanly with a code
+   * due to some other failure.
+   * See status field for possible failure details.
+   * 
+ * + * int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The exitCode. + */ + int getExitCode(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java new file mode 100644 index 000000000000..7a9e194efb1b --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java @@ -0,0 +1,289 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TaskName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_JOB_EXECUTION_TASK = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String job; + private final String execution; + private final String task; + + @Deprecated + protected TaskName() { + project = null; + location = null; + job = null; + execution = null; + task = null; + } + + private TaskName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + job = Preconditions.checkNotNull(builder.getJob()); + execution = Preconditions.checkNotNull(builder.getExecution()); + task = Preconditions.checkNotNull(builder.getTask()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public String getExecution() { + return execution; + } + + public String getTask() { + return task; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TaskName of( + String project, String location, String job, String execution, String task) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setJob(job) + .setExecution(execution) + .setTask(task) + .build(); + } + + public static String format( + String project, String location, String job, String execution, String task) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setJob(job) + .setExecution(execution) + .setTask(task) + .build() + .toString(); + } + + public static TaskName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_JOB_EXECUTION_TASK.validatedMatch( + formattedString, "TaskName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("job"), + matchMap.get("execution"), + matchMap.get("task")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TaskName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_JOB_EXECUTION_TASK.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (job != null) { + fieldMapBuilder.put("job", job); + } + if (execution != null) { + fieldMapBuilder.put("execution", execution); + } + if (task != null) { + fieldMapBuilder.put("task", task); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_JOB_EXECUTION_TASK.instantiate( + "project", project, "location", location, "job", job, "execution", execution, "task", task); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + TaskName that = ((TaskName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.job, that.job) + && Objects.equals(this.execution, that.execution) + && Objects.equals(this.task, that.task); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(job); + h *= 1000003; + h ^= Objects.hashCode(execution); + h *= 1000003; + h ^= Objects.hashCode(task); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}. + */ + public static class Builder { + private String project; + private String location; + private String job; + private String execution; + private String task; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public String getExecution() { + return execution; + } + + public String getTask() { + return task; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setJob(String job) { + this.job = job; + return this; + } + + public Builder setExecution(String execution) { + this.execution = execution; + return this; + } + + public Builder setTask(String task) { + this.task = task; + return this; + } + + private Builder(TaskName taskName) { + this.project = taskName.project; + this.location = taskName.location; + this.job = taskName.job; + this.execution = taskName.execution; + this.task = taskName.task; + } + + public TaskName build() { + return new TaskName(this); + } + } +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java new file mode 100644 index 000000000000..a8baaa32c293 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java @@ -0,0 +1,817 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +public interface TaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Task) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The unique name of this Task.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Output only. The unique name of this Task.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Output only. Server assigned unique identifier for the Task. 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 Task. 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(); + + /** + *
+   * 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
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * KRM-style labels for the resource.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels
+   * Cloud Run will populate some labels with 'run.googleapis.com' or
+   * 'serving.knative.dev' namespaces. Those labels are read-only, and user
+   * changes will not be preserved.
+   * 
+ * + * map<string, string> labels = 4; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + int getAnnotationsCount(); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAnnotations(); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + java.util.Map + getAnnotationsMap(); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + + /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * KRM-style annotations for the resource.
+   * 
+ * + * map<string, string> annotations = 5; + */ + + java.lang.String getAnnotationsOrThrow( + java.lang.String key); + + /** + *
+   * Output only. Represents time when the task was created by the job controller.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Output only. Represents time when the task was created by the job controller.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. Represents time when the task was created by the job controller.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. Represents time when the task started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + *
+   * Output only. Represents time when the task started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + *
+   * Output only. Represents time when the task started to run.
+   * It is not guaranteed to be set in happens-before order across separate
+   * operations.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + *
+   * Output only. Represents time when the Task was completed. It is not guaranteed to
+   * be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the completionTime field is set. + */ + boolean hasCompletionTime(); + /** + *
+   * Output only. Represents time when the Task was completed. It is not guaranteed to
+   * be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The completionTime. + */ + com.google.protobuf.Timestamp getCompletionTime(); + /** + *
+   * Output only. Represents time when the Task was completed. It is not guaranteed to
+   * be set in happens-before order across separate operations.
+   * 
+ * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); + + /** + *
+   * Output only. The last-modified time.
+   * 
+ * + * .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]; + * @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]; + */ + 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 = 9 [(.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 = 9 [(.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 = 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. It is only populated as a response to a Delete
+   * request.
+   * 
+ * + * .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. It is only populated as a response to a Delete
+   * request.
+   * 
+ * + * .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. It is only populated as a response to a Delete
+   * request.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + *
+   * Output only. The name of the parent Job.
+   * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The job. + */ + java.lang.String getJob(); + /** + *
+   * Output only. The name of the parent Job.
+   * 
+ * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for job. + */ + com.google.protobuf.ByteString + getJobBytes(); + + /** + *
+   * Output only. The name of the parent Execution.
+   * 
+ * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The execution. + */ + java.lang.String getExecution(); + /** + *
+   * Output only. The name of the parent Execution.
+   * 
+ * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for execution. + */ + com.google.protobuf.ByteString + getExecutionBytes(); + + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + java.util.List + getContainersList(); + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + com.google.cloud.run.v2.Container getContainers(int index); + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + int getContainersCount(); + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + java.util.List + getContainersOrBuilderList(); + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 14; + */ + 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 = 15; + */ + java.util.List + getVolumesList(); + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + 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 = 15; + */ + int getVolumesCount(); + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + java.util.List + getVolumesOrBuilderList(); + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 15; + */ + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index); + + /** + *
+   * Number of retries allowed per Task, before marking this Task failed.
+   * 
+ * + * int32 max_retries = 16; + * @return The maxRetries. + */ + int getMaxRetries(); + + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 17; + * @return Whether the timeout field is set. + */ + boolean hasTimeout(); + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 17; + * @return The timeout. + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 17; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+   * Email address of the IAM service account associated with the Task of a
+   * Job. The service account represents the identity of the
+   * running task, and determines what permissions the task has. If
+   * not provided, the task will use the project's default service account.
+   * 
+ * + * string service_account = 18; + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + *
+   * Email address of the IAM service account associated with the Task of a
+   * Job. The service account represents the identity of the
+   * running task, and determines what permissions the task has. If
+   * not provided, the task will use the project's default service account.
+   * 
+ * + * string service_account = 18; + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString + getServiceAccountBytes(); + + /** + *
+   * The execution environment being used to host this Task.
+   * 
+ * + * .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 Task.
+   * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * @return The executionEnvironment. + */ + com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment(); + + /** + *
+   * Output only. Indicates whether the resource's reconciliation is still in progress.
+   * See comments in `Job.reconciling` for additional information on
+   * reconciliation process in Cloud Run.
+   * 
+ * + * bool reconciling = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + boolean getReconciling(); + + /** + *
+   * Output only. The Condition of this Task, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConditionsList(); + /** + *
+   * Output only. The Condition of this Task, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.run.v2.Condition getConditions(int index); + /** + *
+   * Output only. The Condition of this Task, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getConditionsCount(); + /** + *
+   * Output only. The Condition of this Task, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Output only. The Condition of this Task, containing its readiness status, and
+   * detailed error information in case it did not reach the desired state.
+   * 
+ * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( + int index); + + /** + *
+   * Output only. The generation of this Task. See comments in `Job.reconciling`
+   * for additional information on reconciliation process in Cloud Run.
+   * 
+ * + * int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The observedGeneration. + */ + long getObservedGeneration(); + + /** + *
+   * Output only. Index of the Task, unique per execution, and beginning at 0.
+   * 
+ * + * int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The index. + */ + int getIndex(); + + /** + *
+   * Output only. The number of times this Task was retried.
+   * Tasks are retried when they fail up to the maxRetries limit.
+   * 
+ * + * int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The retried. + */ + int getRetried(); + + /** + *
+   * Output only. Result of the last attempt of this Task.
+   * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the lastAttemptResult field is set. + */ + boolean hasLastAttemptResult(); + /** + *
+   * Output only. Result of the last attempt of this Task.
+   * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The lastAttemptResult. + */ + com.google.cloud.run.v2.TaskAttemptResult getLastAttemptResult(); + /** + *
+   * Output only. Result of the last attempt of this Task.
+   * 
+ * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.run.v2.TaskAttemptResultOrBuilder getLastAttemptResultOrBuilder(); + + /** + *
+   * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
+   * this container image. For more information, go to
+   * https://cloud.google.com/run/docs/securing/using-cmek
+   * 
+ * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The encryptionKey. + */ + java.lang.String getEncryptionKey(); + /** + *
+   * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
+   * this container image. For more information, go to
+   * https://cloud.google.com/run/docs/securing/using-cmek
+   * 
+ * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for encryptionKey. + */ + com.google.protobuf.ByteString + getEncryptionKeyBytes(); + + /** + *
+   * Output only. VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the vpcAccess field is set. + */ + boolean hasVpcAccess(); + /** + *
+   * Output only. VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The vpcAccess. + */ + com.google.cloud.run.v2.VpcAccess getVpcAccess(); + /** + *
+   * Output only. VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder(); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java new file mode 100644 index 000000000000..f4390fa13950 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java @@ -0,0 +1,211 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +public final class TaskProto { + private TaskProto() {} + 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_GetTaskRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Task_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Task_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Task_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Task_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Task_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_TaskAttemptResult_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\036google/cloud/run/v2/task.proto\022\023google" + + ".cloud.run.v2\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032#google/cloud/run/v2/condition." + + "proto\032!google/cloud/run/v2/k8s.min.proto" + + "\032)google/cloud/run/v2/vendor_settings.pr" + + "oto\032\036google/protobuf/duration.proto\032\037goo" + + "gle/protobuf/timestamp.proto\032\027google/rpc" + + "/status.proto\"?\n\016GetTaskRequest\022-\n\004name\030" + + "\001 \001(\tB\037\340A\002\372A\031\n\027run.googleapis.com/Task\"\200" + + "\001\n\020ListTasksRequest\022/\n\006parent\030\001 \001(\tB\037\340A\002" + + "\372A\031\022\027run.googleapis.com/Task\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_dele" + + "ted\030\004 \001(\010\"V\n\021ListTasksResponse\022(\n\005tasks\030" + + "\001 \003(\0132\031.google.cloud.run.v2.Task\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\303\013\n\004Task\022\021\n\004name\030\001 \001(\t" + + "B\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\0225\n\006labels\030\004 \003(\0132%.google.cloud." + + "run.v2.Task.LabelsEntry\022?\n\013annotations\030\005" + + " \003(\0132*.google.cloud.run.v2.Task.Annotati" + + "onsEntry\0224\n\013create_time\030\006 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0223\n\nstart_time\030\033 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0228\n\017c" + + "ompletion_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013delete_ti" + + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013expire_time\030\n \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022+\n\003job\030\014 \001(\tB\036\340A\003\372A\030\n\026ru" + + "n.googleapis.com/Job\0227\n\texecution\030\r \001(\tB" + + "$\340A\003\372A\036\n\034run.googleapis.com/Execution\0222\n" + + "\ncontainers\030\016 \003(\0132\036.google.cloud.run.v2." + + "Container\022,\n\007volumes\030\017 \003(\0132\033.google.clou" + + "d.run.v2.Volume\022\023\n\013max_retries\030\020 \001(\005\022*\n\007" + + "timeout\030\021 \001(\0132\031.google.protobuf.Duration" + + "\022\027\n\017service_account\030\022 \001(\t\022H\n\025execution_e" + + "nvironment\030\024 \001(\0162).google.cloud.run.v2.E" + + "xecutionEnvironment\022\030\n\013reconciling\030\025 \001(\010" + + "B\003\340A\003\0227\n\nconditions\030\026 \003(\0132\036.google.cloud" + + ".run.v2.ConditionB\003\340A\003\022 \n\023observed_gener" + + "ation\030\027 \001(\003B\003\340A\003\022\022\n\005index\030\030 \001(\005B\003\340A\003\022\024\n\007" + + "retried\030\031 \001(\005B\003\340A\003\022H\n\023last_attempt_resul" + + "t\030\032 \001(\0132&.google.cloud.run.v2.TaskAttemp" + + "tResultB\003\340A\003\022A\n\016encryption_key\030\034 \001(\tB)\340A" + + "\003\372A#\n!cloudkms.googleapis.com/CryptoKey\022" + + "7\n\nvpc_access\030\035 \001(\0132\036.google.cloud.run.v" + + "2.VpcAccessB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001:w\352At\n\027run.googleapis.com/" + + "Task\022Vprojects/{project}/locations/{loca" + + "tion}/jobs/{job}/executions/{execution}/" + + "tasks/{task}R\001\001\"T\n\021TaskAttemptResult\022\'\n\006" + + "status\030\001 \001(\0132\022.google.rpc.StatusB\003\340A\003\022\026\n" + + "\texit_code\030\002 \001(\005B\003\340A\0032\226\003\n\005Tasks\022\227\001\n\007GetT" + + "ask\022#.google.cloud.run.v2.GetTaskRequest" + + "\032\031.google.cloud.run.v2.Task\"L\202\323\344\223\002?\022=/v2" + + "/{name=projects/*/locations/*/jobs/*/exe" + + "cutions/*/tasks/*}\332A\004name\022\252\001\n\tListTasks\022" + + "%.google.cloud.run.v2.ListTasksRequest\032&" + + ".google.cloud.run.v2.ListTasksResponse\"N" + + "\202\323\344\223\002?\022=/v2/{parent=projects/*/locations" + + "/*/jobs/*/executions/*}/tasks\332A\006parent\032F" + + "\312A\022run.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformB^\n\027com.go" + + "ogle.cloud.run.v2B\tTaskProtoP\001Z6google.g" + + "olang.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.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.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_GetTaskRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetTaskRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_run_v2_ListTasksRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListTasksRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); + internal_static_google_cloud_run_v2_ListTasksResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListTasksResponse_descriptor, + new java.lang.String[] { "Tasks", "NextPageToken", }); + internal_static_google_cloud_run_v2_Task_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_Task_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Task_descriptor, + new java.lang.String[] { "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "StartTime", "CompletionTime", "UpdateTime", "DeleteTime", "ExpireTime", "Job", "Execution", "Containers", "Volumes", "MaxRetries", "Timeout", "ServiceAccount", "ExecutionEnvironment", "Reconciling", "Conditions", "ObservedGeneration", "Index", "Retried", "LastAttemptResult", "EncryptionKey", "VpcAccess", "Etag", }); + internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Task_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Task_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_Task_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Task_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Task_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Task_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_TaskAttemptResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor, + new java.lang.String[] { "Status", "ExitCode", }); + 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); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.K8sMinProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java new file mode 100644 index 000000000000..d059e0cc335c --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java @@ -0,0 +1,2488 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task_template.proto + +package com.google.cloud.run.v2; + +/** + *
+ * TaskTemplate describes the data a task should have when created
+ * from a template.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.TaskTemplate} + */ +public final class TaskTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.TaskTemplate) + TaskTemplateOrBuilder { +private static final long serialVersionUID = 0L; + // Use TaskTemplate.newBuilder() to construct. + private TaskTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskTemplate() { + containers_ = java.util.Collections.emptyList(); + volumes_ = java.util.Collections.emptyList(); + serviceAccount_ = ""; + executionEnvironment_ = 0; + encryptionKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TaskTemplate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskTemplateProto.internal_static_google_cloud_run_v2_TaskTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskTemplateProto.internal_static_google_cloud_run_v2_TaskTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.TaskTemplate.class, com.google.cloud.run.v2.TaskTemplate.Builder.class); + } + + private int retriesCase_ = 0; + private java.lang.Object retries_; + public enum RetriesCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAX_RETRIES(3), + RETRIES_NOT_SET(0); + private final int value; + private RetriesCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RetriesCase valueOf(int value) { + return forNumber(value); + } + + public static RetriesCase forNumber(int value) { + switch (value) { + case 3: return MAX_RETRIES; + case 0: return RETRIES_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RetriesCase + getRetriesCase() { + return RetriesCase.forNumber( + retriesCase_); + } + + public static final int CONTAINERS_FIELD_NUMBER = 1; + private java.util.List containers_; + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + @java.lang.Override + public java.util.List getContainersList() { + return containers_; + } + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + @java.lang.Override + public java.util.List + getContainersOrBuilderList() { + return containers_; + } + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + @java.lang.Override + public int getContainersCount() { + return containers_.size(); + } + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + @java.lang.Override + 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
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + @java.lang.Override + public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( + int index) { + return containers_.get(index); + } + + public static final int VOLUMES_FIELD_NUMBER = 2; + private java.util.List volumes_; + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + @java.lang.Override + public java.util.List getVolumesList() { + return volumes_; + } + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + @java.lang.Override + public java.util.List + getVolumesOrBuilderList() { + return volumes_; + } + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + @java.lang.Override + public int getVolumesCount() { + return volumes_.size(); + } + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + @java.lang.Override + public com.google.cloud.run.v2.Volume getVolumes(int index) { + return volumes_.get(index); + } + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + @java.lang.Override + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { + return volumes_.get(index); + } + + public static final int MAX_RETRIES_FIELD_NUMBER = 3; + /** + *
+   * Number of retries allowed per Task, before marking this Task failed.
+   * 
+ * + * int32 max_retries = 3; + * @return Whether the maxRetries field is set. + */ + @java.lang.Override + public boolean hasMaxRetries() { + return retriesCase_ == 3; + } + /** + *
+   * Number of retries allowed per Task, before marking this Task failed.
+   * 
+ * + * int32 max_retries = 3; + * @return The maxRetries. + */ + @java.lang.Override + public int getMaxRetries() { + if (retriesCase_ == 3) { + return (java.lang.Integer) retries_; + } + return 0; + } + + public static final int TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration timeout_; + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 4; + * @return Whether the timeout field is set. + */ + @java.lang.Override + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 4; + * @return The timeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5; + private volatile java.lang.Object serviceAccount_; + /** + *
+   * Email address of the IAM service account associated with the Task of a
+   * Job. The service account represents the identity of the
+   * running task, and determines what permissions the task has. If
+   * not provided, the task will use the project's default service account.
+   * 
+ * + * string service_account = 5; + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + *
+   * Email address of the IAM service account associated with the Task of a
+   * Job. The service account represents the identity of the
+   * running task, and determines what permissions the task has. If
+   * not provided, the task will use the project's default service account.
+   * 
+ * + * string service_account = 5; + * @return The bytes for serviceAccount. + */ + @java.lang.Override + 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); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 6; + private int executionEnvironment_; + /** + *
+   * The execution environment being used to host this Task.
+   * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * @return The enum numeric value on the wire for executionEnvironment. + */ + @java.lang.Override public int getExecutionEnvironmentValue() { + return executionEnvironment_; + } + /** + *
+   * The execution environment being used to host this Task.
+   * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * @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_); + return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; + } + + public static final int ENCRYPTION_KEY_FIELD_NUMBER = 7; + 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
+   * https://cloud.google.com/run/docs/securing/using-cmek
+   * 
+ * + * string encryption_key = 7 [(.google.api.resource_reference) = { ... } + * @return The encryptionKey. + */ + @java.lang.Override + public java.lang.String getEncryptionKey() { + java.lang.Object ref = encryptionKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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
+   * https://cloud.google.com/run/docs/securing/using-cmek
+   * 
+ * + * string encryption_key = 7 [(.google.api.resource_reference) = { ... } + * @return The bytes for encryptionKey. + */ + @java.lang.Override + 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); + encryptionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPC_ACCESS_FIELD_NUMBER = 8; + private com.google.cloud.run.v2.VpcAccess vpcAccess_; + /** + *
+   * VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * @return Whether the vpcAccess field is set. + */ + @java.lang.Override + public boolean hasVpcAccess() { + return vpcAccess_ != null; + } + /** + *
+   * VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * @return The vpcAccess. + */ + @java.lang.Override + 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 Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + */ + @java.lang.Override + public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { + return getVpcAccess(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < containers_.size(); i++) { + output.writeMessage(1, containers_.get(i)); + } + for (int i = 0; i < volumes_.size(); i++) { + output.writeMessage(2, volumes_.get(i)); + } + if (retriesCase_ == 3) { + output.writeInt32( + 3, (int)((java.lang.Integer) retries_)); + } + if (timeout_ != null) { + output.writeMessage(4, getTimeout()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccount_); + } + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + output.writeEnum(6, executionEnvironment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, encryptionKey_); + } + if (vpcAccess_ != null) { + output.writeMessage(8, getVpcAccess()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < containers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, containers_.get(i)); + } + for (int i = 0; i < volumes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, volumes_.get(i)); + } + if (retriesCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 3, (int)((java.lang.Integer) retries_)); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeout()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccount_); + } + if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, executionEnvironment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, encryptionKey_); + } + if (vpcAccess_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getVpcAccess()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.TaskTemplate)) { + return super.equals(obj); + } + com.google.cloud.run.v2.TaskTemplate other = (com.google.cloud.run.v2.TaskTemplate) obj; + + if (!getContainersList() + .equals(other.getContainersList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) 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 (executionEnvironment_ != other.executionEnvironment_) return false; + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; + if (hasVpcAccess() != other.hasVpcAccess()) return false; + if (hasVpcAccess()) { + if (!getVpcAccess() + .equals(other.getVpcAccess())) return false; + } + if (!getRetriesCase().equals(other.getRetriesCase())) return false; + switch (retriesCase_) { + case 3: + if (getMaxRetries() + != other.getMaxRetries()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getContainersCount() > 0) { + hash = (37 * hash) + CONTAINERS_FIELD_NUMBER; + hash = (53 * hash) + getContainersList().hashCode(); + } + if (getVolumesCount() > 0) { + hash = (37 * hash) + VOLUMES_FIELD_NUMBER; + hash = (53 * hash) + getVolumesList().hashCode(); + } + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (37 * hash) + EXECUTION_ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + executionEnvironment_; + hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionKey().hashCode(); + if (hasVpcAccess()) { + hash = (37 * hash) + VPC_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + getVpcAccess().hashCode(); + } + switch (retriesCase_) { + case 3: + hash = (37 * hash) + MAX_RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getMaxRetries(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.TaskTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.TaskTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.TaskTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.TaskTemplate parseFrom( + com.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.TaskTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.TaskTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.TaskTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.TaskTemplate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.TaskTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.TaskTemplate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.TaskTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.TaskTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.TaskTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * TaskTemplate describes the data a task should have when created
+   * from a template.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.TaskTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.TaskTemplate) + com.google.cloud.run.v2.TaskTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.TaskTemplateProto.internal_static_google_cloud_run_v2_TaskTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.TaskTemplateProto.internal_static_google_cloud_run_v2_TaskTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.TaskTemplate.class, com.google.cloud.run.v2.TaskTemplate.Builder.class); + } + + // Construct using com.google.cloud.run.v2.TaskTemplate.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (containersBuilder_ == null) { + containers_ = java.util.Collections.emptyList(); + } else { + containers_ = null; + containersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (volumesBuilder_ == null) { + volumes_ = java.util.Collections.emptyList(); + } else { + volumes_ = null; + volumesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + serviceAccount_ = ""; + + executionEnvironment_ = 0; + + encryptionKey_ = ""; + + if (vpcAccessBuilder_ == null) { + vpcAccess_ = null; + } else { + vpcAccess_ = null; + vpcAccessBuilder_ = null; + } + retriesCase_ = 0; + retries_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.TaskTemplateProto.internal_static_google_cloud_run_v2_TaskTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.TaskTemplate getDefaultInstanceForType() { + return com.google.cloud.run.v2.TaskTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.TaskTemplate build() { + com.google.cloud.run.v2.TaskTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.TaskTemplate buildPartial() { + com.google.cloud.run.v2.TaskTemplate result = new com.google.cloud.run.v2.TaskTemplate(this); + int from_bitField0_ = bitField0_; + if (containersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + containers_ = java.util.Collections.unmodifiableList(containers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.containers_ = containers_; + } else { + result.containers_ = containersBuilder_.build(); + } + if (volumesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + volumes_ = java.util.Collections.unmodifiableList(volumes_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.volumes_ = volumes_; + } else { + result.volumes_ = volumesBuilder_.build(); + } + if (retriesCase_ == 3) { + result.retries_ = retries_; + } + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + result.serviceAccount_ = serviceAccount_; + result.executionEnvironment_ = executionEnvironment_; + result.encryptionKey_ = encryptionKey_; + if (vpcAccessBuilder_ == null) { + result.vpcAccess_ = vpcAccess_; + } else { + result.vpcAccess_ = vpcAccessBuilder_.build(); + } + result.retriesCase_ = retriesCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.TaskTemplate) { + return mergeFrom((com.google.cloud.run.v2.TaskTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.TaskTemplate other) { + if (other == com.google.cloud.run.v2.TaskTemplate.getDefaultInstance()) return this; + if (containersBuilder_ == null) { + if (!other.containers_.isEmpty()) { + if (containers_.isEmpty()) { + containers_ = other.containers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContainersIsMutable(); + containers_.addAll(other.containers_); + } + onChanged(); + } + } else { + if (!other.containers_.isEmpty()) { + if (containersBuilder_.isEmpty()) { + containersBuilder_.dispose(); + containersBuilder_ = null; + containers_ = other.containers_; + bitField0_ = (bitField0_ & ~0x00000001); + containersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getContainersFieldBuilder() : null; + } else { + containersBuilder_.addAllMessages(other.containers_); + } + } + } + if (volumesBuilder_ == null) { + if (!other.volumes_.isEmpty()) { + if (volumes_.isEmpty()) { + volumes_ = other.volumes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureVolumesIsMutable(); + volumes_.addAll(other.volumes_); + } + onChanged(); + } + } else { + if (!other.volumes_.isEmpty()) { + if (volumesBuilder_.isEmpty()) { + volumesBuilder_.dispose(); + volumesBuilder_ = null; + volumes_ = other.volumes_; + bitField0_ = (bitField0_ & ~0x00000002); + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVolumesFieldBuilder() : null; + } else { + volumesBuilder_.addAllMessages(other.volumes_); + } + } + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + if (other.executionEnvironment_ != 0) { + setExecutionEnvironmentValue(other.getExecutionEnvironmentValue()); + } + if (!other.getEncryptionKey().isEmpty()) { + encryptionKey_ = other.encryptionKey_; + onChanged(); + } + if (other.hasVpcAccess()) { + mergeVpcAccess(other.getVpcAccess()); + } + switch (other.getRetriesCase()) { + case MAX_RETRIES: { + setMaxRetries(other.getMaxRetries()); + break; + } + case RETRIES_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.run.v2.Container m = + input.readMessage( + com.google.cloud.run.v2.Container.parser(), + extensionRegistry); + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.add(m); + } else { + containersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.cloud.run.v2.Volume m = + input.readMessage( + com.google.cloud.run.v2.Volume.parser(), + extensionRegistry); + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(m); + } else { + volumesBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + retries_ = input.readInt32(); + retriesCase_ = 3; + break; + } // case 24 + case 34: { + input.readMessage( + getTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + executionEnvironment_ = input.readEnum(); + + break; + } // case 48 + case 58: { + encryptionKey_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + input.readMessage( + getVpcAccessFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int retriesCase_ = 0; + private java.lang.Object retries_; + public RetriesCase + getRetriesCase() { + return RetriesCase.forNumber( + retriesCase_); + } + + public Builder clearRetries() { + retriesCase_ = 0; + retries_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.util.List containers_ = + java.util.Collections.emptyList(); + private void ensureContainersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + containers_ = new java.util.ArrayList(containers_); + bitField0_ |= 0x00000001; + } + } + + 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_; + + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public java.util.List getContainersList() { + if (containersBuilder_ == null) { + return java.util.Collections.unmodifiableList(containers_); + } else { + return containersBuilder_.getMessageList(); + } + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public int getContainersCount() { + if (containersBuilder_ == null) { + return containers_.size(); + } else { + return containersBuilder_.getCount(); + } + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public com.google.cloud.run.v2.Container getContainers(int index) { + if (containersBuilder_ == null) { + return containers_.get(index); + } else { + return containersBuilder_.getMessage(index); + } + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public Builder setContainers( + int index, com.google.cloud.run.v2.Container value) { + if (containersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainersIsMutable(); + containers_.set(index, value); + onChanged(); + } else { + containersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public Builder setContainers( + int index, com.google.cloud.run.v2.Container.Builder builderForValue) { + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.set(index, builderForValue.build()); + onChanged(); + } else { + containersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public Builder addContainers(com.google.cloud.run.v2.Container value) { + if (containersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainersIsMutable(); + containers_.add(value); + onChanged(); + } else { + containersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public Builder addContainers( + int index, com.google.cloud.run.v2.Container value) { + if (containersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainersIsMutable(); + containers_.add(index, value); + onChanged(); + } else { + containersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public Builder addContainers( + com.google.cloud.run.v2.Container.Builder builderForValue) { + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.add(builderForValue.build()); + onChanged(); + } else { + containersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public Builder addContainers( + int index, com.google.cloud.run.v2.Container.Builder builderForValue) { + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.add(index, builderForValue.build()); + onChanged(); + } else { + containersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public Builder addAllContainers( + java.lang.Iterable values) { + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, containers_); + onChanged(); + } else { + containersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public Builder clearContainers() { + if (containersBuilder_ == null) { + containers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + containersBuilder_.clear(); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public Builder removeContainers(int index) { + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.remove(index); + onChanged(); + } else { + containersBuilder_.remove(index); + } + return this; + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + 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
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( + int index) { + if (containersBuilder_ == null) { + return containers_.get(index); } else { + return containersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public java.util.List + getContainersOrBuilderList() { + if (containersBuilder_ != null) { + return containersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(containers_); + } + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + public com.google.cloud.run.v2.Container.Builder addContainersBuilder() { + return getContainersFieldBuilder().addBuilder( + com.google.cloud.run.v2.Container.getDefaultInstance()); + } + /** + *
+     * Holds the single container that defines the unit of execution for this
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + 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
+     * task.
+     * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + 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> + 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_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + containers_ = null; + } + return containersBuilder_; + } + + private java.util.List volumes_ = + java.util.Collections.emptyList(); + private void ensureVolumesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + volumes_ = new java.util.ArrayList(volumes_); + bitField0_ |= 0x00000002; + } + } + + 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_; + + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public java.util.List getVolumesList() { + if (volumesBuilder_ == null) { + return java.util.Collections.unmodifiableList(volumes_); + } else { + return volumesBuilder_.getMessageList(); + } + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public int getVolumesCount() { + if (volumesBuilder_ == null) { + return volumes_.size(); + } else { + return volumesBuilder_.getCount(); + } + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public com.google.cloud.run.v2.Volume getVolumes(int index) { + if (volumesBuilder_ == null) { + return volumes_.get(index); + } else { + return volumesBuilder_.getMessage(index); + } + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public Builder setVolumes( + int index, com.google.cloud.run.v2.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.set(index, value); + onChanged(); + } else { + volumesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public Builder setVolumes( + int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.set(index, builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public Builder addVolumes(com.google.cloud.run.v2.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.add(value); + onChanged(); + } else { + volumesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public Builder addVolumes( + int index, com.google.cloud.run.v2.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.add(index, value); + onChanged(); + } else { + volumesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public Builder addVolumes( + com.google.cloud.run.v2.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public Builder addVolumes( + int index, com.google.cloud.run.v2.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(index, builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public Builder addAllVolumes( + java.lang.Iterable values) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); + onChanged(); + } else { + volumesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public Builder clearVolumes() { + if (volumesBuilder_ == null) { + volumes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + volumesBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public Builder removeVolumes(int index) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.remove(index); + onChanged(); + } else { + volumesBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + 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 = 2; + */ + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index) { + if (volumesBuilder_ == null) { + 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 = 2; + */ + public java.util.List + getVolumesOrBuilderList() { + if (volumesBuilder_ != null) { + return volumesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(volumes_); + } + } + /** + *
+     * A list of Volumes to make available to containers.
+     * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { + 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 = 2; + */ + 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 = 2; + */ + 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> + 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_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + volumes_ = null; + } + return volumesBuilder_; + } + + /** + *
+     * Number of retries allowed per Task, before marking this Task failed.
+     * 
+ * + * int32 max_retries = 3; + * @return Whether the maxRetries field is set. + */ + public boolean hasMaxRetries() { + return retriesCase_ == 3; + } + /** + *
+     * Number of retries allowed per Task, before marking this Task failed.
+     * 
+ * + * int32 max_retries = 3; + * @return The maxRetries. + */ + public int getMaxRetries() { + if (retriesCase_ == 3) { + return (java.lang.Integer) retries_; + } + return 0; + } + /** + *
+     * Number of retries allowed per Task, before marking this Task failed.
+     * 
+ * + * int32 max_retries = 3; + * @param value The maxRetries to set. + * @return This builder for chaining. + */ + public Builder setMaxRetries(int value) { + retriesCase_ = 3; + retries_ = value; + onChanged(); + return this; + } + /** + *
+     * Number of retries allowed per Task, before marking this Task failed.
+     * 
+ * + * int32 max_retries = 3; + * @return This builder for chaining. + */ + public Builder clearMaxRetries() { + if (retriesCase_ == 3) { + retriesCase_ = 0; + retries_ = null; + onChanged(); + } + return this; + } + + 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_; + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + * @return Whether the timeout field is set. + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + * @return The timeout. + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+     * Max allowed time duration the Task may be active before the system will
+     * actively try to mark it failed and kill associated containers. This applies
+     * per attempt of a task, meaning each retry can run for the full timeout.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private java.lang.Object serviceAccount_ = ""; + /** + *
+     * Email address of the IAM service account associated with the Task of a
+     * Job. The service account represents the identity of the
+     * running task, and determines what permissions the task has. If
+     * not provided, the task will use the project's default service account.
+     * 
+ * + * string service_account = 5; + * @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; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Email address of the IAM service account associated with the Task of a
+     * Job. The service account represents the identity of the
+     * running task, and determines what permissions the task has. If
+     * not provided, the task will use the project's default service account.
+     * 
+ * + * string service_account = 5; + * @return The bytes for serviceAccount. + */ + 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); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Email address of the IAM service account associated with the Task of a
+     * Job. The service account represents the identity of the
+     * running task, and determines what permissions the task has. If
+     * not provided, the task will use the project's default service account.
+     * 
+ * + * string service_account = 5; + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + *
+     * Email address of the IAM service account associated with the Task of a
+     * Job. The service account represents the identity of the
+     * running task, and determines what permissions the task has. If
+     * not provided, the task will use the project's default service account.
+     * 
+ * + * string service_account = 5; + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + *
+     * Email address of the IAM service account associated with the Task of a
+     * Job. The service account represents the identity of the
+     * running task, and determines what permissions the task has. If
+     * not provided, the task will use the project's default service account.
+     * 
+ * + * string service_account = 5; + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private int executionEnvironment_ = 0; + /** + *
+     * The execution environment being used to host this Task.
+     * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * @return The enum numeric value on the wire for executionEnvironment. + */ + @java.lang.Override public int getExecutionEnvironmentValue() { + return executionEnvironment_; + } + /** + *
+     * The execution environment being used to host this Task.
+     * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * @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 Task.
+     * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * @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_); + return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; + } + /** + *
+     * The execution environment being used to host this Task.
+     * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * @param value The executionEnvironment to set. + * @return This builder for chaining. + */ + public Builder setExecutionEnvironment(com.google.cloud.run.v2.ExecutionEnvironment value) { + if (value == null) { + throw new NullPointerException(); + } + + executionEnvironment_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The execution environment being used to host this Task.
+     * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * @return This builder for chaining. + */ + public Builder clearExecutionEnvironment() { + + executionEnvironment_ = 0; + onChanged(); + return this; + } + + 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
+     * https://cloud.google.com/run/docs/securing/using-cmek
+     * 
+ * + * string encryption_key = 7 [(.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; + java.lang.String s = bs.toStringUtf8(); + encryptionKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A reference to a customer managed encryption key (CMEK) to use to encrypt
+     * this container image. For more information, go to
+     * https://cloud.google.com/run/docs/securing/using-cmek
+     * 
+ * + * string encryption_key = 7 [(.google.api.resource_reference) = { ... } + * @return The bytes for encryptionKey. + */ + 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); + encryptionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A reference to a customer managed encryption key (CMEK) to use to encrypt
+     * this container image. For more information, go to
+     * https://cloud.google.com/run/docs/securing/using-cmek
+     * 
+ * + * string encryption_key = 7 [(.google.api.resource_reference) = { ... } + * @param value The encryptionKey to set. + * @return This builder for chaining. + */ + public Builder setEncryptionKey( + java.lang.String value) { + if (value == null) { + 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
+     * https://cloud.google.com/run/docs/securing/using-cmek
+     * 
+ * + * string encryption_key = 7 [(.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
+     * https://cloud.google.com/run/docs/securing/using-cmek
+     * 
+ * + * string encryption_key = 7 [(.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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + encryptionKey_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * @return Whether the vpcAccess field is set. + */ + public boolean hasVpcAccess() { + return vpcAccessBuilder_ != null || vpcAccess_ != null; + } + /** + *
+     * VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * @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_; + } else { + return vpcAccessBuilder_.getMessage(); + } + } + /** + *
+     * VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + */ + public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) { + if (vpcAccessBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vpcAccess_ = value; + onChanged(); + } else { + vpcAccessBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + */ + public Builder setVpcAccess( + com.google.cloud.run.v2.VpcAccess.Builder builderForValue) { + if (vpcAccessBuilder_ == null) { + vpcAccess_ = builderForValue.build(); + onChanged(); + } else { + vpcAccessBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + */ + 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(); + } else { + vpcAccess_ = value; + } + onChanged(); + } else { + vpcAccessBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + */ + public Builder clearVpcAccess() { + if (vpcAccessBuilder_ == null) { + vpcAccess_ = null; + onChanged(); + } else { + vpcAccess_ = null; + vpcAccessBuilder_ = null; + } + + return this; + } + /** + *
+     * VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + */ + public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() { + + onChanged(); + return getVpcAccessFieldBuilder().getBuilder(); + } + /** + *
+     * VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + */ + 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_; + } + } + /** + *
+     * VPC Access configuration to use for this Task. For more information,
+     * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+     * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + vpcAccess_ = null; + } + return vpcAccessBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.TaskTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.TaskTemplate) + private static final com.google.cloud.run.v2.TaskTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.TaskTemplate(); + } + + public static com.google.cloud.run.v2.TaskTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.TaskTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java new file mode 100644 index 000000000000..6fb44526751c --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java @@ -0,0 +1,255 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task_template.proto + +package com.google.cloud.run.v2; + +public interface TaskTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TaskTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + java.util.List + getContainersList(); + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + com.google.cloud.run.v2.Container getContainers(int index); + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + int getContainersCount(); + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + java.util.List + getContainersOrBuilderList(); + /** + *
+   * Holds the single container that defines the unit of execution for this
+   * task.
+   * 
+ * + * repeated .google.cloud.run.v2.Container containers = 1; + */ + 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 = 2; + */ + java.util.List + getVolumesList(); + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + 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 = 2; + */ + int getVolumesCount(); + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + java.util.List + getVolumesOrBuilderList(); + /** + *
+   * A list of Volumes to make available to containers.
+   * 
+ * + * repeated .google.cloud.run.v2.Volume volumes = 2; + */ + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( + int index); + + /** + *
+   * Number of retries allowed per Task, before marking this Task failed.
+   * 
+ * + * int32 max_retries = 3; + * @return Whether the maxRetries field is set. + */ + boolean hasMaxRetries(); + /** + *
+   * Number of retries allowed per Task, before marking this Task failed.
+   * 
+ * + * int32 max_retries = 3; + * @return The maxRetries. + */ + int getMaxRetries(); + + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 4; + * @return Whether the timeout field is set. + */ + boolean hasTimeout(); + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 4; + * @return The timeout. + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+   * Max allowed time duration the Task may be active before the system will
+   * actively try to mark it failed and kill associated containers. This applies
+   * per attempt of a task, meaning each retry can run for the full timeout.
+   * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+   * Email address of the IAM service account associated with the Task of a
+   * Job. The service account represents the identity of the
+   * running task, and determines what permissions the task has. If
+   * not provided, the task will use the project's default service account.
+   * 
+ * + * string service_account = 5; + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + *
+   * Email address of the IAM service account associated with the Task of a
+   * Job. The service account represents the identity of the
+   * running task, and determines what permissions the task has. If
+   * not provided, the task will use the project's default service account.
+   * 
+ * + * string service_account = 5; + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString + getServiceAccountBytes(); + + /** + *
+   * The execution environment being used to host this Task.
+   * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * @return The enum numeric value on the wire for executionEnvironment. + */ + int getExecutionEnvironmentValue(); + /** + *
+   * The execution environment being used to host this Task.
+   * 
+ * + * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * @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
+   * https://cloud.google.com/run/docs/securing/using-cmek
+   * 
+ * + * string encryption_key = 7 [(.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
+   * https://cloud.google.com/run/docs/securing/using-cmek
+   * 
+ * + * string encryption_key = 7 [(.google.api.resource_reference) = { ... } + * @return The bytes for encryptionKey. + */ + com.google.protobuf.ByteString + getEncryptionKeyBytes(); + + /** + *
+   * VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * @return Whether the vpcAccess field is set. + */ + boolean hasVpcAccess(); + /** + *
+   * VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * @return The vpcAccess. + */ + com.google.cloud.run.v2.VpcAccess getVpcAccess(); + /** + *
+   * VPC Access configuration to use for this Task. For more information,
+   * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
+   * 
+ * + * .google.cloud.run.v2.VpcAccess vpc_access = 8; + */ + com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder(); + + public com.google.cloud.run.v2.TaskTemplate.RetriesCase getRetriesCase(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java new file mode 100644 index 000000000000..6640e3970426 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task_template.proto + +package com.google.cloud.run.v2; + +public final class TaskTemplateProto { + private TaskTemplateProto() {} + 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_TaskTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_TaskTemplate_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/task_template.prot" + + "o\022\023google.cloud.run.v2\032\031google/api/resou" + + "rce.proto\032!google/cloud/run/v2/k8s.min.p" + + "roto\032)google/cloud/run/v2/vendor_setting" + + "s.proto\032\036google/protobuf/duration.proto\"" + + "\225\003\n\014TaskTemplate\0222\n\ncontainers\030\001 \003(\0132\036.g" + + "oogle.cloud.run.v2.Container\022,\n\007volumes\030" + + "\002 \003(\0132\033.google.cloud.run.v2.Volume\022\025\n\013ma" + + "x_retries\030\003 \001(\005H\000\022*\n\007timeout\030\004 \001(\0132\031.goo" + + "gle.protobuf.Duration\022\027\n\017service_account" + + "\030\005 \001(\t\022H\n\025execution_environment\030\006 \001(\0162)." + + "google.cloud.run.v2.ExecutionEnvironment" + + "\022>\n\016encryption_key\030\007 \001(\tB&\372A#\n!cloudkms." + + "googleapis.com/CryptoKey\0222\n\nvpc_access\030\010" + + " \001(\0132\036.google.cloud.run.v2.VpcAccessB\t\n\007" + + "retriesBf\n\027com.google.cloud.run.v2B\021Task" + + "TemplateProtoP\001Z6google.golang.org/genpr" + + "oto/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(), + 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_TaskTemplate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_TaskTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_TaskTemplate_descriptor, + new java.lang.String[] { "Containers", "Volumes", "MaxRetries", "Timeout", "ServiceAccount", "ExecutionEnvironment", "EncryptionKey", "VpcAccess", "Retries", }); + 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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java similarity index 69% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java index 5907cda967ab..850808893238 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java +++ b/owl-bot-staging/java-run/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,80 +28,65 @@ 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;
   }
-
-  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 @@ -128,30 +95,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 { @@ -162,15 +129,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 @@ -181,15 +145,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 @@ -198,30 +159,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 { @@ -230,7 +191,6 @@ public com.google.protobuf.ByteString getTagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,11 +202,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_)) { @@ -267,17 +225,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_); @@ -290,7 +247,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); @@ -298,9 +255,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,103 +285,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.
@@ -429,32 +383,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -470,9 +425,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
@@ -491,8 +446,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_;
@@ -505,39 +459,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;
@@ -586,37 +539,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                type_ = input.readEnum();
+            case 8: {
+              type_ = input.readEnum();
 
-                break;
-              } // case 8
-            case 18:
-              {
-                revision_ = input.readStringRequireUtf8();
+              break;
+            } // case 8
+            case 18: {
+              revision_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 18
-            case 24:
-              {
-                percent_ = input.readInt32();
+              break;
+            } // case 18
+            case 24: {
+              percent_ = input.readInt32();
 
-                break;
-              } // case 24
-            case 34:
-              {
-                tag_ = input.readStringRequireUtf8();
+              break;
+            } // case 24
+            case 34: {
+              tag_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -629,67 +577,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. */ @@ -697,24 +629,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; @@ -722,21 +651,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; @@ -745,22 +672,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 { @@ -768,80 +694,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 @@ -849,38 +765,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; @@ -888,21 +798,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; @@ -911,22 +819,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 { @@ -934,71 +841,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); } @@ -1008,12 +908,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(); } @@ -1022,27 +922,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1057,4 +957,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TrafficTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java similarity index 70% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java index 06c84b6689c3..fad73ecbbf88 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java similarity index 69% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java index ce98b2e4e1bc..2cb2b01d55dc 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java new file mode 100644 index 000000000000..41e7bb879597 --- /dev/null +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java similarity index 69% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java index f34f76215cd4..1571d7f970ad 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java +++ b/owl-bot-staging/java-run/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,79 +28,64 @@ 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; } - - 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 @@ -127,29 +94,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 { @@ -160,14 +127,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 @@ -178,14 +142,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 @@ -194,29 +155,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 { @@ -227,14 +188,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 @@ -243,29 +201,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 { @@ -274,7 +232,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,11 +243,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_)) { @@ -314,17 +269,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_); @@ -340,19 +294,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,136 +336,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -526,9 +477,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 @@ -547,8 +498,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_; @@ -562,39 +512,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; @@ -647,43 +596,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - type_ = input.readEnum(); + case 8: { + type_ = input.readEnum(); - break; - } // case 8 - case 18: - { - revision_ = input.readStringRequireUtf8(); + break; + } // case 8 + case 18: { + revision_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 24: - { - percent_ = input.readInt32(); + break; + } // case 18 + case 24: { + percent_ = input.readInt32(); - break; - } // case 24 - case 34: - { - tag_ = input.readStringRequireUtf8(); + break; + } // case 24 + case 34: { + tag_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: - { - uri_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: { + uri_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -696,67 +639,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. */ @@ -764,24 +691,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; @@ -789,20 +713,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; @@ -811,21 +733,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 { @@ -833,76 +754,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 @@ -910,36 +821,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; @@ -947,20 +852,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; @@ -969,21 +872,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 { @@ -991,61 +893,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; @@ -1053,20 +948,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; @@ -1075,21 +968,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 { @@ -1097,68 +989,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); } @@ -1168,12 +1053,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(); } @@ -1182,27 +1067,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1217,4 +1102,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TrafficTargetStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java similarity index 68% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java index ab9869031686..125182f1b932 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java +++ b/owl-bot-staging/java-run/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/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java new file mode 100644 index 000000000000..d81016741581 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java @@ -0,0 +1,813 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +/** + *
+ * Request message for updating a Job.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.UpdateJobRequest} + */ +public final class UpdateJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.UpdateJobRequest) + UpdateJobRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateJobRequest.newBuilder() to construct. + private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateJobRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.UpdateJobRequest.class, com.google.cloud.run.v2.UpdateJobRequest.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.run.v2.Job job_; + /** + *
+   * Required. The Job to be updated.
+   * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the job field is set. + */ + @java.lang.Override + public boolean hasJob() { + return job_ != null; + } + /** + *
+   * Required. The Job to be updated.
+   * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The job. + */ + @java.lang.Override + public com.google.cloud.run.v2.Job getJob() { + return job_ == null ? com.google.cloud.run.v2.Job.getDefaultInstance() : job_; + } + /** + *
+   * Required. The Job to be updated.
+   * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { + return getJob(); + } + + 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 + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 4; + private boolean allowMissing_; + /** + *
+   * If set to true, and if the Job does not exist, it will create a new
+   * one. Caller must have both create and update permissions for this call if
+   * this is set to true.
+   * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (job_ != null) { + output.writeMessage(1, getJob()); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + if (allowMissing_ != false) { + output.writeBool(4, allowMissing_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getJob()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.UpdateJobRequest)) { + return super.equals(obj); + } + com.google.cloud.run.v2.UpdateJobRequest other = (com.google.cloud.run.v2.UpdateJobRequest) obj; + + if (hasJob() != other.hasJob()) return false; + if (hasJob()) { + if (!getJob() + .equals(other.getJob())) return false; + } + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( + com.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.UpdateJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.UpdateJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.UpdateJobRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.run.v2.UpdateJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for updating a Job.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.UpdateJobRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.UpdateJobRequest) + com.google.cloud.run.v2.UpdateJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.UpdateJobRequest.class, com.google.cloud.run.v2.UpdateJobRequest.Builder.class); + } + + // Construct using com.google.cloud.run.v2.UpdateJobRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + validateOnly_ = false; + + allowMissing_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.UpdateJobRequest getDefaultInstanceForType() { + return com.google.cloud.run.v2.UpdateJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.UpdateJobRequest build() { + com.google.cloud.run.v2.UpdateJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.UpdateJobRequest buildPartial() { + com.google.cloud.run.v2.UpdateJobRequest result = new com.google.cloud.run.v2.UpdateJobRequest(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + result.validateOnly_ = validateOnly_; + result.allowMissing_ = allowMissing_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.UpdateJobRequest) { + return mergeFrom((com.google.cloud.run.v2.UpdateJobRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.UpdateJobRequest other) { + if (other == com.google.cloud.run.v2.UpdateJobRequest.getDefaultInstance()) return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getJobFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 24: { + validateOnly_ = input.readBool(); + + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.cloud.run.v2.Job job_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> jobBuilder_; + /** + *
+     * Required. The Job to be updated.
+     * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the job field is set. + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + *
+     * Required. The Job to be updated.
+     * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The job. + */ + public com.google.cloud.run.v2.Job getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.run.v2.Job.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + *
+     * Required. The Job to be updated.
+     * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setJob(com.google.cloud.run.v2.Job value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The Job to be updated.
+     * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setJob( + com.google.cloud.run.v2.Job.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The Job to be updated.
+     * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeJob(com.google.cloud.run.v2.Job value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.run.v2.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The Job to be updated.
+     * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The Job to be updated.
+     * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.run.v2.Job.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The Job to be updated.
+     * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? + com.google.cloud.run.v2.Job.getDefaultInstance() : job_; + } + } + /** + *
+     * Required. The Job to be updated.
+     * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder>( + getJob(), + getParentForChildren(), + isClean()); + job_ = null; + } + return jobBuilder_; + } + + 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 + 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_ ; + /** + *
+     * If set to true, and if the Job does not exist, it will create a new
+     * one. Caller must have both create and update permissions for this call if
+     * this is set to true.
+     * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + *
+     * If set to true, and if the Job does not exist, it will create a new
+     * one. Caller must have both create and update permissions for this call if
+     * this is set to true.
+     * 
+ * + * 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 Job does not exist, it will create a new
+     * one. Caller must have both create and update permissions for this call if
+     * this is set to true.
+     * 
+ * + * 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.UpdateJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.UpdateJobRequest) + private static final com.google.cloud.run.v2.UpdateJobRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.UpdateJobRequest(); + } + + public static com.google.cloud.run.v2.UpdateJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.UpdateJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java new file mode 100644 index 000000000000..1d3c3582b7e1 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public interface UpdateJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.UpdateJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Job to be updated.
+   * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the job field is set. + */ + boolean hasJob(); + /** + *
+   * Required. The Job to be updated.
+   * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The job. + */ + com.google.cloud.run.v2.Job getJob(); + /** + *
+   * Required. The Job to be updated.
+   * 
+ * + * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder(); + + /** + *
+   * 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 Job does not exist, it will create a new
+   * one. Caller must have both create and update permissions for this call if
+   * this is set to true.
+   * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + boolean getAllowMissing(); +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java similarity index 69% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java index 376b74683c25..8055ed02503c 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java @@ -1,82 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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; } - - 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 @@ -84,15 +62,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 @@ -100,14 +74,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() { @@ -117,15 +88,12 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_; /** - * - * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or updating any resources.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -136,8 +104,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
@@ -145,7 +111,6 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -154,7 +119,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,7 +130,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()); } @@ -186,13 +151,16 @@ public int getSerializedSize() { size = 0; if (service_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getService()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getService()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,20 +170,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.UpdateServiceRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.UpdateServiceRequest other = - (com.google.cloud.run.v2.UpdateServiceRequest) obj; + com.google.cloud.run.v2.UpdateServiceRequest other = (com.google.cloud.run.v2.UpdateServiceRequest) obj; if (hasService() != other.hasService()) return false; if (hasService()) { - if (!getService().equals(other.getService())) return false; + if (!getService() + .equals(other.getService())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,144 +202,140 @@ public int hashCode() { hash = (53 * hash) + getService().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +353,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 @@ -408,8 +374,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 { @@ -425,39 +390,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; @@ -501,31 +465,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 24: - { - validateOnly_ = input.readBool(); - - break; - } // case 24 - case 32: - { - allowMissing_ = input.readBool(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getServiceFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 24: { + validateOnly_ = input.readBool(); + + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,35 +500,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() { @@ -577,14 +528,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) { @@ -600,16 +548,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(); @@ -620,20 +566,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; } @@ -645,14 +588,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) { @@ -666,75 +606,61 @@ public Builder clearService() { return this; } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.run.v2.Service.Builder getServiceBuilder() { - + onChanged(); return getServiceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { - return service_ == null ? com.google.cloud.run.v2.Service.getDefaultInstance() : service_; + return service_ == null ? + com.google.cloud.run.v2.Service.getDefaultInstance() : service_; } } /** - * - * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder> + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { - serviceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, - com.google.cloud.run.v2.Service.Builder, - com.google.cloud.run.v2.ServiceOrBuilder>( - getService(), getParentForChildren(), isClean()); + serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder>( + getService(), + getParentForChildren(), + isClean()); service_ = null; } return serviceBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or updating any resources.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -742,47 +668,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
@@ -790,7 +708,6 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -798,8 +715,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
@@ -807,19 +722,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
@@ -827,18 +739,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); } @@ -848,12 +759,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(); } @@ -862,27 +773,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -897,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.UpdateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java similarity index 64% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java index 6009b7fd456b..103efd8c57ca 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java @@ -1,83 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/service.proto package com.google.cloud.run.v2; -public interface UpdateServiceRequestOrBuilder - extends +public interface UpdateServiceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.UpdateServiceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the service field is set. */ boolean hasService(); /** - * - * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The service. */ com.google.cloud.run.v2.Service getService(); /** - * - * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder(); /** - * - * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or updating any resources.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set to true, and if the Service does not exist, it will create a new
    * one. Caller must have both create and update permissions for this call if
@@ -85,7 +53,6 @@ public interface UpdateServiceRequestOrBuilder
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java new file mode 100644 index 000000000000..53c79f97fad9 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/vendor_settings.proto + +package com.google.cloud.run.v2; + +public final class VendorSettingsProto { + private VendorSettingsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_VpcAccess_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionScaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/run/v2/vendor_settings.pr" + + "oto\022\023google.cloud.run.v2\032\031google/api/res" + + "ource.proto\"\324\001\n\tVpcAccess\022:\n\tconnector\030\001" + + " \001(\tB\'\372A$\n\"vpcaccess.googleapis.com/Conn" + + "ector\0228\n\006egress\030\002 \001(\0162(.google.cloud.run" + + ".v2.VpcAccess.VpcEgress\"Q\n\tVpcEgress\022\032\n\026" + + "VPC_EGRESS_UNSPECIFIED\020\000\022\017\n\013ALL_TRAFFIC\020" + + "\001\022\027\n\023PRIVATE_RANGES_ONLY\020\002\"a\n\023BinaryAuth" + + "orization\022\025\n\013use_default\030\001 \001(\010H\000\022 \n\030brea" + + "kglass_justification\030\002 \001(\tB\021\n\017binauthz_m" + + "ethod\"I\n\017RevisionScaling\022\032\n\022min_instance" + + "_count\030\001 \001(\005\022\032\n\022max_instance_count\030\002 \001(\005" + + "*\231\001\n\016IngressTraffic\022\037\n\033INGRESS_TRAFFIC_U" + + "NSPECIFIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n" + + "\035INGRESS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGR" + + "ESS_TRAFFIC_INTERNAL_LOAD_BALANCER\020\003*}\n\024" + + "ExecutionEnvironment\022%\n!EXECUTION_ENVIRO" + + "NMENT_UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRON" + + "MENT_GEN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN" + + "2\020\002Bh\n\027com.google.cloud.run.v2B\023VendorSe" + + "ttingsProtoP\001Z6google.golang.org/genprot" + + "o/googleapis/cloud/run/v2;runb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_VpcAccess_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VpcAccess_descriptor, + new java.lang.String[] { "Connector", "Egress", }); + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor, + new java.lang.String[] { "UseDefault", "BreakglassJustification", "BinauthzMethod", }); + internal_static_google_cloud_run_v2_RevisionScaling_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionScaling_descriptor, + new java.lang.String[] { "MinInstanceCount", "MaxInstanceCount", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java similarity index 72% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java index c99a29204d7d..cab32cb99cd3 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java +++ b/owl-bot-staging/java-run/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,41 +27,37 @@ 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;
   }
-
-  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 @@ -88,29 +66,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 { @@ -121,15 +99,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 @@ -138,30 +113,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 { @@ -172,8 +147,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
@@ -191,7 +164,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
    * 
* * int32 mode = 3; - * * @return The mode. */ @java.lang.Override @@ -200,7 +172,6 @@ public int getMode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +183,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_); } @@ -238,7 +210,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -248,16 +221,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -280,103 +256,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.
@@ -384,32 +354,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -423,9 +394,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
@@ -444,8 +415,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_;
@@ -457,39 +427,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;
@@ -535,31 +504,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                path_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 18:
-              {
-                version_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 18
-            case 24:
-              {
-                mode_ = input.readInt32();
-
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              path_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              version_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 18
+            case 24: {
+              mode_ = input.readInt32();
+
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -572,20 +537,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; @@ -594,21 +557,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 { @@ -616,61 +578,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; @@ -678,21 +633,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; @@ -701,22 +654,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 { @@ -724,73 +676,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
@@ -808,7 +751,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 mode = 3; - * * @return The mode. */ @java.lang.Override @@ -816,8 +758,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
@@ -835,19 +775,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
@@ -865,18 +802,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); } @@ -886,12 +822,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(); } @@ -900,27 +836,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -935,4 +871,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VersionToPath getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java similarity index 72% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java index 4002f7ce3eb1..c4ede29bed3e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java similarity index 73% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java index 052a0e02d68b..046b8ab679fb 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java @@ -1,83 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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; } - - 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; } @@ -93,37 +72,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 @@ -132,29 +105,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 { @@ -164,15 +137,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 @@ -180,27 +150,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
@@ -211,15 +176,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
@@ -227,7 +190,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 @@ -235,8 +197,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
@@ -244,19 +204,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
@@ -268,13 +225,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;
@@ -286,7 +242,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_);
     }
@@ -309,14 +266,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -326,21 +281,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:
@@ -375,134 +333,130 @@ 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); } // Construct using com.google.cloud.run.v2.Volume.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +474,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 @@ -566,39 +520,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; @@ -612,20 +565,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.getUnknownFields()); onChanged(); @@ -653,32 +603,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getSecretFieldBuilder().getBuilder(), extensionRegistry); - volumeTypeCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - getCloudSqlInstanceFieldBuilder().getBuilder(), extensionRegistry); - volumeTypeCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 18: { + input.readMessage( + getSecretFieldBuilder().getBuilder(), + extensionRegistry); + volumeTypeCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getCloudSqlInstanceFieldBuilder().getBuilder(), + extensionRegistry); + volumeTypeCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -688,12 +637,12 @@ public Builder mergeFrom( } // finally 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() { @@ -703,22 +652,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; @@ -727,21 +675,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 { @@ -749,81 +696,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 @@ -831,15 +765,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 @@ -857,8 +788,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
@@ -880,8 +809,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
@@ -889,7 +816,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();
@@ -900,8 +828,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
@@ -911,13 +837,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;
         }
@@ -933,8 +856,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
@@ -959,8 +880,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
@@ -972,8 +891,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
@@ -993,8 +910,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
@@ -1003,38 +918,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
@@ -1042,7 +946,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 @@ -1050,8 +953,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
@@ -1059,7 +960,6 @@ public boolean hasCloudSqlInstance() {
      * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; - * * @return The cloudSqlInstance. */ @java.lang.Override @@ -1077,8 +977,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
@@ -1101,8 +999,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
@@ -1123,8 +1019,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
@@ -1135,13 +1029,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;
         }
@@ -1157,8 +1048,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
@@ -1184,8 +1073,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
@@ -1198,8 +1085,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
@@ -1220,8 +1105,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
@@ -1231,32 +1114,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);
     }
 
@@ -1266,12 +1143,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();
   }
@@ -1280,27 +1157,27 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1315,4 +1192,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.run.v2.Volume getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
similarity index 70%
rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
index f0b021e85844..9678361dd733 100644
--- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
+++ b/owl-bot-staging/java-run/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,41 +26,37 @@ 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; } - - 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 @@ -87,29 +65,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 { @@ -120,8 +98,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
@@ -131,7 +107,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mountPath. */ @java.lang.Override @@ -140,15 +115,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
@@ -158,15 +132,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 { @@ -175,7 +150,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +161,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_); } @@ -217,15 +192,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,135 +223,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +358,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 @@ -418,39 +390,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; @@ -493,25 +464,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: - { - mountPath_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: { + mountPath_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -524,20 +492,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; @@ -546,21 +512,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 { @@ -568,61 +533,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; @@ -630,8 +588,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
@@ -641,13 +597,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; @@ -656,8 +612,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
@@ -667,14 +621,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 { @@ -682,8 +637,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
@@ -693,22 +646,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
@@ -718,18 +669,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
@@ -739,23 +687,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); } @@ -765,12 +713,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(); } @@ -779,27 +727,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -814,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VolumeMount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java similarity index 69% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java index c9a43356d0da..5d944ac46672 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java similarity index 78% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java index d9311c199cf5..8437d5b2a083 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
similarity index 69%
rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
index 3a1de9a6e951..da0bd9d38947 100644
--- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
+++ b/owl-bot-staging/java-run/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,43 +29,39 @@ 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;
   }
-
-  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
      * 
@@ -92,8 +70,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { */ VPC_EGRESS_UNSPECIFIED(0), /** - * - * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -102,8 +78,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { */ ALL_TRAFFIC(1), /** - * - * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -115,8 +89,6 @@ public enum VpcEgress implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified
      * 
@@ -125,8 +97,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.
      * 
@@ -135,8 +105,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.
      * 
@@ -145,6 +113,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( @@ -169,49 +138,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; @@ -231,15 +200,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 @@ -248,30 +214,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 { @@ -282,41 +248,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; @@ -328,7 +284,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_); } @@ -348,7 +305,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -358,14 +316,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -387,103 +346,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
@@ -493,32 +446,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -530,9 +484,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
@@ -562,39 +516,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;
@@ -636,25 +589,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                connector_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-            case 16:
-              {
-                egress_ = input.readEnum();
-
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              connector_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              egress_ = input.readEnum();
+
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -667,21 +617,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; @@ -690,22 +638,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 { @@ -713,64 +660,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; @@ -778,65 +718,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. */ @@ -844,31 +770,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); } @@ -878,12 +801,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(); } @@ -892,27 +815,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -927,4 +850,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VpcAccess getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java similarity index 63% rename from java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java index 76469f43e4a6..a531dc7b6730 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java +++ b/owl-bot-staging/java-run/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/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto similarity index 100% rename from java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto new file mode 100644 index 000000000000..0710afb7d071 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto @@ -0,0 +1,259 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/launch_stage.proto"; +import "google/api/resource.proto"; +import "google/cloud/run/v2/condition.proto"; +import "google/cloud/run/v2/task_template.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option java_multiple_files = true; +option java_outer_classname = "ExecutionProto"; +option java_package = "com.google.cloud.run.v2"; + +// Cloud Run Execution Control Plane API. +service Executions { + option (google.api.default_host) = "run.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets information about an Execution. + rpc GetExecution(GetExecutionRequest) returns (Execution) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/jobs/*/executions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Executions from a Job. + rpc ListExecutions(ListExecutionsRequest) returns (ListExecutionsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*/jobs/*}/executions" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes an Execution. + rpc DeleteExecution(DeleteExecutionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/locations/*/jobs/*/executions/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Execution" + metadata_type: "Execution" + }; + } +} + +// Request message for obtaining a Execution by its full name. +message GetExecutionRequest { + // Required. The full name of the Execution. + // Format: + // projects/{project}/locations/{location}/jobs/{job}/executions/{execution} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Execution" } + ]; +} + +// Request message for retrieving a list of Executions. +message ListExecutionsRequest { + // Required. The Execution from which the Executions should be listed. + // To list all Executions across Jobs, use "-" instead of Job name. + // Format: projects/{project}/locations/{location}/jobs/{job} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "run.googleapis.com/Execution" + } + ]; + + // Maximum number of Executions to return in this call. + int32 page_size = 2; + + // A page token received from a previous call to ListExecutions. + // All other parameters must match. + string page_token = 3; + + // If true, returns deleted (but unexpired) resources along with active ones. + bool show_deleted = 4; +} + +// Response message containing a list of Executions. +message ListExecutionsResponse { + // The resulting list of Executions. + repeated Execution executions = 1; + + // A token indicating there are more items than page_size. Use it in the next + // ListExecutions request to continue. + string next_page_token = 2; +} + +// Request message for deleting an Execution. +message DeleteExecutionRequest { + // Required. The name of the Execution to delete. + // Format: + // projects/{project}/locations/{location}/jobs/{job}/executions/{execution} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "run.googleapis.com/Execution" } + ]; + + // Indicates that the request should be validated without actually + // deleting any resources. + bool validate_only = 2; + + // A system-generated fingerprint for this version of the resource. + // This may be used to detect modification conflict during updates. + string etag = 3; +} + +// Execution represents the configuration of a single execution. A execution an +// immutable resource that references a container image which is run to +// completion. +message Execution { + option (google.api.resource) = { + type: "run.googleapis.com/Execution" + pattern: "projects/{project}/locations/{location}/jobs/{job}/executions/{execution}" + style: DECLARATIVE_FRIENDLY + }; + + // Output only. The unique name of this Execution. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server assigned unique identifier for the Execution. 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]; + + // Output only. A number that monotonically increases every time the user + // modifies the desired state. + int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // KRM-style labels for the resource. + // User-provided labels are shared with Google's billing system, so they can + // be used to filter, or break down billing charges by team, component, + // environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels + // Cloud Run will populate some labels with 'run.googleapis.com' or + // 'serving.knative.dev' namespaces. Those labels are read-only, and user + // changes will not be preserved. + map labels = 4; + + // KRM-style annotations for the resource. + map annotations = 5; + + // Output only. Represents time when the execution was acknowledged by the + // execution controller. It is not guaranteed to be set in happens-before + // order across separate operations. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the execution started to run. + // It is not guaranteed to be set in happens-before order across separate + // operations. + google.protobuf.Timestamp start_time = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the execution was completed. It is not + // guaranteed to be set in happens-before order across separate operations. + google.protobuf.Timestamp completion_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 + // preview features. Launch Stages are defined at [Google Cloud Platform + // Launch Stages](https://cloud.google.com/terms/launch-stages). + google.api.LaunchStage launch_stage = 11; + + // Output only. The name of the parent Job. + string job = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "run.googleapis.com/Job" } + ]; + + // Output only. Specifies the maximum desired number of tasks the execution + // should run at any given time. Must be <= task_count. The actual number of + // tasks running in steady state will be less than this number when + // ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when + // the work left to do is less than max parallelism. More info: + // https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + int32 parallelism = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specifies the desired number of tasks the execution should + // run. Setting to 1 means that parallelism is limited to 1 and the success of + // that task signals the success of the execution. + // More info: + // https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + int32 task_count = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The template used to create tasks for this execution. + TaskTemplate template = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether the resource's reconciliation is still in + // progress. See comments in `Job.reconciling` for additional information on + // reconciliation process in Cloud Run. + bool reconciling = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Condition of this Execution, containing its readiness + // status, and detailed error information in case it did not reach the desired + // state. + repeated google.cloud.run.v2.Condition conditions = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The generation of this Execution. See comments in + // `reconciling` for additional information on reconciliation process in Cloud + // Run. + int64 observed_generation = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of actively running tasks. + int32 running_count = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tasks which reached phase Succeeded. + int32 succeeded_count = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tasks which reached phase Failed. + int32 failed_count = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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]; +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto new file mode 100644 index 000000000000..e0657f6cb7a5 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto @@ -0,0 +1,54 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/field_behavior.proto"; +import "google/cloud/run/v2/task_template.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option java_multiple_files = true; +option java_outer_classname = "ExecutionTemplateProto"; +option java_package = "com.google.cloud.run.v2"; + +// ExecutionTemplate describes the data an execution should have when created +// from a template. +message ExecutionTemplate { + // KRM-style labels for the resource. + map labels = 1; + + // KRM-style annotations for the resource. + map annotations = 2; + + // Specifies the maximum desired number of tasks the execution should run at + // given time. Must be <= task_count. + // When the job is run, if this field is 0 or unset, the maximum possible + // value will be used for that execution. + // The actual number of tasks running in steady state will be less than this + // number when there are fewer tasks waiting to be completed remaining, + // i.e. when the work left to do is less than max parallelism. + int32 parallelism = 3; + + // Specifies the desired number of tasks the execution should run. + // Setting to 1 means that parallelism is limited to 1 and the success of + // that task signals the success of the execution. + // More info: + // https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + int32 task_count = 4; + + // Required. Describes the task(s) that will be created when executing an execution. + TaskTemplate template = 5 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto new file mode 100644 index 000000000000..8a158296ae4b --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto @@ -0,0 +1,400 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/launch_stage.proto"; +import "google/api/resource.proto"; +import "google/cloud/run/v2/condition.proto"; +import "google/cloud/run/v2/execution_template.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option java_multiple_files = true; +option java_outer_classname = "JobProto"; +option java_package = "com.google.cloud.run.v2"; + +// Cloud Run Job Control Plane API. +service Jobs { + option (google.api.default_host) = "run.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a Job. + rpc CreateJob(CreateJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/locations/*}/jobs" + body: "job" + }; + option (google.api.method_signature) = "parent,job,job_id"; + option (google.longrunning.operation_info) = { + response_type: "Job" + metadata_type: "Job" + }; + } + + // Gets information about a Job. + rpc GetJob(GetJobRequest) returns (Job) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/jobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Jobs. + rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/jobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a Job. + rpc UpdateJob(UpdateJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{job.name=projects/*/locations/*/jobs/*}" + body: "job" + }; + option (google.api.method_signature) = "job"; + option (google.longrunning.operation_info) = { + response_type: "Job" + metadata_type: "Job" + }; + } + + // Deletes a Job. + rpc DeleteJob(DeleteJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/locations/*/jobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Job" + metadata_type: "Job" + }; + } + + // Triggers creation of a new Execution of this Job. + rpc RunJob(RunJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/jobs/*}:run" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Execution" + metadata_type: "Execution" + }; + } + + // Get the IAM Access Control policy currently in effect for the given Job. + // This result does not include any inherited policies. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v2/{resource=projects/*/locations/*/jobs/*}:getIamPolicy" + }; + } + + // Sets the IAM Access control policy for the specified Job. Overwrites + // any existing policy. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v2/{resource=projects/*/locations/*/jobs/*}:setIamPolicy" + body: "*" + }; + } + + // Returns permissions that a caller has on the specified Project. + // + // There are no permissions required for making this API call. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v2/{resource=projects/*/locations/*/jobs/*}:testIamPermissions" + body: "*" + }; + } +} + +// Request message for creating a Job. +message CreateJobRequest { + // Required. The location and project in which this Job should be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "run.googleapis.com/Job" + } + ]; + + // Required. The Job instance to create. + Job job = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The unique identifier for the Job. The name of the job becomes + // {parent}/jobs/{job_id}. + string job_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Indicates that the request should be validated and default values + // populated, without persisting the request or creating any resources. + bool validate_only = 4; +} + +// Request message for obtaining a Job by its full name. +message GetJobRequest { + // Required. The full name of the Job. + // Format: projects/{project}/locations/{location}/jobs/{job} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "run.googleapis.com/Job" + } + ]; +} + +// Request message for updating a Job. +message UpdateJobRequest { + // Required. The Job to be updated. + Job job = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates that the request should be validated and default values + // populated, without persisting the request or updating any resources. + bool validate_only = 3; + + // If set to true, and if the Job does not exist, it will create a new + // one. Caller must have both create and update permissions for this call if + // this is set to true. + bool allow_missing = 4; +} + +// Request message for retrieving a list of Jobs. +message ListJobsRequest { + // Required. The location and project to list resources on. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "run.googleapis.com/Job" + } + ]; + + // Maximum number of Jobs to return in this call. + int32 page_size = 2; + + // A page token received from a previous call to ListJobs. + // All other parameters must match. + string page_token = 3; + + // If true, returns deleted (but unexpired) resources along with active ones. + bool show_deleted = 4; +} + +// Response message containing a list of Jobs. +message ListJobsResponse { + // The resulting list of Jobs. + repeated Job jobs = 1; + + // A token indicating there are more items than page_size. Use it in the next + // ListJobs request to continue. + string next_page_token = 2; +} + +// Request message to delete a Job by its full name. +message DeleteJobRequest { + // Required. The full name of the Job. + // Format: projects/{project}/locations/{location}/jobs/{job} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "run.googleapis.com/Job" + } + ]; + + // Indicates that the request should be validated without actually + // deleting any resources. + bool validate_only = 3; + + // A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 4; +} + +// Request message to create a new Execution of a Job. +message RunJobRequest { + // Required. The full name of the Job. + // Format: projects/{project}/locations/{location}/jobs/{job} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "run.googleapis.com/Job" + } + ]; + + // Indicates that the request should be validated without actually + // deleting any resources. + bool validate_only = 2; + + // A system-generated fingerprint for this version of the + // resource. May be used to detect modification conflict during updates. + string etag = 3; +} + +// Job represents the configuration of a single job. A job an immutable resource +// that references a container image which is run to completion. +message Job { + option (google.api.resource) = { + type: "run.googleapis.com/Job" + pattern: "projects/{project}/locations/{location}/jobs/{job}" + style: DECLARATIVE_FRIENDLY + }; + + // The fully qualified name of this Job. + // + // Format: + // projects/{project}/locations/{location}/jobs/{job} + string name = 1; + + // Output only. Server assigned unique identifier for the Execution. 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]; + + // Output only. A number that monotonically increases every time the user + // modifies the desired state. + int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // KRM-style labels for the resource. + // User-provided labels are shared with Google's billing system, so they can + // be used to filter, or break down billing charges by team, component, + // environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels + // Cloud Run will populate some labels with 'run.googleapis.com' or + // 'serving.knative.dev' namespaces. Those labels are read-only, and user + // changes will not be preserved. + map labels = 4; + + // KRM-style annotations for the resource. Unstructured key value map that may + // be set by external tools to store and arbitrary metadata. + // They are not queryable and should be preserved + // when modifying objects. Cloud Run will populate some annotations using + // 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field + // follows Kubernetes annotations' namespacing, limits, and rules. More info: + // https://kubernetes.io/docs/user-guide/annotations + map annotations = 5; + + // Output only. The creation time. + google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The deletion time. + google.protobuf.Timestamp delete_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For a deleted resource, the time after which it will be + // permamently deleted. + google.protobuf.Timestamp expire_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the authenticated creator. + string creator = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the last authenticated modifier. + string last_modifier = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Arbitrary identifier for the API client. + string client = 12; + + // Arbitrary version identifier for the API client. + string client_version = 13; + + // The launch stage as defined by [Google Cloud Platform + // Launch Stages](https://cloud.google.com/terms/launch-stages). + // Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA + // is assumed. + google.api.LaunchStage launch_stage = 14; + + // Settings for the Binary Authorization feature. + google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + + // Required. The template used to create executions for this Job. + ExecutionTemplate template = 16 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The generation of this Job. See comments in `reconciling` for additional + // information on reconciliation process in Cloud Run. + int64 observed_generation = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Condition of this Job, containing its readiness status, and + // detailed error information in case it did not reach the desired state. + google.cloud.run.v2.Condition terminal_condition = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Conditions of all other associated sub-resources. They contain + // additional diagnostics information in case the Job does not reach its + // desired state. See comments in `reconciling` for additional information on + // reconciliation process in Cloud Run. + repeated google.cloud.run.v2.Condition conditions = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of executions created for this job. + int32 execution_count = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the last created execution. + ExecutionReference latest_created_execution = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Returns true if the Job is currently being acted upon by the system to + // bring it into the desired state. + // + // When a new Job is created, or an existing one is updated, Cloud Run + // will asynchronously perform all necessary steps to bring the Job to the + // desired state. This process is called reconciliation. + // While reconciliation is in process, `observed_generation` and + // `latest_succeeded_execution`, will have transient values that might + // mismatch the intended state: Once reconciliation is over (and this field is + // false), there are two possible outcomes: reconciliation succeeded and the + // state matches the Job, or there was an error, and reconciliation failed. + // This state can be found in `terminal_condition.state`. + // + // If reconciliation succeeded, the following fields will match: + // `observed_generation` and `generation`, `latest_succeeded_execution` and + // `latest_created_execution`. + // + // If reconciliation failed, `observed_generation` and + // `latest_succeeded_execution` will have the state of the last succeeded + // execution or empty for newly created Job. Additional information on the + // failure can be found in `terminal_condition` and `conditions`. + bool reconciling = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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]; +} + +// Reference to an Execution. Use /Executions.GetExecution with the given name +// to get full execution including the latest status. +message ExecutionReference { + // Name of the execution. + string name = 1 [(google.api.resource_reference) = { + type: "run.googleapis.com/Execution" + }]; + + // Creation timestamp of the execution. + google.protobuf.Timestamp create_time = 2; + + // Creation timestamp of the execution. + google.protobuf.Timestamp completion_time = 3; +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto similarity index 100% rename from java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto similarity index 95% rename from java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto index 0cb674e8178f..5980d31ed1bc 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto @@ -53,7 +53,7 @@ service Revisions { option (google.api.method_signature) = "name"; } - // List Revisions from a given Service, or from a given location. + // Lists Revisions from a given Service, or from a given location. rpc ListRevisions(ListRevisionsRequest) returns (ListRevisionsResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/locations/*/services/*}/revisions" @@ -67,7 +67,7 @@ service Revisions { option (google.api.method_signature) = "parent"; } - // Delete a Revision. + // Deletes a Revision. rpc DeleteRevision(DeleteRevisionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v2/{name=projects/*/locations/*/services/*/revisions/*}" @@ -221,11 +221,11 @@ message Revision { ]; // Scaling settings for this revision. - RevisionScaling scaling = 12; + google.cloud.run.v2.RevisionScaling scaling = 12; // VPC Access configuration for this Revision. For more information, visit // https://cloud.google.com/run/docs/configuring/connecting-vpc. - VpcAccess vpc_access = 13; + google.cloud.run.v2.VpcAccess vpc_access = 13; // Sets the maximum number of requests that each serving instance can receive. int32 max_instance_request_concurrency = 34; @@ -240,13 +240,13 @@ message Revision { // Holds the single container that defines the unit of execution for this // Revision. - repeated Container containers = 17; + repeated google.cloud.run.v2.Container containers = 17; // A list of Volumes to make available to containers. - repeated Volume volumes = 18; + repeated google.cloud.run.v2.Volume volumes = 18; // The execution environment being used to host this Revision. - ExecutionEnvironment execution_environment = 20; + google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; // A reference to a customer managed encryption key (CMEK) to use to encrypt // this container image. For more information, go to @@ -262,7 +262,7 @@ message Revision { // 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 Condition conditions = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated google.cloud.run.v2.Condition conditions = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The generation of this Revision currently serving traffic. See comments in // `reconciling` for additional information on reconciliation process in Cloud diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto similarity index 91% rename from java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto index f20fb5eb68a5..7389986d7d80 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto @@ -42,11 +42,11 @@ message RevisionTemplate { map annotations = 3; // Scaling settings for this Revision. - RevisionScaling scaling = 4; + google.cloud.run.v2.RevisionScaling scaling = 4; // VPC Access configuration to use for this Revision. For more information, // visit https://cloud.google.com/run/docs/configuring/connecting-vpc. - VpcAccess vpc_access = 6; + google.cloud.run.v2.VpcAccess vpc_access = 6; // Max allowed time for an instance to respond to a request. google.protobuf.Duration timeout = 8; @@ -59,13 +59,13 @@ message RevisionTemplate { // Holds the single container that defines the unit of execution for this // Revision. - repeated Container containers = 10; + repeated google.cloud.run.v2.Container containers = 10; // A list of Volumes to make available to containers. - repeated Volume volumes = 11; + repeated google.cloud.run.v2.Volume volumes = 11; // The sandbox environment to host this Revision. - ExecutionEnvironment execution_environment = 13; + google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; // A reference to a customer managed encryption key (CMEK) to use to encrypt // this container image. For more information, go to diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto similarity index 96% rename from java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto index 08823925b5f3..5c3a05ae4b3b 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto @@ -74,7 +74,7 @@ service Services { option (google.api.method_signature) = "name"; } - // List Services. + // Lists Services. rpc ListServices(ListServicesRequest) returns (ListServicesResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/locations/*}/services" @@ -127,7 +127,7 @@ service Services { }; } - // Get the IAM Access Control policy currently in effect for the given + // Gets the IAM Access Control policy currently in effect for the given // Cloud Run Service. This result does not include any inherited policies. rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { @@ -157,7 +157,7 @@ service Services { // Request message for creating a Service. message CreateServiceRequest { - // The location and project in which this service should be created. + // Required. The location and project in which this service should be created. // Format: projects/{project}/locations/{location} // Only lowercase characters, digits, and hyphens. string parent = 1 [ @@ -342,7 +342,7 @@ message Service { // Provides the ingress settings for this Service. On output, returns the // currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no // revision is active. - IngressTraffic ingress = 15; + google.cloud.run.v2.IngressTraffic ingress = 15; // The launch stage as defined by [Google Cloud Platform // Launch Stages](https://cloud.google.com/terms/launch-stages). @@ -351,7 +351,7 @@ message Service { google.api.LaunchStage launch_stage = 16; // Settings for the Binary Authorization feature. - BinaryAuthorization binary_authorization = 17; + google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; // Required. The template used to create revisions for this Service. RevisionTemplate template = 18 [(google.api.field_behavior) = REQUIRED]; @@ -359,7 +359,7 @@ message Service { // Specifies how to distribute traffic over a collection of Revisions // belonging to the Service. If traffic is empty or not provided, defaults to // 100% traffic to the latest `Ready` Revision. - repeated TrafficTarget traffic = 19; + repeated google.cloud.run.v2.TrafficTarget traffic = 19; // Output only. The generation of this Service currently serving traffic. See comments in // `reconciling` for additional information on reconciliation process in Cloud @@ -372,13 +372,13 @@ message Service { // detailed error information in case it did not reach a serving state. See // comments in `reconciling` for additional information on reconciliation // process in Cloud Run. - Condition terminal_condition = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.cloud.run.v2.Condition terminal_condition = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The Conditions of all other associated sub-resources. They contain // additional diagnostics information in case the Service does not reach its // Serving state. See comments in `reconciling` for additional information on // reconciliation process in Cloud Run. - repeated Condition conditions = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated google.cloud.run.v2.Condition conditions = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Name of the latest revision that is serving traffic. See comments in // `reconciling` for additional information on reconciliation process in Cloud @@ -402,7 +402,7 @@ message Service { // Output only. Detailed status information for corresponding traffic targets. See comments // in `reconciling` for additional information on reconciliation process in // Cloud Run. - repeated 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]; // Output only. The main URI in which this Service is serving traffic. string uri = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto new file mode 100644 index 000000000000..86ed7cb955a2 --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto @@ -0,0 +1,256 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/run/v2/condition.proto"; +import "google/cloud/run/v2/k8s.min.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option java_multiple_files = true; +option java_outer_classname = "TaskProto"; +option java_package = "com.google.cloud.run.v2"; + +// Cloud Run Task Control Plane API. +service Tasks { + option (google.api.default_host) = "run.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Gets information about a Task. + rpc GetTask(GetTaskRequest) returns (Task) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/jobs/*/executions/*/tasks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Tasks from an Execution of a Job. + rpc ListTasks(ListTasksRequest) returns (ListTasksResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*/jobs/*/executions/*}/tasks" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for obtaining a Task by its full name. +message GetTaskRequest { + // Required. The full name of the Task. + // Format: + // projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "run.googleapis.com/Task" + } + ]; +} + +// Request message for retrieving a list of Tasks. +message ListTasksRequest { + // Required. The Execution from which the Tasks should be listed. + // To list all Tasks across Executions of a Job, use "-" instead of Execution + // name. To list all Tasks across Jobs, use "-" instead of Job name. Format: + // projects/{project}/locations/{location}/jobs/{job}/executions/{execution} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "run.googleapis.com/Task" + } + ]; + + // Maximum number of Tasks to return in this call. + int32 page_size = 2; + + // A page token received from a previous call to ListTasks. + // All other parameters must match. + string page_token = 3; + + // If true, returns deleted (but unexpired) resources along with active ones. + bool show_deleted = 4; +} + +// Response message containing a list of Tasks. +message ListTasksResponse { + // The resulting list of Tasks. + repeated Task tasks = 1; + + // A token indicating there are more items than page_size. Use it in the next + // ListTasks request to continue. + string next_page_token = 2; +} + +// Task represents a single run of a container to completion. +message Task { + option (google.api.resource) = { + type: "run.googleapis.com/Task" + pattern: "projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}" + style: DECLARATIVE_FRIENDLY + }; + + // Output only. The unique name of this Task. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server assigned unique identifier for the Task. 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]; + + // Output only. A number that monotonically increases every time the user + // modifies the desired state. + int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // KRM-style labels for the resource. + // User-provided labels are shared with Google's billing system, so they can + // be used to filter, or break down billing charges by team, component, + // environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels + // Cloud Run will populate some labels with 'run.googleapis.com' or + // 'serving.knative.dev' namespaces. Those labels are read-only, and user + // changes will not be preserved. + map labels = 4; + + // KRM-style annotations for the resource. + map annotations = 5; + + // Output only. Represents time when the task was created by the job controller. + // It is not guaranteed to be set in happens-before order across separate + // operations. + google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the task started to run. + // It is not guaranteed to be set in happens-before order across separate + // operations. + google.protobuf.Timestamp start_time = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents time when the Task was completed. It is not guaranteed to + // be set in happens-before order across separate operations. + google.protobuf.Timestamp completion_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last-modified time. + google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the parent Job. + string job = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "run.googleapis.com/Job" + } + ]; + + // Output only. The name of the parent Execution. + string execution = 13 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "run.googleapis.com/Execution" + } + ]; + + // Holds the single container that defines the unit of execution for this + // task. + repeated google.cloud.run.v2.Container containers = 14; + + // A list of Volumes to make available to containers. + repeated google.cloud.run.v2.Volume volumes = 15; + + // Number of retries allowed per Task, before marking this Task failed. + int32 max_retries = 16; + + // Max allowed time duration the Task may be active before the system will + // actively try to mark it failed and kill associated containers. This applies + // per attempt of a task, meaning each retry can run for the full timeout. + google.protobuf.Duration timeout = 17; + + // Email address of the IAM service account associated with the Task of a + // Job. The service account represents the identity of the + // running task, and determines what permissions the task has. If + // not provided, the task will use the project's default service account. + string service_account = 18; + + // The execution environment being used to host this Task. + google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + + // Output only. Indicates whether the resource's reconciliation is still in progress. + // See comments in `Job.reconciling` for additional information on + // reconciliation process in Cloud Run. + bool reconciling = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Condition of this Task, containing its readiness status, and + // detailed error information in case it did not reach the desired state. + repeated google.cloud.run.v2.Condition conditions = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The generation of this Task. See comments in `Job.reconciling` + // for additional information on reconciliation process in Cloud Run. + int64 observed_generation = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Index of the Task, unique per execution, and beginning at 0. + int32 index = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of times this Task was retried. + // Tasks are retried when they fail up to the maxRetries limit. + int32 retried = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Result of the last attempt of this Task. + TaskAttemptResult last_attempt_result = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt + // this container image. For more information, go to + // https://cloud.google.com/run/docs/securing/using-cmek + string encryption_key = 28 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; + + // Output only. VPC Access configuration to use for this Task. For more information, + // visit https://cloud.google.com/run/docs/configuring/connecting-vpc. + google.cloud.run.v2.VpcAccess vpc_access = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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]; +} + +// Result of a task attempt. +message TaskAttemptResult { + // Output only. The status of this attempt. + // If the status code is OK, then the attempt succeeded. + google.rpc.Status status = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The exit code of this attempt. + // This may be unset if the container was unable to exit cleanly with a code + // due to some other failure. + // See status field for possible failure details. + int32 exit_code = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto new file mode 100644 index 000000000000..ae7ee47af5fa --- /dev/null +++ b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto @@ -0,0 +1,68 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.run.v2; + +import "google/api/resource.proto"; +import "google/cloud/run/v2/k8s.min.proto"; +import "google/cloud/run/v2/vendor_settings.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run"; +option java_multiple_files = true; +option java_outer_classname = "TaskTemplateProto"; +option java_package = "com.google.cloud.run.v2"; + +// TaskTemplate describes the data a task should have when created +// from a template. +message TaskTemplate { + // Holds the single container that defines the unit of execution for this + // task. + repeated google.cloud.run.v2.Container containers = 1; + + // A list of Volumes to make available to containers. + repeated google.cloud.run.v2.Volume volumes = 2; + + oneof retries { + // Number of retries allowed per Task, before marking this Task failed. + int32 max_retries = 3; + } + + // Max allowed time duration the Task may be active before the system will + // actively try to mark it failed and kill associated containers. This applies + // per attempt of a task, meaning each retry can run for the full timeout. + google.protobuf.Duration timeout = 4; + + // Email address of the IAM service account associated with the Task of a + // Job. The service account represents the identity of the + // running task, and determines what permissions the task has. If + // not provided, the task will use the project's default service account. + string service_account = 5; + + // The execution environment being used to host this Task. + google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + + // A reference to a customer managed encryption key (CMEK) to use to encrypt + // this container image. For more information, go to + // https://cloud.google.com/run/docs/securing/using-cmek + string encryption_key = 7 [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + }]; + + // VPC Access configuration to use for this Task. For more information, + // visit https://cloud.google.com/run/docs/configuring/connecting-vpc. + google.cloud.run.v2.VpcAccess vpc_access = 8; +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto similarity index 100% rename from java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto similarity index 100% rename from java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto rename to owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..f9232fb8cb55 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.ExecutionsSettings; +import com.google.cloud.run.v2.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExecutionsSettings executionsSettings = + ExecutionsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings); + } +} +// [END run_v2_generated_Executions_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..579173a8ee59 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_Create_SetCredentialsProvider1_sync] +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.ExecutionsSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExecutionsSettings executionsSettings = ExecutionsSettings.newHttpJsonBuilder().build(); + ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings); + } +} +// [END run_v2_generated_Executions_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..50331bb37729 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_Create_SetEndpoint_sync] +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.ExecutionsSettings; +import com.google.cloud.run.v2.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExecutionsSettings executionsSettings = + ExecutionsSettings.newBuilder().setEndpoint(myEndpoint).build(); + ExecutionsClient executionsClient = ExecutionsClient.create(executionsSettings); + } +} +// [END run_v2_generated_Executions_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecution.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecution.java new file mode 100644 index 000000000000..ccb5ce0f37d4 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecution.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_DeleteExecution_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.DeleteExecutionRequest; +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteExecution { + + public static void main(String[] args) throws Exception { + asyncDeleteExecution(); + } + + public static void asyncDeleteExecution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = executionsClient.deleteExecutionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END run_v2_generated_Executions_DeleteExecution_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecutionLRO.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecutionLRO.java new file mode 100644 index 000000000000..64c04ff464b3 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecutionLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_DeleteExecution_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.run.v2.DeleteExecutionRequest; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ExecutionsClient; + +public class AsyncDeleteExecutionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteExecutionLRO(); + } + + public static void asyncDeleteExecutionLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + executionsClient.deleteExecutionOperationCallable().futureCall(request); + // Do something. + Execution response = future.get(); + } + } +} +// [END run_v2_generated_Executions_DeleteExecution_LRO_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecution.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecution.java new file mode 100644 index 000000000000..f13b049a6c9e --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecution.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_DeleteExecution_sync] +import com.google.cloud.run.v2.DeleteExecutionRequest; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ExecutionsClient; + +public class SyncDeleteExecution { + + public static void main(String[] args) throws Exception { + syncDeleteExecution(); + } + + public static void syncDeleteExecution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + Execution response = executionsClient.deleteExecutionAsync(request).get(); + } + } +} +// [END run_v2_generated_Executions_DeleteExecution_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionExecutionname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionExecutionname.java new file mode 100644 index 000000000000..2253410b171d --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionExecutionname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_DeleteExecution_Executionname_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ExecutionsClient; + +public class SyncDeleteExecutionExecutionname { + + public static void main(String[] args) throws Exception { + syncDeleteExecutionExecutionname(); + } + + public static void syncDeleteExecutionExecutionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + Execution response = executionsClient.deleteExecutionAsync(name).get(); + } + } +} +// [END run_v2_generated_Executions_DeleteExecution_Executionname_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionString.java new file mode 100644 index 000000000000..a363c85f364a --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_DeleteExecution_String_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ExecutionsClient; + +public class SyncDeleteExecutionString { + + public static void main(String[] args) throws Exception { + syncDeleteExecutionString(); + } + + public static void syncDeleteExecutionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + String name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString(); + Execution response = executionsClient.deleteExecutionAsync(name).get(); + } + } +} +// [END run_v2_generated_Executions_DeleteExecution_String_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/AsyncGetExecution.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/AsyncGetExecution.java new file mode 100644 index 000000000000..e6fb8c899728 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/AsyncGetExecution.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_GetExecution_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.GetExecutionRequest; + +public class AsyncGetExecution { + + public static void main(String[] args) throws Exception { + asyncGetExecution(); + } + + public static void asyncGetExecution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + GetExecutionRequest request = + GetExecutionRequest.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .build(); + ApiFuture future = executionsClient.getExecutionCallable().futureCall(request); + // Do something. + Execution response = future.get(); + } + } +} +// [END run_v2_generated_Executions_GetExecution_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecution.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecution.java new file mode 100644 index 000000000000..76c6e01e0747 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecution.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_GetExecution_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.GetExecutionRequest; + +public class SyncGetExecution { + + public static void main(String[] args) throws Exception { + syncGetExecution(); + } + + public static void syncGetExecution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + GetExecutionRequest request = + GetExecutionRequest.newBuilder() + .setName( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .build(); + Execution response = executionsClient.getExecution(request); + } + } +} +// [END run_v2_generated_Executions_GetExecution_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionExecutionname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionExecutionname.java new file mode 100644 index 000000000000..661c4ef491a3 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionExecutionname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_GetExecution_Executionname_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ExecutionsClient; + +public class SyncGetExecutionExecutionname { + + public static void main(String[] args) throws Exception { + syncGetExecutionExecutionname(); + } + + public static void syncGetExecutionExecutionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + ExecutionName name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + Execution response = executionsClient.getExecution(name); + } + } +} +// [END run_v2_generated_Executions_GetExecution_Executionname_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionString.java new file mode 100644 index 000000000000..6d1ef49cd203 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_GetExecution_String_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ExecutionsClient; + +public class SyncGetExecutionString { + + public static void main(String[] args) throws Exception { + syncGetExecutionString(); + } + + public static void syncGetExecutionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + String name = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString(); + Execution response = executionsClient.getExecution(name); + } + } +} +// [END run_v2_generated_Executions_GetExecution_String_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutions.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutions.java new file mode 100644 index 000000000000..cf296fa06929 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_ListExecutions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.ListExecutionsRequest; + +public class AsyncListExecutions { + + public static void main(String[] args) throws Exception { + asyncListExecutions(); + } + + public static void asyncListExecutions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + ApiFuture future = + executionsClient.listExecutionsPagedCallable().futureCall(request); + // Do something. + for (Execution element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Executions_ListExecutions_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutionsPaged.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutionsPaged.java new file mode 100644 index 000000000000..34d91f4f1293 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutionsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_ListExecutions_Paged_async] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.ListExecutionsRequest; +import com.google.cloud.run.v2.ListExecutionsResponse; +import com.google.common.base.Strings; + +public class AsyncListExecutionsPaged { + + public static void main(String[] args) throws Exception { + asyncListExecutionsPaged(); + } + + public static void asyncListExecutionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + while (true) { + ListExecutionsResponse response = executionsClient.listExecutionsCallable().call(request); + for (Execution element : response.getExecutionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END run_v2_generated_Executions_ListExecutions_Paged_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutions.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutions.java new file mode 100644 index 000000000000..51b13626a600 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_ListExecutions_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.ListExecutionsRequest; + +public class SyncListExecutions { + + public static void main(String[] args) throws Exception { + syncListExecutions(); + } + + public static void syncListExecutions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + ListExecutionsRequest request = + ListExecutionsRequest.newBuilder() + .setParent(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + for (Execution element : executionsClient.listExecutions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Executions_ListExecutions_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsJobname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsJobname.java new file mode 100644 index 000000000000..81665fec2450 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsJobname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_ListExecutions_Jobname_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.JobName; + +public class SyncListExecutionsJobname { + + public static void main(String[] args) throws Exception { + syncListExecutionsJobname(); + } + + public static void syncListExecutionsJobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + JobName parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + for (Execution element : executionsClient.listExecutions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Executions_ListExecutions_Jobname_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsString.java new file mode 100644 index 000000000000..3c828b06d850 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Executions_ListExecutions_String_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.ExecutionsClient; +import com.google.cloud.run.v2.JobName; + +public class SyncListExecutionsString { + + public static void main(String[] args) throws Exception { + syncListExecutionsString(); + } + + public static void syncListExecutionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ExecutionsClient executionsClient = ExecutionsClient.create()) { + String parent = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); + for (Execution element : executionsClient.listExecutions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Executions_ListExecutions_String_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executionssettings/getexecution/SyncGetExecution.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executionssettings/getexecution/SyncGetExecution.java new file mode 100644 index 000000000000..8d6e099fa16d --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executionssettings/getexecution/SyncGetExecution.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_ExecutionsSettings_GetExecution_sync] +import com.google.cloud.run.v2.ExecutionsSettings; +import java.time.Duration; + +public class SyncGetExecution { + + public static void main(String[] args) throws Exception { + syncGetExecution(); + } + + public static void syncGetExecution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExecutionsSettings.Builder executionsSettingsBuilder = ExecutionsSettings.newBuilder(); + executionsSettingsBuilder + .getExecutionSettings() + .setRetrySettings( + executionsSettingsBuilder.getExecutionSettings().getRetrySettings().toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ExecutionsSettings executionsSettings = executionsSettingsBuilder.build(); + } +} +// [END run_v2_generated_ExecutionsSettings_GetExecution_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..482b16e5b750 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.JobsSettings; +import com.google.cloud.run.v2.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + JobsSettings jobsSettings = + JobsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + JobsClient jobsClient = JobsClient.create(jobsSettings); + } +} +// [END run_v2_generated_Jobs_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..778d2b01191b --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_Create_SetCredentialsProvider1_sync] +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.JobsSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + JobsSettings jobsSettings = JobsSettings.newHttpJsonBuilder().build(); + JobsClient jobsClient = JobsClient.create(jobsSettings); + } +} +// [END run_v2_generated_Jobs_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..c206bf25f155 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetEndpoint.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_Create_SetEndpoint_sync] +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.JobsSettings; +import com.google.cloud.run.v2.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + JobsSettings jobsSettings = JobsSettings.newBuilder().setEndpoint(myEndpoint).build(); + JobsClient jobsClient = JobsClient.create(jobsSettings); + } +} +// [END run_v2_generated_Jobs_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJob.java new file mode 100644 index 000000000000..5452485747b4 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJob.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_CreateJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.CreateJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateJob { + + public static void main(String[] args) throws Exception { + asyncCreateJob(); + } + + public static void asyncCreateJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setJob(Job.newBuilder().build()) + .setJobId("jobId101296568") + .setValidateOnly(true) + .build(); + ApiFuture future = jobsClient.createJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_CreateJob_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJobLRO.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJobLRO.java new file mode 100644 index 000000000000..c4b2b7400a90 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJobLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_CreateJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.run.v2.CreateJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.LocationName; + +public class AsyncCreateJobLRO { + + public static void main(String[] args) throws Exception { + asyncCreateJobLRO(); + } + + public static void asyncCreateJobLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setJob(Job.newBuilder().build()) + .setJobId("jobId101296568") + .setValidateOnly(true) + .build(); + OperationFuture future = + jobsClient.createJobOperationCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_CreateJob_LRO_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJob.java new file mode 100644 index 000000000000..33fe6aea6135 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJob.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_CreateJob_sync] +import com.google.cloud.run.v2.CreateJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.LocationName; + +public class SyncCreateJob { + + public static void main(String[] args) throws Exception { + syncCreateJob(); + } + + public static void syncCreateJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setJob(Job.newBuilder().build()) + .setJobId("jobId101296568") + .setValidateOnly(true) + .build(); + Job response = jobsClient.createJobAsync(request).get(); + } + } +} +// [END run_v2_generated_Jobs_CreateJob_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobLocationnameJobString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobLocationnameJobString.java new file mode 100644 index 000000000000..b5e99dd1a6ef --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobLocationnameJobString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_CreateJob_LocationnameJobString_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.LocationName; + +public class SyncCreateJobLocationnameJobString { + + public static void main(String[] args) throws Exception { + syncCreateJobLocationnameJobString(); + } + + public static void syncCreateJobLocationnameJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Job job = Job.newBuilder().build(); + String jobId = "jobId101296568"; + Job response = jobsClient.createJobAsync(parent, job, jobId).get(); + } + } +} +// [END run_v2_generated_Jobs_CreateJob_LocationnameJobString_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobStringJobString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobStringJobString.java new file mode 100644 index 000000000000..da9962075282 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobStringJobString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_CreateJob_StringJobString_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.LocationName; + +public class SyncCreateJobStringJobString { + + public static void main(String[] args) throws Exception { + syncCreateJobStringJobString(); + } + + public static void syncCreateJobStringJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Job job = Job.newBuilder().build(); + String jobId = "jobId101296568"; + Job response = jobsClient.createJobAsync(parent, job, jobId).get(); + } + } +} +// [END run_v2_generated_Jobs_CreateJob_StringJobString_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJob.java new file mode 100644 index 000000000000..600b400aef9e --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJob.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_DeleteJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.DeleteJobRequest; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteJob { + + public static void main(String[] args) throws Exception { + asyncDeleteJob(); + } + + public static void asyncDeleteJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + DeleteJobRequest request = + DeleteJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = jobsClient.deleteJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_DeleteJob_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJobLRO.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJobLRO.java new file mode 100644 index 000000000000..4e31c6885fbd --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJobLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_DeleteJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.run.v2.DeleteJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; + +public class AsyncDeleteJobLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteJobLRO(); + } + + public static void asyncDeleteJobLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + DeleteJobRequest request = + DeleteJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + jobsClient.deleteJobOperationCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_DeleteJob_LRO_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJob.java new file mode 100644 index 000000000000..3cbabf954356 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_DeleteJob_sync] +import com.google.cloud.run.v2.DeleteJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; + +public class SyncDeleteJob { + + public static void main(String[] args) throws Exception { + syncDeleteJob(); + } + + public static void syncDeleteJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + DeleteJobRequest request = + DeleteJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + Job response = jobsClient.deleteJobAsync(request).get(); + } + } +} +// [END run_v2_generated_Jobs_DeleteJob_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobJobname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobJobname.java new file mode 100644 index 000000000000..045c9e310022 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobJobname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_DeleteJob_Jobname_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; + +public class SyncDeleteJobJobname { + + public static void main(String[] args) throws Exception { + syncDeleteJobJobname(); + } + + public static void syncDeleteJobJobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + Job response = jobsClient.deleteJobAsync(name).get(); + } + } +} +// [END run_v2_generated_Jobs_DeleteJob_Jobname_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobString.java new file mode 100644 index 000000000000..e0527ecc8485 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_DeleteJob_String_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; + +public class SyncDeleteJobString { + + public static void main(String[] args) throws Exception { + syncDeleteJobString(); + } + + public static void syncDeleteJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); + Job response = jobsClient.deleteJobAsync(name).get(); + } + } +} +// [END run_v2_generated_Jobs_DeleteJob_String_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..ac0ca38cf2f7 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = jobsClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_GetIamPolicy_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..903beb2c0b63 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_GetIamPolicy_sync] +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = jobsClient.getIamPolicy(request); + } + } +} +// [END run_v2_generated_Jobs_GetIamPolicy_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/AsyncGetJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/AsyncGetJob.java new file mode 100644 index 000000000000..c99b84d91b5e --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/AsyncGetJob.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_GetJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.GetJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; + +public class AsyncGetJob { + + public static void main(String[] args) throws Exception { + asyncGetJob(); + } + + public static void asyncGetJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + GetJobRequest request = + GetJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .build(); + ApiFuture future = jobsClient.getJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_GetJob_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJob.java new file mode 100644 index 000000000000..aab7ae4b820f --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJob.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_GetJob_sync] +import com.google.cloud.run.v2.GetJobRequest; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; + +public class SyncGetJob { + + public static void main(String[] args) throws Exception { + syncGetJob(); + } + + public static void syncGetJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + GetJobRequest request = + GetJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .build(); + Job response = jobsClient.getJob(request); + } + } +} +// [END run_v2_generated_Jobs_GetJob_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobJobname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobJobname.java new file mode 100644 index 000000000000..d5296ab01ddb --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobJobname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_GetJob_Jobname_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; + +public class SyncGetJobJobname { + + public static void main(String[] args) throws Exception { + syncGetJobJobname(); + } + + public static void syncGetJobJobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + Job response = jobsClient.getJob(name); + } + } +} +// [END run_v2_generated_Jobs_GetJob_Jobname_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobString.java new file mode 100644 index 000000000000..0c85c36bc7e8 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_GetJob_String_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; + +public class SyncGetJobString { + + public static void main(String[] args) throws Exception { + syncGetJobString(); + } + + public static void syncGetJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); + Job response = jobsClient.getJob(name); + } + } +} +// [END run_v2_generated_Jobs_GetJob_String_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobs.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobs.java new file mode 100644 index 000000000000..ba574a153895 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobs.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_ListJobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.ListJobsRequest; +import com.google.cloud.run.v2.LocationName; + +public class AsyncListJobs { + + public static void main(String[] args) throws Exception { + asyncListJobs(); + } + + public static void asyncListJobs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + ApiFuture future = jobsClient.listJobsPagedCallable().futureCall(request); + // Do something. + for (Job element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Jobs_ListJobs_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobsPaged.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobsPaged.java new file mode 100644 index 000000000000..063d8e5b25f4 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_ListJobs_Paged_async] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.ListJobsRequest; +import com.google.cloud.run.v2.ListJobsResponse; +import com.google.cloud.run.v2.LocationName; +import com.google.common.base.Strings; + +public class AsyncListJobsPaged { + + public static void main(String[] args) throws Exception { + asyncListJobsPaged(); + } + + public static void asyncListJobsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + while (true) { + ListJobsResponse response = jobsClient.listJobsCallable().call(request); + for (Job element : response.getJobsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END run_v2_generated_Jobs_ListJobs_Paged_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobs.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobs.java new file mode 100644 index 000000000000..3e13545da3bc --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobs.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_ListJobs_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.ListJobsRequest; +import com.google.cloud.run.v2.LocationName; + +public class SyncListJobs { + + public static void main(String[] args) throws Exception { + syncListJobs(); + } + + public static void syncListJobs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + for (Job element : jobsClient.listJobs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Jobs_ListJobs_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsLocationname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsLocationname.java new file mode 100644 index 000000000000..edb13a4d2564 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_ListJobs_Locationname_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.LocationName; + +public class SyncListJobsLocationname { + + public static void main(String[] args) throws Exception { + syncListJobsLocationname(); + } + + public static void syncListJobsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Job element : jobsClient.listJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Jobs_ListJobs_Locationname_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsString.java new file mode 100644 index 000000000000..f500be80192c --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_ListJobs_String_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.LocationName; + +public class SyncListJobsString { + + public static void main(String[] args) throws Exception { + syncListJobsString(); + } + + public static void syncListJobsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Job element : jobsClient.listJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Jobs_ListJobs_String_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJob.java new file mode 100644 index 000000000000..1ab38c233723 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJob.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_RunJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.RunJobRequest; +import com.google.longrunning.Operation; + +public class AsyncRunJob { + + public static void main(String[] args) throws Exception { + asyncRunJob(); + } + + public static void asyncRunJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + RunJobRequest request = + RunJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = jobsClient.runJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_RunJob_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJobLRO.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJobLRO.java new file mode 100644 index 000000000000..75affb2b089b --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJobLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_RunJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.RunJobRequest; + +public class AsyncRunJobLRO { + + public static void main(String[] args) throws Exception { + asyncRunJobLRO(); + } + + public static void asyncRunJobLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + RunJobRequest request = + RunJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + jobsClient.runJobOperationCallable().futureCall(request); + // Do something. + Execution response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_RunJob_LRO_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJob.java new file mode 100644 index 000000000000..798931a7c63b --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_RunJob_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.RunJobRequest; + +public class SyncRunJob { + + public static void main(String[] args) throws Exception { + syncRunJob(); + } + + public static void syncRunJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + RunJobRequest request = + RunJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + Execution response = jobsClient.runJobAsync(request).get(); + } + } +} +// [END run_v2_generated_Jobs_RunJob_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobJobname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobJobname.java new file mode 100644 index 000000000000..b9d17ca3382e --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobJobname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_RunJob_Jobname_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; + +public class SyncRunJobJobname { + + public static void main(String[] args) throws Exception { + syncRunJobJobname(); + } + + public static void syncRunJobJobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + Execution response = jobsClient.runJobAsync(name).get(); + } + } +} +// [END run_v2_generated_Jobs_RunJob_Jobname_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobString.java new file mode 100644 index 000000000000..cb4c62c99e17 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_RunJob_String_sync] +import com.google.cloud.run.v2.Execution; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; + +public class SyncRunJobString { + + public static void main(String[] args) throws Exception { + syncRunJobString(); + } + + public static void syncRunJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); + Execution response = jobsClient.runJobAsync(name).get(); + } + } +} +// [END run_v2_generated_Jobs_RunJob_String_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..55fcf3ba1f98 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = jobsClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_SetIamPolicy_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..8271441ced54 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_SetIamPolicy_sync] +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = jobsClient.setIamPolicy(request); + } + } +} +// [END run_v2_generated_Jobs_SetIamPolicy_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..d978bebf3c9b --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + jobsClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_TestIamPermissions_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..3ab4d802a19a --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_TestIamPermissions_sync] +import com.google.cloud.run.v2.JobName; +import com.google.cloud.run.v2.JobsClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = jobsClient.testIamPermissions(request); + } + } +} +// [END run_v2_generated_Jobs_TestIamPermissions_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJob.java new file mode 100644 index 000000000000..b316f1fc31a6 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJob.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_UpdateJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.UpdateJobRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateJob { + + public static void main(String[] args) throws Exception { + asyncUpdateJob(); + } + + public static void asyncUpdateJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + UpdateJobRequest request = + UpdateJobRequest.newBuilder() + .setJob(Job.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + ApiFuture future = jobsClient.updateJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_UpdateJob_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJobLRO.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJobLRO.java new file mode 100644 index 000000000000..d248405b94b0 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJobLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_UpdateJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.UpdateJobRequest; + +public class AsyncUpdateJobLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateJobLRO(); + } + + public static void asyncUpdateJobLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + UpdateJobRequest request = + UpdateJobRequest.newBuilder() + .setJob(Job.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + OperationFuture future = + jobsClient.updateJobOperationCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END run_v2_generated_Jobs_UpdateJob_LRO_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJob.java new file mode 100644 index 000000000000..de055f00c093 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_UpdateJob_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; +import com.google.cloud.run.v2.UpdateJobRequest; + +public class SyncUpdateJob { + + public static void main(String[] args) throws Exception { + syncUpdateJob(); + } + + public static void syncUpdateJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + UpdateJobRequest request = + UpdateJobRequest.newBuilder() + .setJob(Job.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + Job response = jobsClient.updateJobAsync(request).get(); + } + } +} +// [END run_v2_generated_Jobs_UpdateJob_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJobJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJobJob.java new file mode 100644 index 000000000000..138ad0ae609a --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJobJob.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Jobs_UpdateJob_Job_sync] +import com.google.cloud.run.v2.Job; +import com.google.cloud.run.v2.JobsClient; + +public class SyncUpdateJobJob { + + public static void main(String[] args) throws Exception { + syncUpdateJobJob(); + } + + public static void syncUpdateJobJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (JobsClient jobsClient = JobsClient.create()) { + Job job = Job.newBuilder().build(); + Job response = jobsClient.updateJobAsync(job).get(); + } + } +} +// [END run_v2_generated_Jobs_UpdateJob_Job_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobssettings/getjob/SyncGetJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobssettings/getjob/SyncGetJob.java new file mode 100644 index 000000000000..69db48da66eb --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobssettings/getjob/SyncGetJob.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_JobsSettings_GetJob_sync] +import com.google.cloud.run.v2.JobsSettings; +import java.time.Duration; + +public class SyncGetJob { + + public static void main(String[] args) throws Exception { + syncGetJob(); + } + + public static void syncGetJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + JobsSettings.Builder jobsSettingsBuilder = JobsSettings.newBuilder(); + jobsSettingsBuilder + .getJobSettings() + .setRetrySettings( + jobsSettingsBuilder.getJobSettings().getRetrySettings().toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + JobsSettings jobsSettings = jobsSettingsBuilder.build(); + } +} +// [END run_v2_generated_JobsSettings_GetJob_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider.java similarity index 91% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider.java index 0139e1783b7b..e924e8d204d5 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_create_setcredentialsprovider_sync] +// [START run_v2_generated_Revisions_Create_SetCredentialsProvider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.run.v2.RevisionsClient; import com.google.cloud.run.v2.RevisionsSettings; @@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception { RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); } } -// [END run_v2_generated_revisionsclient_create_setcredentialsprovider_sync] +// [END run_v2_generated_Revisions_Create_SetCredentialsProvider_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java similarity index 79% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java index 3bfbced358e9..9d1852237883 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetCredentialsProvider1.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_create_setcredentialsprovider1_sync] +// [START run_v2_generated_Revisions_Create_SetCredentialsProvider1_sync] import com.google.cloud.run.v2.RevisionsClient; import com.google.cloud.run.v2.RevisionsSettings; @@ -32,12 +32,8 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - RevisionsSettings revisionsSettings = - RevisionsSettings.newBuilder() - .setTransportChannelProvider( - RevisionsSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); + RevisionsSettings revisionsSettings = RevisionsSettings.newHttpJsonBuilder().build(); RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); } } -// [END run_v2_generated_revisionsclient_create_setcredentialsprovider1_sync] +// [END run_v2_generated_Revisions_Create_SetCredentialsProvider1_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetEndpoint.java similarity index 92% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetEndpoint.java index db0345a9bd31..7e220aa83393 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/create/SyncCreateSetEndpoint.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetEndpoint.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_create_setendpoint_sync] +// [START run_v2_generated_Revisions_Create_SetEndpoint_sync] import com.google.cloud.run.v2.RevisionsClient; import com.google.cloud.run.v2.RevisionsSettings; import com.google.cloud.run.v2.myEndpoint; @@ -38,4 +38,4 @@ public static void syncCreateSetEndpoint() throws Exception { RevisionsClient revisionsClient = RevisionsClient.create(revisionsSettings); } } -// [END run_v2_generated_revisionsclient_create_setendpoint_sync] +// [END run_v2_generated_Revisions_Create_SetEndpoint_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevision.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevision.java index 85ec1103f306..ddebb964670d 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevision.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevision.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_deleterevision_async] +// [START run_v2_generated_Revisions_DeleteRevision_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.DeleteRevisionRequest; import com.google.cloud.run.v2.RevisionName; @@ -49,4 +49,4 @@ public static void asyncDeleteRevision() throws Exception { } } } -// [END run_v2_generated_revisionsclient_deleterevision_async] +// [END run_v2_generated_Revisions_DeleteRevision_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevisionLRO.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevisionLRO.java index 27c7ebca3cdf..bcf5280824ef 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/AsyncDeleteRevisionLRO.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevisionLRO.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_deleterevision_lro_async] +// [START run_v2_generated_Revisions_DeleteRevision_LRO_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.run.v2.DeleteRevisionRequest; import com.google.cloud.run.v2.Revision; @@ -50,4 +50,4 @@ public static void asyncDeleteRevisionLRO() throws Exception { } } } -// [END run_v2_generated_revisionsclient_deleterevision_lro_async] +// [END run_v2_generated_Revisions_DeleteRevision_LRO_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevision.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevision.java index 867f209e8de2..50399983ed8a 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevision.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevision.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_deleterevision_sync] +// [START run_v2_generated_Revisions_DeleteRevision_sync] import com.google.cloud.run.v2.DeleteRevisionRequest; import com.google.cloud.run.v2.Revision; import com.google.cloud.run.v2.RevisionName; @@ -46,4 +46,4 @@ public static void syncDeleteRevision() throws Exception { } } } -// [END run_v2_generated_revisionsclient_deleterevision_sync] +// [END run_v2_generated_Revisions_DeleteRevision_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionRevisionname.java similarity index 91% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionRevisionname.java index 797cbfc626cf..ded2b8a5a4aa 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionRevisionname.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionRevisionname.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_deleterevision_revisionname_sync] +// [START run_v2_generated_Revisions_DeleteRevision_Revisionname_sync] import com.google.cloud.run.v2.Revision; import com.google.cloud.run.v2.RevisionName; import com.google.cloud.run.v2.RevisionsClient; @@ -39,4 +39,4 @@ public static void syncDeleteRevisionRevisionname() throws Exception { } } } -// [END run_v2_generated_revisionsclient_deleterevision_revisionname_sync] +// [END run_v2_generated_Revisions_DeleteRevision_Revisionname_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionString.java similarity index 92% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionString.java index 0ed46e6e0cf0..2fd71dd3c0d6 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/deleterevision/SyncDeleteRevisionString.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionString.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_deleterevision_string_sync] +// [START run_v2_generated_Revisions_DeleteRevision_String_sync] import com.google.cloud.run.v2.Revision; import com.google.cloud.run.v2.RevisionName; import com.google.cloud.run.v2.RevisionsClient; @@ -40,4 +40,4 @@ public static void syncDeleteRevisionString() throws Exception { } } } -// [END run_v2_generated_revisionsclient_deleterevision_string_sync] +// [END run_v2_generated_Revisions_DeleteRevision_String_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/AsyncGetRevision.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/AsyncGetRevision.java index cb5f1423f0c8..4018ca203fa2 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/AsyncGetRevision.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/AsyncGetRevision.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_getrevision_async] +// [START run_v2_generated_Revisions_GetRevision_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.GetRevisionRequest; import com.google.cloud.run.v2.Revision; @@ -47,4 +47,4 @@ public static void asyncGetRevision() throws Exception { } } } -// [END run_v2_generated_revisionsclient_getrevision_async] +// [END run_v2_generated_Revisions_GetRevision_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevision.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevision.java index 08d2581a731d..b077f8f82f24 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevision.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevision.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_getrevision_sync] +// [START run_v2_generated_Revisions_GetRevision_sync] import com.google.cloud.run.v2.GetRevisionRequest; import com.google.cloud.run.v2.Revision; import com.google.cloud.run.v2.RevisionName; @@ -44,4 +44,4 @@ public static void syncGetRevision() throws Exception { } } } -// [END run_v2_generated_revisionsclient_getrevision_sync] +// [END run_v2_generated_Revisions_GetRevision_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionRevisionname.java similarity index 91% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionRevisionname.java index a8c94dbff0ff..5292a1c5c987 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionRevisionname.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionRevisionname.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_getrevision_revisionname_sync] +// [START run_v2_generated_Revisions_GetRevision_Revisionname_sync] import com.google.cloud.run.v2.Revision; import com.google.cloud.run.v2.RevisionName; import com.google.cloud.run.v2.RevisionsClient; @@ -39,4 +39,4 @@ public static void syncGetRevisionRevisionname() throws Exception { } } } -// [END run_v2_generated_revisionsclient_getrevision_revisionname_sync] +// [END run_v2_generated_Revisions_GetRevision_Revisionname_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionString.java similarity index 92% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionString.java index 79bf768f983b..8373984cd60d 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/getrevision/SyncGetRevisionString.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionString.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_getrevision_string_sync] +// [START run_v2_generated_Revisions_GetRevision_String_sync] import com.google.cloud.run.v2.Revision; import com.google.cloud.run.v2.RevisionName; import com.google.cloud.run.v2.RevisionsClient; @@ -40,4 +40,4 @@ public static void syncGetRevisionString() throws Exception { } } } -// [END run_v2_generated_revisionsclient_getrevision_string_sync] +// [END run_v2_generated_Revisions_GetRevision_String_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisions.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisions.java index 5bfd08c975fb..20eab1fb7ca9 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisions.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisions.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_listrevisions_async] +// [START run_v2_generated_Revisions_ListRevisions_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.ListRevisionsRequest; import com.google.cloud.run.v2.Revision; @@ -51,4 +51,4 @@ public static void asyncListRevisions() throws Exception { } } } -// [END run_v2_generated_revisionsclient_listrevisions_async] +// [END run_v2_generated_Revisions_ListRevisions_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisionsPaged.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisionsPaged.java index b4dcbc6d14e3..fe744a211aed 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/AsyncListRevisionsPaged.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisionsPaged.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_listrevisions_paged_async] +// [START run_v2_generated_Revisions_ListRevisions_Paged_async] import com.google.cloud.run.v2.ListRevisionsRequest; import com.google.cloud.run.v2.ListRevisionsResponse; import com.google.cloud.run.v2.Revision; @@ -59,4 +59,4 @@ public static void asyncListRevisionsPaged() throws Exception { } } } -// [END run_v2_generated_revisionsclient_listrevisions_paged_async] +// [END run_v2_generated_Revisions_ListRevisions_Paged_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisions.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisions.java index 3d7a47b555bf..24f86acf76cd 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisions.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisions.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_listrevisions_sync] +// [START run_v2_generated_Revisions_ListRevisions_sync] import com.google.cloud.run.v2.ListRevisionsRequest; import com.google.cloud.run.v2.Revision; import com.google.cloud.run.v2.RevisionsClient; @@ -48,4 +48,4 @@ public static void syncListRevisions() throws Exception { } } } -// [END run_v2_generated_revisionsclient_listrevisions_sync] +// [END run_v2_generated_Revisions_ListRevisions_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsServicename.java similarity index 91% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsServicename.java index 04a5e1134eb1..479e68e3bed4 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsServicename.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsServicename.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_listrevisions_servicename_sync] +// [START run_v2_generated_Revisions_ListRevisions_Servicename_sync] import com.google.cloud.run.v2.Revision; import com.google.cloud.run.v2.RevisionsClient; import com.google.cloud.run.v2.ServiceName; @@ -41,4 +41,4 @@ public static void syncListRevisionsServicename() throws Exception { } } } -// [END run_v2_generated_revisionsclient_listrevisions_servicename_sync] +// [END run_v2_generated_Revisions_ListRevisions_Servicename_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsString.java similarity index 92% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsString.java index 7d8ceca007f3..7d1e8cdab4c7 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionsclient/listrevisions/SyncListRevisionsString.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsString.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionsclient_listrevisions_string_sync] +// [START run_v2_generated_Revisions_ListRevisions_String_sync] import com.google.cloud.run.v2.Revision; import com.google.cloud.run.v2.RevisionsClient; import com.google.cloud.run.v2.ServiceName; @@ -41,4 +41,4 @@ public static void syncListRevisionsString() throws Exception { } } } -// [END run_v2_generated_revisionsclient_listrevisions_string_sync] +// [END run_v2_generated_Revisions_ListRevisions_String_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java index 81951184690e..d78652c068ad 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_revisionssettings_getrevision_sync] +// [START run_v2_generated_RevisionsSettings_GetRevision_sync] import com.google.cloud.run.v2.RevisionsSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void syncGetRevision() throws Exception { RevisionsSettings revisionsSettings = revisionsSettingsBuilder.build(); } } -// [END run_v2_generated_revisionssettings_getrevision_sync] +// [END run_v2_generated_RevisionsSettings_GetRevision_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider.java similarity index 91% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider.java index abe4c4779dc1..4ac6ae9f940b 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_create_setcredentialsprovider_sync] +// [START run_v2_generated_Services_Create_SetCredentialsProvider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.run.v2.ServicesClient; import com.google.cloud.run.v2.ServicesSettings; @@ -41,4 +41,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception { ServicesClient servicesClient = ServicesClient.create(servicesSettings); } } -// [END run_v2_generated_servicesclient_create_setcredentialsprovider_sync] +// [END run_v2_generated_Services_Create_SetCredentialsProvider_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java similarity index 79% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java index 9e48efe67f8a..d1c1af34386f 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetCredentialsProvider1.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_create_setcredentialsprovider1_sync] +// [START run_v2_generated_Services_Create_SetCredentialsProvider1_sync] import com.google.cloud.run.v2.ServicesClient; import com.google.cloud.run.v2.ServicesSettings; @@ -32,12 +32,8 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ServicesSettings servicesSettings = - ServicesSettings.newBuilder() - .setTransportChannelProvider( - ServicesSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); + ServicesSettings servicesSettings = ServicesSettings.newHttpJsonBuilder().build(); ServicesClient servicesClient = ServicesClient.create(servicesSettings); } } -// [END run_v2_generated_servicesclient_create_setcredentialsprovider1_sync] +// [END run_v2_generated_Services_Create_SetCredentialsProvider1_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetEndpoint.java similarity index 92% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetEndpoint.java index b28e06a32903..c12fb91e7342 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/create/SyncCreateSetEndpoint.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetEndpoint.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_create_setendpoint_sync] +// [START run_v2_generated_Services_Create_SetEndpoint_sync] import com.google.cloud.run.v2.ServicesClient; import com.google.cloud.run.v2.ServicesSettings; import com.google.cloud.run.v2.myEndpoint; @@ -38,4 +38,4 @@ public static void syncCreateSetEndpoint() throws Exception { ServicesClient servicesClient = ServicesClient.create(servicesSettings); } } -// [END run_v2_generated_servicesclient_create_setendpoint_sync] +// [END run_v2_generated_Services_Create_SetEndpoint_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateService.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateService.java index fdcd84877170..cc889c730d6e 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_createservice_async] +// [START run_v2_generated_Services_CreateService_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.CreateServiceRequest; import com.google.cloud.run.v2.LocationName; @@ -50,4 +50,4 @@ public static void asyncCreateService() throws Exception { } } } -// [END run_v2_generated_servicesclient_createservice_async] +// [END run_v2_generated_Services_CreateService_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateServiceLRO.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateServiceLRO.java index 3e6b8cb74234..e426663d23ea 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/AsyncCreateServiceLRO.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateServiceLRO.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_createservice_lro_async] +// [START run_v2_generated_Services_CreateService_LRO_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.run.v2.CreateServiceRequest; import com.google.cloud.run.v2.LocationName; @@ -50,4 +50,4 @@ public static void asyncCreateServiceLRO() throws Exception { } } } -// [END run_v2_generated_servicesclient_createservice_lro_async] +// [END run_v2_generated_Services_CreateService_LRO_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateService.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateService.java index 6d71dbd43eba..57cb74423455 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_createservice_sync] +// [START run_v2_generated_Services_CreateService_sync] import com.google.cloud.run.v2.CreateServiceRequest; import com.google.cloud.run.v2.LocationName; import com.google.cloud.run.v2.Service; @@ -46,4 +46,4 @@ public static void syncCreateService() throws Exception { } } } -// [END run_v2_generated_servicesclient_createservice_sync] +// [END run_v2_generated_Services_CreateService_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceLocationnameServiceString.java similarity index 91% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceLocationnameServiceString.java index 29952c5370fa..521bc7384e91 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceLocationnameServiceString.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceLocationnameServiceString.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_createservice_locationnameservicestring_sync] +// [START run_v2_generated_Services_CreateService_LocationnameServiceString_sync] import com.google.cloud.run.v2.LocationName; import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServicesClient; @@ -41,4 +41,4 @@ public static void syncCreateServiceLocationnameServiceString() throws Exception } } } -// [END run_v2_generated_servicesclient_createservice_locationnameservicestring_sync] +// [END run_v2_generated_Services_CreateService_LocationnameServiceString_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceStringServiceString.java similarity index 91% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceStringServiceString.java index 3b5222a624a6..99888bff884c 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/createservice/SyncCreateServiceStringServiceString.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceStringServiceString.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_createservice_stringservicestring_sync] +// [START run_v2_generated_Services_CreateService_StringServiceString_sync] import com.google.cloud.run.v2.LocationName; import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServicesClient; @@ -41,4 +41,4 @@ public static void syncCreateServiceStringServiceString() throws Exception { } } } -// [END run_v2_generated_servicesclient_createservice_stringservicestring_sync] +// [END run_v2_generated_Services_CreateService_StringServiceString_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteService.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteService.java index 31bdf73676af..f4475a7240be 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_deleteservice_async] +// [START run_v2_generated_Services_DeleteService_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.DeleteServiceRequest; import com.google.cloud.run.v2.ServiceName; @@ -48,4 +48,4 @@ public static void asyncDeleteService() throws Exception { } } } -// [END run_v2_generated_servicesclient_deleteservice_async] +// [END run_v2_generated_Services_DeleteService_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteServiceLRO.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteServiceLRO.java index 20bbcb7faf0b..ca64730876fb 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/AsyncDeleteServiceLRO.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteServiceLRO.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_deleteservice_lro_async] +// [START run_v2_generated_Services_DeleteService_LRO_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.run.v2.DeleteServiceRequest; import com.google.cloud.run.v2.Service; @@ -49,4 +49,4 @@ public static void asyncDeleteServiceLRO() throws Exception { } } } -// [END run_v2_generated_servicesclient_deleteservice_lro_async] +// [END run_v2_generated_Services_DeleteService_LRO_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteService.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteService.java index c29a2e7642c1..35d1d3b320b2 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_deleteservice_sync] +// [START run_v2_generated_Services_DeleteService_sync] import com.google.cloud.run.v2.DeleteServiceRequest; import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServiceName; @@ -45,4 +45,4 @@ public static void syncDeleteService() throws Exception { } } } -// [END run_v2_generated_servicesclient_deleteservice_sync] +// [END run_v2_generated_Services_DeleteService_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceServicename.java similarity index 91% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceServicename.java index 8ac81af706bd..8bc562a5df34 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceServicename.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceServicename.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_deleteservice_servicename_sync] +// [START run_v2_generated_Services_DeleteService_Servicename_sync] import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServiceName; import com.google.cloud.run.v2.ServicesClient; @@ -39,4 +39,4 @@ public static void syncDeleteServiceServicename() throws Exception { } } } -// [END run_v2_generated_servicesclient_deleteservice_servicename_sync] +// [END run_v2_generated_Services_DeleteService_Servicename_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceString.java similarity index 92% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceString.java index 6e9ec479e759..168d100ed4bc 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/deleteservice/SyncDeleteServiceString.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceString.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_deleteservice_string_sync] +// [START run_v2_generated_Services_DeleteService_String_sync] import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServiceName; import com.google.cloud.run.v2.ServicesClient; @@ -39,4 +39,4 @@ public static void syncDeleteServiceString() throws Exception { } } } -// [END run_v2_generated_servicesclient_deleteservice_string_sync] +// [END run_v2_generated_Services_DeleteService_String_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/AsyncGetIamPolicy.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/AsyncGetIamPolicy.java index ad84ec23353e..f0057a960fb2 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/AsyncGetIamPolicy.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/AsyncGetIamPolicy.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_getiampolicy_async] +// [START run_v2_generated_Services_GetIamPolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.ServiceName; import com.google.cloud.run.v2.ServicesClient; @@ -48,4 +48,4 @@ public static void asyncGetIamPolicy() throws Exception { } } } -// [END run_v2_generated_servicesclient_getiampolicy_async] +// [END run_v2_generated_Services_GetIamPolicy_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/SyncGetIamPolicy.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/SyncGetIamPolicy.java index deb4179b135a..21a0a8c58dba 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getiampolicy/SyncGetIamPolicy.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/SyncGetIamPolicy.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_getiampolicy_sync] +// [START run_v2_generated_Services_GetIamPolicy_sync] import com.google.cloud.run.v2.ServiceName; import com.google.cloud.run.v2.ServicesClient; import com.google.iam.v1.GetIamPolicyRequest; @@ -45,4 +45,4 @@ public static void syncGetIamPolicy() throws Exception { } } } -// [END run_v2_generated_servicesclient_getiampolicy_sync] +// [END run_v2_generated_Services_GetIamPolicy_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/AsyncGetService.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/AsyncGetService.java index 359909632504..642f5160d8cf 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/AsyncGetService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/AsyncGetService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_getservice_async] +// [START run_v2_generated_Services_GetService_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.GetServiceRequest; import com.google.cloud.run.v2.Service; @@ -46,4 +46,4 @@ public static void asyncGetService() throws Exception { } } } -// [END run_v2_generated_servicesclient_getservice_async] +// [END run_v2_generated_Services_GetService_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetService.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetService.java index 99a3c940fe01..2298cf5ece83 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_getservice_sync] +// [START run_v2_generated_Services_GetService_sync] import com.google.cloud.run.v2.GetServiceRequest; import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServiceName; @@ -43,4 +43,4 @@ public static void syncGetService() throws Exception { } } } -// [END run_v2_generated_servicesclient_getservice_sync] +// [END run_v2_generated_Services_GetService_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceServicename.java similarity index 92% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceServicename.java index ea46c315e5dd..4665cdf41ec4 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceServicename.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceServicename.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_getservice_servicename_sync] +// [START run_v2_generated_Services_GetService_Servicename_sync] import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServiceName; import com.google.cloud.run.v2.ServicesClient; @@ -39,4 +39,4 @@ public static void syncGetServiceServicename() throws Exception { } } } -// [END run_v2_generated_servicesclient_getservice_servicename_sync] +// [END run_v2_generated_Services_GetService_Servicename_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceString.java similarity index 92% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceString.java index 27b5053ea201..a4e668c4f573 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/getservice/SyncGetServiceString.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceString.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_getservice_string_sync] +// [START run_v2_generated_Services_GetService_String_sync] import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServiceName; import com.google.cloud.run.v2.ServicesClient; @@ -39,4 +39,4 @@ public static void syncGetServiceString() throws Exception { } } } -// [END run_v2_generated_servicesclient_getservice_string_sync] +// [END run_v2_generated_Services_GetService_String_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServices.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServices.java index 7546481a5a13..ea87a07a919b 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServices.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServices.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_listservices_async] +// [START run_v2_generated_Services_ListServices_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.ListServicesRequest; import com.google.cloud.run.v2.LocationName; @@ -51,4 +51,4 @@ public static void asyncListServices() throws Exception { } } } -// [END run_v2_generated_servicesclient_listservices_async] +// [END run_v2_generated_Services_ListServices_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServicesPaged.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServicesPaged.java index 42cc863cd84c..01bb73a9c844 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/AsyncListServicesPaged.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServicesPaged.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_listservices_paged_async] +// [START run_v2_generated_Services_ListServices_Paged_async] import com.google.cloud.run.v2.ListServicesRequest; import com.google.cloud.run.v2.ListServicesResponse; import com.google.cloud.run.v2.LocationName; @@ -59,4 +59,4 @@ public static void asyncListServicesPaged() throws Exception { } } } -// [END run_v2_generated_servicesclient_listservices_paged_async] +// [END run_v2_generated_Services_ListServices_Paged_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServices.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServices.java index 2b5c7beec1b7..87e556882151 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServices.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServices.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_listservices_sync] +// [START run_v2_generated_Services_ListServices_sync] import com.google.cloud.run.v2.ListServicesRequest; import com.google.cloud.run.v2.LocationName; import com.google.cloud.run.v2.Service; @@ -48,4 +48,4 @@ public static void syncListServices() throws Exception { } } } -// [END run_v2_generated_servicesclient_listservices_sync] +// [END run_v2_generated_Services_ListServices_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesLocationname.java similarity index 91% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesLocationname.java index b674e6fb354b..5d46e7457c83 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesLocationname.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesLocationname.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_listservices_locationname_sync] +// [START run_v2_generated_Services_ListServices_Locationname_sync] import com.google.cloud.run.v2.LocationName; import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServicesClient; @@ -41,4 +41,4 @@ public static void syncListServicesLocationname() throws Exception { } } } -// [END run_v2_generated_servicesclient_listservices_locationname_sync] +// [END run_v2_generated_Services_ListServices_Locationname_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesString.java similarity index 92% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesString.java index b43d9d9582fc..6c141c007365 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/listservices/SyncListServicesString.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesString.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_listservices_string_sync] +// [START run_v2_generated_Services_ListServices_String_sync] import com.google.cloud.run.v2.LocationName; import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServicesClient; @@ -41,4 +41,4 @@ public static void syncListServicesString() throws Exception { } } } -// [END run_v2_generated_servicesclient_listservices_string_sync] +// [END run_v2_generated_Services_ListServices_String_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/AsyncSetIamPolicy.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/AsyncSetIamPolicy.java index 43e00dcd30e4..1198f41a1ec1 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/AsyncSetIamPolicy.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/AsyncSetIamPolicy.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_setiampolicy_async] +// [START run_v2_generated_Services_SetIamPolicy_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.ServiceName; import com.google.cloud.run.v2.ServicesClient; @@ -49,4 +49,4 @@ public static void asyncSetIamPolicy() throws Exception { } } } -// [END run_v2_generated_servicesclient_setiampolicy_async] +// [END run_v2_generated_Services_SetIamPolicy_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/SyncSetIamPolicy.java similarity index 94% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/SyncSetIamPolicy.java index e4ce1665614b..6279ac7e8acf 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/setiampolicy/SyncSetIamPolicy.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/SyncSetIamPolicy.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_setiampolicy_sync] +// [START run_v2_generated_Services_SetIamPolicy_sync] import com.google.cloud.run.v2.ServiceName; import com.google.cloud.run.v2.ServicesClient; import com.google.iam.v1.Policy; @@ -46,4 +46,4 @@ public static void syncSetIamPolicy() throws Exception { } } } -// [END run_v2_generated_servicesclient_setiampolicy_sync] +// [END run_v2_generated_Services_SetIamPolicy_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/AsyncTestIamPermissions.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/AsyncTestIamPermissions.java index 0311cd5e47ec..f398f6f04e5b 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/AsyncTestIamPermissions.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/AsyncTestIamPermissions.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_testiampermissions_async] +// [START run_v2_generated_Services_TestIamPermissions_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.ServiceName; import com.google.cloud.run.v2.ServicesClient; @@ -49,4 +49,4 @@ public static void asyncTestIamPermissions() throws Exception { } } } -// [END run_v2_generated_servicesclient_testiampermissions_async] +// [END run_v2_generated_Services_TestIamPermissions_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/SyncTestIamPermissions.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/SyncTestIamPermissions.java index c14ef882fe42..41656820a13f 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/testiampermissions/SyncTestIamPermissions.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/SyncTestIamPermissions.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_testiampermissions_sync] +// [START run_v2_generated_Services_TestIamPermissions_sync] import com.google.cloud.run.v2.ServiceName; import com.google.cloud.run.v2.ServicesClient; import com.google.iam.v1.TestIamPermissionsRequest; @@ -45,4 +45,4 @@ public static void syncTestIamPermissions() throws Exception { } } } -// [END run_v2_generated_servicesclient_testiampermissions_sync] +// [END run_v2_generated_Services_TestIamPermissions_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java index 33065d3b7981..7de4e1baade8 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_updateservice_async] +// [START run_v2_generated_Services_UpdateService_async] import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServicesClient; @@ -48,4 +48,4 @@ public static void asyncUpdateService() throws Exception { } } } -// [END run_v2_generated_servicesclient_updateservice_async] +// [END run_v2_generated_Services_UpdateService_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java index e969e5dcbdd1..2a25889f6036 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/AsyncUpdateServiceLRO.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_updateservice_lro_async] +// [START run_v2_generated_Services_UpdateService_LRO_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServicesClient; @@ -48,4 +48,4 @@ public static void asyncUpdateServiceLRO() throws Exception { } } } -// [END run_v2_generated_servicesclient_updateservice_lro_async] +// [END run_v2_generated_Services_UpdateService_LRO_async] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java index 2e37583f38da..511207c76447 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_updateservice_sync] +// [START run_v2_generated_Services_UpdateService_sync] import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServicesClient; import com.google.cloud.run.v2.UpdateServiceRequest; @@ -44,4 +44,4 @@ public static void syncUpdateService() throws Exception { } } } -// [END run_v2_generated_servicesclient_updateservice_sync] +// [END run_v2_generated_Services_UpdateService_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceService.java similarity index 91% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceService.java index 4aeb05b7e9e4..d505cea4b7db 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicesclient/updateservice/SyncUpdateServiceService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicesclient_updateservice_service_sync] +// [START run_v2_generated_Services_UpdateService_Service_sync] import com.google.cloud.run.v2.Service; import com.google.cloud.run.v2.ServicesClient; @@ -38,4 +38,4 @@ public static void syncUpdateServiceService() throws Exception { } } } -// [END run_v2_generated_servicesclient_updateservice_service_sync] +// [END run_v2_generated_Services_UpdateService_Service_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java index 936dc5572149..837e7cb5efec 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.samples; -// [START run_v2_generated_servicessettings_getservice_sync] +// [START run_v2_generated_ServicesSettings_GetService_sync] import com.google.cloud.run.v2.ServicesSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void syncGetService() throws Exception { ServicesSettings servicesSettings = servicesSettingsBuilder.build(); } } -// [END run_v2_generated_servicessettings_getservice_sync] +// [END run_v2_generated_ServicesSettings_GetService_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/executionsstubsettings/getexecution/SyncGetExecution.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/executionsstubsettings/getexecution/SyncGetExecution.java new file mode 100644 index 000000000000..83ba95ec8676 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/executionsstubsettings/getexecution/SyncGetExecution.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub.samples; + +// [START run_v2_generated_ExecutionsStubSettings_GetExecution_sync] +import com.google.cloud.run.v2.stub.ExecutionsStubSettings; +import java.time.Duration; + +public class SyncGetExecution { + + public static void main(String[] args) throws Exception { + syncGetExecution(); + } + + public static void syncGetExecution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ExecutionsStubSettings.Builder executionsSettingsBuilder = ExecutionsStubSettings.newBuilder(); + executionsSettingsBuilder + .getExecutionSettings() + .setRetrySettings( + executionsSettingsBuilder.getExecutionSettings().getRetrySettings().toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ExecutionsStubSettings executionsSettings = executionsSettingsBuilder.build(); + } +} +// [END run_v2_generated_ExecutionsStubSettings_GetExecution_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/jobsstubsettings/getjob/SyncGetJob.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/jobsstubsettings/getjob/SyncGetJob.java new file mode 100644 index 000000000000..fa5fd3b6e955 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/jobsstubsettings/getjob/SyncGetJob.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub.samples; + +// [START run_v2_generated_JobsStubSettings_GetJob_sync] +import com.google.cloud.run.v2.stub.JobsStubSettings; +import java.time.Duration; + +public class SyncGetJob { + + public static void main(String[] args) throws Exception { + syncGetJob(); + } + + public static void syncGetJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + JobsStubSettings.Builder jobsSettingsBuilder = JobsStubSettings.newBuilder(); + jobsSettingsBuilder + .getJobSettings() + .setRetrySettings( + jobsSettingsBuilder.getJobSettings().getRetrySettings().toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + JobsStubSettings jobsSettings = jobsSettingsBuilder.build(); + } +} +// [END run_v2_generated_JobsStubSettings_GetJob_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java index 04a952e366ef..c066a27d2d82 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.stub.samples; -// [START run_v2_generated_revisionsstubsettings_getrevision_sync] +// [START run_v2_generated_RevisionsStubSettings_GetRevision_sync] import com.google.cloud.run.v2.stub.RevisionsStubSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void syncGetRevision() throws Exception { RevisionsStubSettings revisionsSettings = revisionsSettingsBuilder.build(); } } -// [END run_v2_generated_revisionsstubsettings_getrevision_sync] +// [END run_v2_generated_RevisionsStubSettings_GetRevision_sync] diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java similarity index 93% rename from java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java rename to owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java index 253b95b20383..75c8361619e6 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java @@ -16,7 +16,7 @@ package com.google.cloud.run.v2.stub.samples; -// [START run_v2_generated_servicesstubsettings_getservice_sync] +// [START run_v2_generated_ServicesStubSettings_GetService_sync] import com.google.cloud.run.v2.stub.ServicesStubSettings; import java.time.Duration; @@ -42,4 +42,4 @@ public static void syncGetService() throws Exception { ServicesStubSettings servicesSettings = servicesSettingsBuilder.build(); } } -// [END run_v2_generated_servicesstubsettings_getservice_sync] +// [END run_v2_generated_ServicesStubSettings_GetService_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/tasksstubsettings/gettask/SyncGetTask.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/tasksstubsettings/gettask/SyncGetTask.java new file mode 100644 index 000000000000..a3bbe74f0293 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/tasksstubsettings/gettask/SyncGetTask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.stub.samples; + +// [START run_v2_generated_TasksStubSettings_GetTask_sync] +import com.google.cloud.run.v2.stub.TasksStubSettings; +import java.time.Duration; + +public class SyncGetTask { + + public static void main(String[] args) throws Exception { + syncGetTask(); + } + + public static void syncGetTask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TasksStubSettings.Builder tasksSettingsBuilder = TasksStubSettings.newBuilder(); + tasksSettingsBuilder + .getTaskSettings() + .setRetrySettings( + tasksSettingsBuilder.getTaskSettings().getRetrySettings().toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TasksStubSettings tasksSettings = tasksSettingsBuilder.build(); + } +} +// [END run_v2_generated_TasksStubSettings_GetTask_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..52ab9c54bd3b --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.run.v2.TasksClient; +import com.google.cloud.run.v2.TasksSettings; +import com.google.cloud.run.v2.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TasksSettings tasksSettings = + TasksSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + TasksClient tasksClient = TasksClient.create(tasksSettings); + } +} +// [END run_v2_generated_Tasks_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..b73a00a7b95c --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_Create_SetCredentialsProvider1_sync] +import com.google.cloud.run.v2.TasksClient; +import com.google.cloud.run.v2.TasksSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TasksSettings tasksSettings = TasksSettings.newHttpJsonBuilder().build(); + TasksClient tasksClient = TasksClient.create(tasksSettings); + } +} +// [END run_v2_generated_Tasks_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..52394c849e01 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetEndpoint.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_Create_SetEndpoint_sync] +import com.google.cloud.run.v2.TasksClient; +import com.google.cloud.run.v2.TasksSettings; +import com.google.cloud.run.v2.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TasksSettings tasksSettings = TasksSettings.newBuilder().setEndpoint(myEndpoint).build(); + TasksClient tasksClient = TasksClient.create(tasksSettings); + } +} +// [END run_v2_generated_Tasks_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/AsyncGetTask.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/AsyncGetTask.java new file mode 100644 index 000000000000..a0a403693ca7 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/AsyncGetTask.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_GetTask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.GetTaskRequest; +import com.google.cloud.run.v2.Task; +import com.google.cloud.run.v2.TaskName; +import com.google.cloud.run.v2.TasksClient; + +public class AsyncGetTask { + + public static void main(String[] args) throws Exception { + asyncGetTask(); + } + + public static void asyncGetTask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TasksClient tasksClient = TasksClient.create()) { + GetTaskRequest request = + GetTaskRequest.newBuilder() + .setName( + TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]") + .toString()) + .build(); + ApiFuture future = tasksClient.getTaskCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END run_v2_generated_Tasks_GetTask_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTask.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTask.java new file mode 100644 index 000000000000..21d37364789a --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_GetTask_sync] +import com.google.cloud.run.v2.GetTaskRequest; +import com.google.cloud.run.v2.Task; +import com.google.cloud.run.v2.TaskName; +import com.google.cloud.run.v2.TasksClient; + +public class SyncGetTask { + + public static void main(String[] args) throws Exception { + syncGetTask(); + } + + public static void syncGetTask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TasksClient tasksClient = TasksClient.create()) { + GetTaskRequest request = + GetTaskRequest.newBuilder() + .setName( + TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]") + .toString()) + .build(); + Task response = tasksClient.getTask(request); + } + } +} +// [END run_v2_generated_Tasks_GetTask_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskString.java new file mode 100644 index 000000000000..f6896e4c7708 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_GetTask_String_sync] +import com.google.cloud.run.v2.Task; +import com.google.cloud.run.v2.TaskName; +import com.google.cloud.run.v2.TasksClient; + +public class SyncGetTaskString { + + public static void main(String[] args) throws Exception { + syncGetTaskString(); + } + + public static void syncGetTaskString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TasksClient tasksClient = TasksClient.create()) { + String name = + TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]").toString(); + Task response = tasksClient.getTask(name); + } + } +} +// [END run_v2_generated_Tasks_GetTask_String_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskTaskname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskTaskname.java new file mode 100644 index 000000000000..27e71e694289 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskTaskname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_GetTask_Taskname_sync] +import com.google.cloud.run.v2.Task; +import com.google.cloud.run.v2.TaskName; +import com.google.cloud.run.v2.TasksClient; + +public class SyncGetTaskTaskname { + + public static void main(String[] args) throws Exception { + syncGetTaskTaskname(); + } + + public static void syncGetTaskTaskname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TasksClient tasksClient = TasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]", "[TASK]"); + Task response = tasksClient.getTask(name); + } + } +} +// [END run_v2_generated_Tasks_GetTask_Taskname_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasks.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasks.java new file mode 100644 index 000000000000..6cb973eb7659 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasks.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_ListTasks_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ListTasksRequest; +import com.google.cloud.run.v2.Task; +import com.google.cloud.run.v2.TasksClient; + +public class AsyncListTasks { + + public static void main(String[] args) throws Exception { + asyncListTasks(); + } + + public static void asyncListTasks() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TasksClient tasksClient = TasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + ApiFuture future = tasksClient.listTasksPagedCallable().futureCall(request); + // Do something. + for (Task element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Tasks_ListTasks_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasksPaged.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasksPaged.java new file mode 100644 index 000000000000..3850808a0312 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasksPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_ListTasks_Paged_async] +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ListTasksRequest; +import com.google.cloud.run.v2.ListTasksResponse; +import com.google.cloud.run.v2.Task; +import com.google.cloud.run.v2.TasksClient; +import com.google.common.base.Strings; + +public class AsyncListTasksPaged { + + public static void main(String[] args) throws Exception { + asyncListTasksPaged(); + } + + public static void asyncListTasksPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TasksClient tasksClient = TasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + while (true) { + ListTasksResponse response = tasksClient.listTasksCallable().call(request); + for (Task element : response.getTasksList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END run_v2_generated_Tasks_ListTasks_Paged_async] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasks.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasks.java new file mode 100644 index 000000000000..f7f5e7c75e89 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasks.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_ListTasks_sync] +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.ListTasksRequest; +import com.google.cloud.run.v2.Task; +import com.google.cloud.run.v2.TasksClient; + +public class SyncListTasks { + + public static void main(String[] args) throws Exception { + syncListTasks(); + } + + public static void syncListTasks() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TasksClient tasksClient = TasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent( + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setShowDeleted(true) + .build(); + for (Task element : tasksClient.listTasks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Tasks_ListTasks_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksExecutionname.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksExecutionname.java new file mode 100644 index 000000000000..01be43bf3c4c --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksExecutionname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_ListTasks_Executionname_sync] +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.Task; +import com.google.cloud.run.v2.TasksClient; + +public class SyncListTasksExecutionname { + + public static void main(String[] args) throws Exception { + syncListTasksExecutionname(); + } + + public static void syncListTasksExecutionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TasksClient tasksClient = TasksClient.create()) { + ExecutionName parent = ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]"); + for (Task element : tasksClient.listTasks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Tasks_ListTasks_Executionname_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksString.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksString.java new file mode 100644 index 000000000000..029394a4028a --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_Tasks_ListTasks_String_sync] +import com.google.cloud.run.v2.ExecutionName; +import com.google.cloud.run.v2.Task; +import com.google.cloud.run.v2.TasksClient; + +public class SyncListTasksString { + + public static void main(String[] args) throws Exception { + syncListTasksString(); + } + + public static void syncListTasksString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TasksClient tasksClient = TasksClient.create()) { + String parent = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[EXECUTION]").toString(); + for (Task element : tasksClient.listTasks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END run_v2_generated_Tasks_ListTasks_String_sync] diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/taskssettings/gettask/SyncGetTask.java b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/taskssettings/gettask/SyncGetTask.java new file mode 100644 index 000000000000..8c2e0c5b8299 --- /dev/null +++ b/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/taskssettings/gettask/SyncGetTask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.run.v2.samples; + +// [START run_v2_generated_TasksSettings_GetTask_sync] +import com.google.cloud.run.v2.TasksSettings; +import java.time.Duration; + +public class SyncGetTask { + + public static void main(String[] args) throws Exception { + syncGetTask(); + } + + public static void syncGetTask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + TasksSettings.Builder tasksSettingsBuilder = TasksSettings.newBuilder(); + tasksSettingsBuilder + .getTaskSettings() + .setRetrySettings( + tasksSettingsBuilder.getTaskSettings().getRetrySettings().toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TasksSettings tasksSettings = tasksSettingsBuilder.build(); + } +} +// [END run_v2_generated_TasksSettings_GetTask_sync] From 5809fb78f14f740348cdfccbab20af2926fa8e0d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 2 Nov 2022 22:28:10 +0000 Subject: [PATCH 2/2] =?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 --- java-run/README.md | 6 +- .../google/cloud/run/v2/ExecutionsClient.java | 0 .../cloud/run/v2/ExecutionsSettings.java | 1 - .../com/google/cloud/run/v2/JobsClient.java | 0 .../com/google/cloud/run/v2/JobsSettings.java | 1 - .../google/cloud/run/v2/RevisionsClient.java | 0 .../cloud/run/v2/RevisionsSettings.java | 1 - .../google/cloud/run/v2/ServicesClient.java | 0 .../google/cloud/run/v2/ServicesSettings.java | 1 - .../com/google/cloud/run/v2/TasksClient.java | 0 .../google/cloud/run/v2/TasksSettings.java | 1 - .../google/cloud/run/v2/gapic_metadata.json | 0 .../com/google/cloud/run/v2/package-info.java | 0 .../cloud/run/v2/stub/ExecutionsStub.java | 0 .../run/v2/stub/ExecutionsStubSettings.java | 0 .../stub/GrpcExecutionsCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcExecutionsStub.java | 1 - .../run/v2/stub/GrpcJobsCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcJobsStub.java | 1 - .../v2/stub/GrpcRevisionsCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcRevisionsStub.java | 1 - .../v2/stub/GrpcServicesCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcServicesStub.java | 1 - .../run/v2/stub/GrpcTasksCallableFactory.java | 0 .../cloud/run/v2/stub/GrpcTasksStub.java | 1 - .../HttpJsonExecutionsCallableFactory.java | 0 .../run/v2/stub/HttpJsonExecutionsStub.java | 1 - .../v2/stub/HttpJsonJobsCallableFactory.java | 0 .../cloud/run/v2/stub/HttpJsonJobsStub.java | 1 - .../HttpJsonRevisionsCallableFactory.java | 0 .../run/v2/stub/HttpJsonRevisionsStub.java | 1 - .../stub/HttpJsonServicesCallableFactory.java | 0 .../run/v2/stub/HttpJsonServicesStub.java | 1 - .../v2/stub/HttpJsonTasksCallableFactory.java | 0 .../cloud/run/v2/stub/HttpJsonTasksStub.java | 0 .../google/cloud/run/v2/stub/JobsStub.java | 0 .../cloud/run/v2/stub/JobsStubSettings.java | 0 .../cloud/run/v2/stub/RevisionsStub.java | 0 .../run/v2/stub/RevisionsStubSettings.java | 0 .../cloud/run/v2/stub/ServicesStub.java | 0 .../run/v2/stub/ServicesStubSettings.java | 0 .../google/cloud/run/v2/stub/TasksStub.java | 0 .../cloud/run/v2/stub/TasksStubSettings.java | 0 .../run/v2/ExecutionsClientHttpJsonTest.java | 0 .../cloud/run/v2/ExecutionsClientTest.java | 0 .../cloud/run/v2/JobsClientHttpJsonTest.java | 0 .../google/cloud/run/v2/JobsClientTest.java | 0 .../google/cloud/run/v2/MockExecutions.java | 0 .../cloud/run/v2/MockExecutionsImpl.java | 0 .../com/google/cloud/run/v2/MockJobs.java | 0 .../com/google/cloud/run/v2/MockJobsImpl.java | 0 .../google/cloud/run/v2/MockLocations.java | 0 .../cloud/run/v2/MockLocationsImpl.java | 0 .../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 .../com/google/cloud/run/v2/MockTasks.java | 0 .../google/cloud/run/v2/MockTasksImpl.java | 0 .../run/v2/RevisionsClientHttpJsonTest.java | 0 .../cloud/run/v2/RevisionsClientTest.java | 0 .../run/v2/ServicesClientHttpJsonTest.java | 0 .../cloud/run/v2/ServicesClientTest.java | 0 .../cloud/run/v2/TasksClientHttpJsonTest.java | 0 .../google/cloud/run/v2/TasksClientTest.java | 0 .../google/cloud/run/v2/ExecutionsGrpc.java | 578 +++ .../com/google/cloud/run/v2/JobsGrpc.java | 1210 ++++++ .../google/cloud/run/v2/RevisionsGrpc.java | 577 +++ .../com/google/cloud/run/v2/ServicesGrpc.java | 1136 ++++++ .../com/google/cloud/run/v2/TasksGrpc.java | 448 +++ .../cloud/run/v2/BinaryAuthorization.java | 410 +- .../run/v2/BinaryAuthorizationOrBuilder.java | 33 +- .../google/cloud/run/v2/CloudSqlInstance.java | 345 +- .../run/v2/CloudSqlInstanceOrBuilder.java | 36 +- .../com/google/cloud/run/v2/Condition.java | 1360 ++++--- .../cloud/run/v2/ConditionOrBuilder.java | 83 +- .../google/cloud/run/v2/ConditionProto.java | 113 + .../com/google/cloud/run/v2/Container.java | 1415 ++++--- .../cloud/run/v2/ContainerOrBuilder.java | 161 +- .../google/cloud/run/v2/ContainerPort.java | 351 +- .../cloud/run/v2/ContainerPortOrBuilder.java | 30 +- .../google/cloud/run/v2/CreateJobRequest.java | 531 +-- .../run/v2/CreateJobRequestOrBuilder.java | 55 +- .../cloud/run/v2/CreateServiceRequest.java | 570 +-- .../run/v2/CreateServiceRequestOrBuilder.java | 64 +- .../cloud/run/v2/DeleteExecutionRequest.java | 465 ++- .../v2/DeleteExecutionRequestOrBuilder.java | 47 +- .../google/cloud/run/v2/DeleteJobRequest.java | 462 ++- .../run/v2/DeleteJobRequestOrBuilder.java | 47 +- .../cloud/run/v2/DeleteRevisionRequest.java | 465 ++- .../v2/DeleteRevisionRequestOrBuilder.java | 47 +- .../cloud/run/v2/DeleteServiceRequest.java | 465 ++- .../run/v2/DeleteServiceRequestOrBuilder.java | 47 +- .../java/com/google/cloud/run/v2/EnvVar.java | 540 +-- .../google/cloud/run/v2/EnvVarOrBuilder.java | 47 +- .../com/google/cloud/run/v2/EnvVarSource.java | 323 +- .../cloud/run/v2/EnvVarSourceOrBuilder.java | 26 +- .../com/google/cloud/run/v2/Execution.java | 2568 ++++++++----- .../cloud/run/v2/ExecutionEnvironment.java | 77 +- .../google/cloud/run/v2/ExecutionName.java | 0 .../cloud/run/v2/ExecutionOrBuilder.java | 318 +- .../google/cloud/run/v2/ExecutionProto.java | 252 ++ .../cloud/run/v2/ExecutionReference.java | 486 ++- .../run/v2/ExecutionReferenceOrBuilder.java | 43 +- .../cloud/run/v2/ExecutionTemplate.java | 937 +++-- .../run/v2/ExecutionTemplateOrBuilder.java | 103 +- .../cloud/run/v2/ExecutionTemplateProto.java | 109 + .../cloud/run/v2/GetExecutionRequest.java | 348 +- .../run/v2/GetExecutionRequestOrBuilder.java | 58 + .../google/cloud/run/v2/GetJobRequest.java | 344 +- .../cloud/run/v2/GetJobRequestOrBuilder.java | 56 + .../cloud/run/v2/GetRevisionRequest.java | 348 +- .../run/v2/GetRevisionRequestOrBuilder.java | 58 + .../cloud/run/v2/GetServiceRequest.java | 348 +- .../run/v2/GetServiceRequestOrBuilder.java | 56 + .../google/cloud/run/v2/GetTaskRequest.java | 341 +- .../cloud/run/v2/GetTaskRequestOrBuilder.java | 58 + .../google/cloud/run/v2/HTTPGetAction.java | 471 ++- .../cloud/run/v2/HTTPGetActionOrBuilder.java | 45 +- .../com/google/cloud/run/v2/HTTPHeader.java | 392 +- .../cloud/run/v2/HTTPHeaderOrBuilder.java | 36 +- .../google/cloud/run/v2/IngressTraffic.java | 89 +- .../java/com/google/cloud/run/v2/Job.java | 2744 ++++++++----- .../java/com/google/cloud/run/v2/JobName.java | 0 .../com/google/cloud/run/v2/JobOrBuilder.java | 336 +- .../com/google/cloud/run/v2/JobProto.java | 341 ++ .../com/google/cloud/run/v2/K8sMinProto.java | 329 ++ .../cloud/run/v2/ListExecutionsRequest.java | 500 ++- .../v2/ListExecutionsRequestOrBuilder.java | 50 +- .../cloud/run/v2/ListExecutionsResponse.java | 475 ++- .../v2/ListExecutionsResponseOrBuilder.java | 46 +- .../google/cloud/run/v2/ListJobsRequest.java | 497 ++- .../run/v2/ListJobsRequestOrBuilder.java | 50 +- .../google/cloud/run/v2/ListJobsResponse.java | 480 ++- .../run/v2/ListJobsResponseOrBuilder.java | 46 +- .../cloud/run/v2/ListRevisionsRequest.java | 500 ++- .../run/v2/ListRevisionsRequestOrBuilder.java | 50 +- .../cloud/run/v2/ListRevisionsResponse.java | 474 ++- .../v2/ListRevisionsResponseOrBuilder.java | 46 +- .../cloud/run/v2/ListServicesRequest.java | 500 ++- .../run/v2/ListServicesRequestOrBuilder.java | 50 +- .../cloud/run/v2/ListServicesResponse.java | 480 ++- .../run/v2/ListServicesResponseOrBuilder.java | 46 +- .../google/cloud/run/v2/ListTasksRequest.java | 497 ++- .../run/v2/ListTasksRequestOrBuilder.java | 50 +- .../cloud/run/v2/ListTasksResponse.java | 483 ++- .../run/v2/ListTasksResponseOrBuilder.java | 46 +- .../com/google/cloud/run/v2/LocationName.java | 0 .../java/com/google/cloud/run/v2/Probe.java | 598 +-- .../google/cloud/run/v2/ProbeOrBuilder.java | 46 +- .../cloud/run/v2/ResourceRequirements.java | 541 +-- .../run/v2/ResourceRequirementsOrBuilder.java | 52 +- .../com/google/cloud/run/v2/Revision.java | 2917 ++++++++------ .../com/google/cloud/run/v2/RevisionName.java | 0 .../cloud/run/v2/RevisionOrBuilder.java | 344 +- .../google/cloud/run/v2/RevisionProto.java | 271 ++ .../google/cloud/run/v2/RevisionScaling.java | 311 +- .../run/v2/RevisionScalingOrBuilder.java | 24 +- .../google/cloud/run/v2/RevisionTemplate.java | 1640 ++++---- .../run/v2/RevisionTemplateOrBuilder.java | 178 +- .../cloud/run/v2/RevisionTemplateProto.java | 136 + .../google/cloud/run/v2/RunJobRequest.java | 461 ++- .../cloud/run/v2/RunJobRequestOrBuilder.java | 47 +- .../cloud/run/v2/SecretKeySelector.java | 427 ++- .../run/v2/SecretKeySelectorOrBuilder.java | 44 +- .../cloud/run/v2/SecretVolumeSource.java | 510 ++- .../run/v2/SecretVolumeSourceOrBuilder.java | 49 +- .../java/com/google/cloud/run/v2/Service.java | 3379 +++++++++++------ .../com/google/cloud/run/v2/ServiceName.java | 0 .../google/cloud/run/v2/ServiceOrBuilder.java | 427 ++- .../com/google/cloud/run/v2/ServiceProto.java | 337 ++ .../google/cloud/run/v2/TCPSocketAction.java | 276 +- .../run/v2/TCPSocketActionOrBuilder.java | 38 + .../java/com/google/cloud/run/v2/Task.java | 3313 ++++++++++------ .../cloud/run/v2/TaskAttemptResult.java | 352 +- .../run/v2/TaskAttemptResultOrBuilder.java | 29 +- .../com/google/cloud/run/v2/TaskName.java | 0 .../google/cloud/run/v2/TaskOrBuilder.java | 421 +- .../com/google/cloud/run/v2/TaskProto.java | 258 ++ .../com/google/cloud/run/v2/TaskTemplate.java | 1021 +++-- .../cloud/run/v2/TaskTemplateOrBuilder.java | 102 +- .../cloud/run/v2/TaskTemplateProto.java | 99 + .../google/cloud/run/v2/TrafficTarget.java | 496 ++- .../run/v2/TrafficTargetAllocationType.java | 77 +- .../cloud/run/v2/TrafficTargetOrBuilder.java | 45 +- .../cloud/run/v2/TrafficTargetProto.java | 97 + .../cloud/run/v2/TrafficTargetStatus.java | 577 +-- .../run/v2/TrafficTargetStatusOrBuilder.java | 54 +- .../google/cloud/run/v2/UpdateJobRequest.java | 394 +- .../run/v2/UpdateJobRequestOrBuilder.java | 32 +- .../cloud/run/v2/UpdateServiceRequest.java | 433 ++- .../run/v2/UpdateServiceRequestOrBuilder.java | 41 +- .../cloud/run/v2/VendorSettingsProto.java | 113 + .../google/cloud/run/v2/VersionToPath.java | 430 ++- .../cloud/run/v2/VersionToPathOrBuilder.java | 39 +- .../java/com/google/cloud/run/v2/Volume.java | 533 ++- .../com/google/cloud/run/v2/VolumeMount.java | 392 +- .../cloud/run/v2/VolumeMountOrBuilder.java | 36 +- .../google/cloud/run/v2/VolumeOrBuilder.java | 43 +- .../com/google/cloud/run/v2/VpcAccess.java | 433 ++- .../cloud/run/v2/VpcAccessOrBuilder.java | 33 +- .../proto/google/cloud/run/v2/condition.proto | 0 .../proto/google/cloud/run/v2/execution.proto | 0 .../cloud/run/v2/execution_template.proto | 0 .../main/proto/google/cloud/run/v2/job.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 .../main/proto/google/cloud/run/v2/task.proto | 0 .../google/cloud/run/v2/task_template.proto | 0 .../google/cloud/run/v2/traffic_target.proto | 0 .../google/cloud/run/v2/vendor_settings.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../deleteexecution/AsyncDeleteExecution.java | 0 .../AsyncDeleteExecutionLRO.java | 0 .../deleteexecution/SyncDeleteExecution.java | 0 .../SyncDeleteExecutionExecutionname.java | 0 .../SyncDeleteExecutionString.java | 0 .../getexecution/AsyncGetExecution.java | 0 .../getexecution/SyncGetExecution.java | 0 .../SyncGetExecutionExecutionname.java | 0 .../getexecution/SyncGetExecutionString.java | 0 .../listexecutions/AsyncListExecutions.java | 0 .../AsyncListExecutionsPaged.java | 0 .../listexecutions/SyncListExecutions.java | 0 .../SyncListExecutionsJobname.java | 0 .../SyncListExecutionsString.java | 0 .../getexecution/SyncGetExecution.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../v2/jobs/create/SyncCreateSetEndpoint.java | 0 .../run/v2/jobs/createjob/AsyncCreateJob.java | 0 .../v2/jobs/createjob/AsyncCreateJobLRO.java | 0 .../run/v2/jobs/createjob/SyncCreateJob.java | 0 .../SyncCreateJobLocationnameJobString.java | 0 .../SyncCreateJobStringJobString.java | 0 .../run/v2/jobs/deletejob/AsyncDeleteJob.java | 0 .../v2/jobs/deletejob/AsyncDeleteJobLRO.java | 0 .../run/v2/jobs/deletejob/SyncDeleteJob.java | 0 .../jobs/deletejob/SyncDeleteJobJobname.java | 0 .../jobs/deletejob/SyncDeleteJobString.java | 0 .../jobs/getiampolicy/AsyncGetIamPolicy.java | 0 .../jobs/getiampolicy/SyncGetIamPolicy.java | 0 .../cloud/run/v2/jobs/getjob/AsyncGetJob.java | 0 .../cloud/run/v2/jobs/getjob/SyncGetJob.java | 0 .../run/v2/jobs/getjob/SyncGetJobJobname.java | 0 .../run/v2/jobs/getjob/SyncGetJobString.java | 0 .../run/v2/jobs/listjobs/AsyncListJobs.java | 0 .../v2/jobs/listjobs/AsyncListJobsPaged.java | 0 .../run/v2/jobs/listjobs/SyncListJobs.java | 0 .../listjobs/SyncListJobsLocationname.java | 0 .../v2/jobs/listjobs/SyncListJobsString.java | 0 .../cloud/run/v2/jobs/runjob/AsyncRunJob.java | 0 .../run/v2/jobs/runjob/AsyncRunJobLRO.java | 0 .../cloud/run/v2/jobs/runjob/SyncRunJob.java | 0 .../run/v2/jobs/runjob/SyncRunJobJobname.java | 0 .../run/v2/jobs/runjob/SyncRunJobString.java | 0 .../jobs/setiampolicy/AsyncSetIamPolicy.java | 0 .../jobs/setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../run/v2/jobs/updatejob/AsyncUpdateJob.java | 0 .../v2/jobs/updatejob/AsyncUpdateJobLRO.java | 0 .../run/v2/jobs/updatejob/SyncUpdateJob.java | 0 .../v2/jobs/updatejob/SyncUpdateJobJob.java | 0 .../v2/jobssettings/getjob/SyncGetJob.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../deleterevision/AsyncDeleteRevision.java | 0 .../AsyncDeleteRevisionLRO.java | 0 .../deleterevision/SyncDeleteRevision.java | 0 .../SyncDeleteRevisionRevisionname.java | 0 .../SyncDeleteRevisionString.java | 0 .../getrevision/AsyncGetRevision.java | 0 .../getrevision/SyncGetRevision.java | 0 .../SyncGetRevisionRevisionname.java | 0 .../getrevision/SyncGetRevisionString.java | 0 .../listrevisions/AsyncListRevisions.java | 0 .../AsyncListRevisionsPaged.java | 0 .../listrevisions/SyncListRevisions.java | 0 .../SyncListRevisionsServicename.java | 0 .../SyncListRevisionsString.java | 0 .../getrevision/SyncGetRevision.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createservice/AsyncCreateService.java | 0 .../createservice/AsyncCreateServiceLRO.java | 0 .../createservice/SyncCreateService.java | 0 ...reateServiceLocationnameServiceString.java | 0 .../SyncCreateServiceStringServiceString.java | 0 .../deleteservice/AsyncDeleteService.java | 0 .../deleteservice/AsyncDeleteServiceLRO.java | 0 .../deleteservice/SyncDeleteService.java | 0 .../SyncDeleteServiceServicename.java | 0 .../SyncDeleteServiceString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../services/getservice/AsyncGetService.java | 0 .../services/getservice/SyncGetService.java | 0 .../getservice/SyncGetServiceServicename.java | 0 .../getservice/SyncGetServiceString.java | 0 .../listservices/AsyncListServices.java | 0 .../listservices/AsyncListServicesPaged.java | 0 .../listservices/SyncListServices.java | 0 .../SyncListServicesLocationname.java | 0 .../listservices/SyncListServicesString.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../updateservice/AsyncUpdateService.java | 0 .../updateservice/AsyncUpdateServiceLRO.java | 0 .../updateservice/SyncUpdateService.java | 0 .../SyncUpdateServiceService.java | 0 .../getservice/SyncGetService.java | 0 .../getexecution/SyncGetExecution.java | 0 .../jobsstubsettings/getjob/SyncGetJob.java | 0 .../getrevision/SyncGetRevision.java | 0 .../getservice/SyncGetService.java | 0 .../gettask/SyncGetTask.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../tasks/create/SyncCreateSetEndpoint.java | 0 .../run/v2/tasks/gettask/AsyncGetTask.java | 0 .../run/v2/tasks/gettask/SyncGetTask.java | 0 .../v2/tasks/gettask/SyncGetTaskString.java | 0 .../v2/tasks/gettask/SyncGetTaskTaskname.java | 0 .../v2/tasks/listtasks/AsyncListTasks.java | 0 .../tasks/listtasks/AsyncListTasksPaged.java | 0 .../run/v2/tasks/listtasks/SyncListTasks.java | 0 .../listtasks/SyncListTasksExecutionname.java | 0 .../tasks/listtasks/SyncListTasksString.java | 0 .../v2/taskssettings/gettask/SyncGetTask.java | 0 .../google/cloud/run/v2/ExecutionsGrpc.java | 475 --- .../com/google/cloud/run/v2/JobsGrpc.java | 1003 ----- .../google/cloud/run/v2/RevisionsGrpc.java | 475 --- .../com/google/cloud/run/v2/ServicesGrpc.java | 925 ----- .../com/google/cloud/run/v2/TasksGrpc.java | 389 -- .../google/cloud/run/v2/ConditionProto.java | 90 - .../google/cloud/run/v2/ExecutionProto.java | 209 - .../cloud/run/v2/ExecutionTemplateProto.java | 92 - .../run/v2/GetExecutionRequestOrBuilder.java | 33 - .../cloud/run/v2/GetJobRequestOrBuilder.java | 31 - .../run/v2/GetRevisionRequestOrBuilder.java | 33 - .../run/v2/GetServiceRequestOrBuilder.java | 31 - .../cloud/run/v2/GetTaskRequestOrBuilder.java | 33 - .../com/google/cloud/run/v2/JobProto.java | 295 -- .../com/google/cloud/run/v2/K8sMinProto.java | 283 -- .../google/cloud/run/v2/RevisionProto.java | 226 -- .../cloud/run/v2/RevisionTemplateProto.java | 108 - .../com/google/cloud/run/v2/ServiceProto.java | 287 -- .../run/v2/TCPSocketActionOrBuilder.java | 19 - .../com/google/cloud/run/v2/TaskProto.java | 211 - .../cloud/run/v2/TaskTemplateProto.java | 76 - .../cloud/run/v2/TrafficTargetProto.java | 81 - .../cloud/run/v2/VendorSettingsProto.java | 96 - 361 files changed, 35338 insertions(+), 22673 deletions(-) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsCallableFactory.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsCallableFactory.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksCallableFactory.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsCallableFactory.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsCallableFactory.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java (99%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksCallableFactory.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksStub.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStub.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutions.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutionsImpl.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobs.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobsImpl.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocations.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocationsImpl.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasks.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasksImpl.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java (100%) create mode 100644 java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java create mode 100644 java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java create mode 100644 java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java create mode 100644 java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java create mode 100644 java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java (70%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java (71%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java (72%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java (75%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java (84%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java (81%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java (89%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java (67%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java (56%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java (66%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java (66%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.java (67%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.java (57%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.java (66%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.java (56%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java (67%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java (57%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java (66%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java (56%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java (73%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java (80%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java (66%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java (61%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java (78%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java (71%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java (61%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java (68%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java (62%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java (62%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java (62%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java (62%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java (63%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java (72%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java (67%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java (66%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java (54%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java (68%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java (70%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java (80%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.java (68%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.java (61%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.java (72%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.java (66%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.java (67%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java (58%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.java (70%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.java (62%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java (68%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java (61%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java (72%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java (65%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java (67%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java (60%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java (71%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java (65%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.java (68%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.java (63%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.java (70%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.java (63%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java (75%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java (82%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java (63%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java (72%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java (72%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java (81%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java (66%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java (51%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java (72%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java (80%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.java (66%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.java (56%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java (66%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java (57%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java (79%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java (83%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java (72%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java (80%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java (64%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java (70%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java (71%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java (68%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java (77%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java (77%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java (84%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java (70%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java (69%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java (68%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java (70%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java (68%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java (64%) create mode 100644 java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java (72%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java (72%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java (73%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java (70%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java (78%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java (69%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java (63%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecution.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecutionLRO.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecution.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionExecutionname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/AsyncGetExecution.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecution.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionExecutionname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutions.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutionsPaged.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutions.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsJobname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/executionssettings/getexecution/SyncGetExecution.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJobLRO.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobLocationnameJobString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobStringJobString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJobLRO.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobJobname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/AsyncGetJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobJobname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobs.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobsPaged.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobs.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsLocationname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJobLRO.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobJobname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJobLRO.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJobJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/jobssettings/getjob/SyncGetJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevision.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevisionLRO.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevision.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionRevisionname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/AsyncGetRevision.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevision.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionRevisionname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisions.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisionsPaged.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisions.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsServicename.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateServiceLRO.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceLocationnameServiceString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceStringServiceString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteServiceLRO.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceServicename.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/AsyncGetService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceServicename.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServices.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServicesPaged.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServices.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesLocationname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/stub/executionsstubsettings/getexecution/SyncGetExecution.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/stub/jobsstubsettings/getjob/SyncGetJob.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/stub/tasksstubsettings/gettask/SyncGetTask.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/AsyncGetTask.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTask.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskTaskname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasks.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasksPaged.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasks.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksExecutionname.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksString.java (100%) rename {owl-bot-staging/java-run/v2 => java-run}/samples/snippets/generated/com/google/cloud/run/v2/taskssettings/gettask/SyncGetTask.java (100%) delete mode 100644 owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java delete mode 100644 owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java delete mode 100644 owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java delete mode 100644 owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java delete mode 100644 owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java delete mode 100644 owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java diff --git a/java-run/README.md b/java-run/README.md index 51426b952dcd..008f9cb91280 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-run - 0.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.4.0' +implementation 'com.google.cloud:google-cloud-run:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.5.0" ``` ## Authentication diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java index c15f4ed875a1..81e9e38d3ec6 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.run.v2.stub.ExecutionsStubSettings; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java index e6ead91c5d31..78e72c47639c 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.run.v2.stub.JobsStubSettings; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java index c4c945574b84..dbd1ffd7778e 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.run.v2.stub.RevisionsStubSettings; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java index ca7c4c27b855..b2c503f16b9d 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.run.v2.stub.ServicesStubSettings; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java index 95b1196aecd9..85e40fd5afdb 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.TasksStubSettings; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/gapic_metadata.json diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsCallableFactory.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsCallableFactory.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsCallableFactory.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.java index e3285c7cda59..31562987f2aa 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcExecutionsStub.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/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsCallableFactory.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsCallableFactory.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsCallableFactory.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java index be3b49e60811..e3a0d323e849 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcJobsStub.java @@ -45,7 +45,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsCallableFactory.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java index 8369429e2c54..6f89f0c2d78f 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcRevisionsStub.java @@ -37,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesCallableFactory.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java index 0133af02c2b4..f2fe4ebcb026 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcServicesStub.java @@ -45,7 +45,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksCallableFactory.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksCallableFactory.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksCallableFactory.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksCallableFactory.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java index 28e33f14aacc..58512a72ca93 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/GrpcTasksStub.java @@ -33,7 +33,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/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsCallableFactory.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsCallableFactory.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsCallableFactory.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java index 2fdf55e65786..c53f1957fd51 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonExecutionsStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsCallableFactory.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsCallableFactory.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsCallableFactory.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java index a57f0c8c52be..27372078fc2d 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonJobsStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsCallableFactory.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java index 3f9e8729d023..c01acd40f0bc 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonRevisionsStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesCallableFactory.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java similarity index 99% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java index 04cdabce8504..4933b88363ce 100644 --- a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonServicesStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksCallableFactory.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksCallableFactory.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksCallableFactory.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksCallableFactory.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksStub.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/HttpJsonTasksStub.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStub.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStub.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStub.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java rename to java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutions.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutions.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutions.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutions.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutionsImpl.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutionsImpl.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutionsImpl.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockExecutionsImpl.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobs.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobs.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobs.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobs.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobsImpl.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobsImpl.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobsImpl.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockJobsImpl.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocations.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocations.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocations.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocations.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocationsImpl.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocationsImpl.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockLocationsImpl.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisions.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockRevisionsImpl.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServices.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockServicesImpl.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasks.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasks.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasks.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasks.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasksImpl.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasksImpl.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasksImpl.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/MockTasksImpl.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java diff --git a/owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java similarity index 100% rename from owl-bot-staging/java-run/v2/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java rename to java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java new file mode 100644 index 000000000000..d5abff936d55 --- /dev/null +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java @@ -0,0 +1,578 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 Execution Control Plane API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/run/v2/execution.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ExecutionsGrpc { + + private ExecutionsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.run.v2.Executions"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetExecutionRequest, com.google.cloud.run.v2.Execution> + getGetExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExecution", + requestType = com.google.cloud.run.v2.GetExecutionRequest.class, + responseType = com.google.cloud.run.v2.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetExecutionRequest, com.google.cloud.run.v2.Execution> + getGetExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetExecutionRequest, com.google.cloud.run.v2.Execution> + getGetExecutionMethod; + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + ExecutionsGrpc.getGetExecutionMethod = + getGetExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.GetExecutionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.Execution.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) + .build(); + } + } + } + return getGetExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListExecutionsRequest, + com.google.cloud.run.v2.ListExecutionsResponse> + getListExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExecutions", + requestType = com.google.cloud.run.v2.ListExecutionsRequest.class, + responseType = com.google.cloud.run.v2.ListExecutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListExecutionsRequest, + com.google.cloud.run.v2.ListExecutionsResponse> + getListExecutionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListExecutionsRequest, + com.google.cloud.run.v2.ListExecutionsResponse> + getListExecutionsMethod; + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + ExecutionsGrpc.getListExecutionsMethod = + getListExecutionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListExecutionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListExecutionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) + .build(); + } + } + } + return getListExecutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteExecutionRequest, com.google.longrunning.Operation> + getDeleteExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteExecution", + requestType = com.google.cloud.run.v2.DeleteExecutionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteExecutionRequest, com.google.longrunning.Operation> + getDeleteExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteExecutionRequest, com.google.longrunning.Operation> + getDeleteExecutionMethod; + if ((getDeleteExecutionMethod = ExecutionsGrpc.getDeleteExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getDeleteExecutionMethod = ExecutionsGrpc.getDeleteExecutionMethod) == null) { + ExecutionsGrpc.getDeleteExecutionMethod = + getDeleteExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.DeleteExecutionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ExecutionsMethodDescriptorSupplier("DeleteExecution")) + .build(); + } + } + } + return getDeleteExecutionMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ExecutionsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + }; + return ExecutionsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ExecutionsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + }; + return ExecutionsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ExecutionsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + }; + return ExecutionsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Cloud Run Execution Control Plane API.
+   * 
+ */ + public abstract static class ExecutionsImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Gets information about an Execution.
+     * 
+ */ + public void getExecution( + com.google.cloud.run.v2.GetExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Executions from a Job.
+     * 
+ */ + public void listExecutions( + com.google.cloud.run.v2.ListExecutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExecutionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an Execution.
+     * 
+ */ + public void deleteExecution( + com.google.cloud.run.v2.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExecutionMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.GetExecutionRequest, + com.google.cloud.run.v2.Execution>(this, METHODID_GET_EXECUTION))) + .addMethod( + getListExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.ListExecutionsRequest, + com.google.cloud.run.v2.ListExecutionsResponse>( + this, METHODID_LIST_EXECUTIONS))) + .addMethod( + getDeleteExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.DeleteExecutionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_EXECUTION))) + .build(); + } + } + + /** + * + * + *
+   * Cloud Run Execution Control Plane API.
+   * 
+ */ + public static final class ExecutionsStub extends io.grpc.stub.AbstractAsyncStub { + private ExecutionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets information about an Execution.
+     * 
+ */ + public void getExecution( + com.google.cloud.run.v2.GetExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Executions from a Job.
+     * 
+ */ + public void listExecutions( + com.google.cloud.run.v2.ListExecutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an Execution.
+     * 
+ */ + public void deleteExecution( + com.google.cloud.run.v2.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Cloud Run Execution Control Plane API.
+   * 
+ */ + public static final class ExecutionsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ExecutionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets information about an Execution.
+     * 
+ */ + public com.google.cloud.run.v2.Execution getExecution( + com.google.cloud.run.v2.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Executions from a Job.
+     * 
+ */ + public com.google.cloud.run.v2.ListExecutionsResponse listExecutions( + com.google.cloud.run.v2.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an Execution.
+     * 
+ */ + public com.google.longrunning.Operation deleteExecution( + com.google.cloud.run.v2.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Cloud Run Execution Control Plane API.
+   * 
+ */ + public static final class ExecutionsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ExecutionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets information about an Execution.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getExecution(com.google.cloud.run.v2.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Executions from a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.run.v2.ListExecutionsResponse> + listExecutions(com.google.cloud.run.v2.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an Execution.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteExecution(com.google.cloud.run.v2.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_EXECUTION = 0; + private static final int METHODID_LIST_EXECUTIONS = 1; + private static final int METHODID_DELETE_EXECUTION = 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 ExecutionsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ExecutionsImplBase 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_EXECUTION: + serviceImpl.getExecution( + (com.google.cloud.run.v2.GetExecutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EXECUTIONS: + serviceImpl.listExecutions( + (com.google.cloud.run.v2.ListExecutionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_EXECUTION: + serviceImpl.deleteExecution( + (com.google.cloud.run.v2.DeleteExecutionRequest) 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 ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ExecutionsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.run.v2.ExecutionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Executions"); + } + } + + private static final class ExecutionsFileDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier { + ExecutionsFileDescriptorSupplier() {} + } + + private static final class ExecutionsMethodDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ExecutionsMethodDescriptorSupplier(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 (ExecutionsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) + .addMethod(getGetExecutionMethod()) + .addMethod(getListExecutionsMethod()) + .addMethod(getDeleteExecutionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java new file mode 100644 index 000000000000..9a063c6e1e50 --- /dev/null +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java @@ -0,0 +1,1210 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 Job Control Plane API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/run/v2/job.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class JobsGrpc { + + private JobsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.run.v2.Jobs"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.CreateJobRequest, com.google.longrunning.Operation> + getCreateJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateJob", + requestType = com.google.cloud.run.v2.CreateJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.CreateJobRequest, com.google.longrunning.Operation> + getCreateJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.CreateJobRequest, com.google.longrunning.Operation> + getCreateJobMethod; + if ((getCreateJobMethod = JobsGrpc.getCreateJobMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getCreateJobMethod = JobsGrpc.getCreateJobMethod) == null) { + JobsGrpc.getCreateJobMethod = + getCreateJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.CreateJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("CreateJob")) + .build(); + } + } + } + return getCreateJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetJobRequest, com.google.cloud.run.v2.Job> + getGetJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetJob", + requestType = com.google.cloud.run.v2.GetJobRequest.class, + responseType = com.google.cloud.run.v2.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetJobRequest, com.google.cloud.run.v2.Job> + getGetJobMethod() { + io.grpc.MethodDescriptor + getGetJobMethod; + if ((getGetJobMethod = JobsGrpc.getGetJobMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getGetJobMethod = JobsGrpc.getGetJobMethod) == null) { + JobsGrpc.getGetJobMethod = + getGetJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.GetJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.Job.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("GetJob")) + .build(); + } + } + } + return getGetJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListJobsRequest, com.google.cloud.run.v2.ListJobsResponse> + getListJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListJobs", + requestType = com.google.cloud.run.v2.ListJobsRequest.class, + responseType = com.google.cloud.run.v2.ListJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListJobsRequest, com.google.cloud.run.v2.ListJobsResponse> + getListJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListJobsRequest, com.google.cloud.run.v2.ListJobsResponse> + getListJobsMethod; + if ((getListJobsMethod = JobsGrpc.getListJobsMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getListJobsMethod = JobsGrpc.getListJobsMethod) == null) { + JobsGrpc.getListJobsMethod = + getListJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListJobsResponse.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("ListJobs")) + .build(); + } + } + } + return getListJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.UpdateJobRequest, com.google.longrunning.Operation> + getUpdateJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateJob", + requestType = com.google.cloud.run.v2.UpdateJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.UpdateJobRequest, com.google.longrunning.Operation> + getUpdateJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.UpdateJobRequest, com.google.longrunning.Operation> + getUpdateJobMethod; + if ((getUpdateJobMethod = JobsGrpc.getUpdateJobMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getUpdateJobMethod = JobsGrpc.getUpdateJobMethod) == null) { + JobsGrpc.getUpdateJobMethod = + getUpdateJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.UpdateJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("UpdateJob")) + .build(); + } + } + } + return getUpdateJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteJobRequest, com.google.longrunning.Operation> + getDeleteJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteJob", + requestType = com.google.cloud.run.v2.DeleteJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteJobRequest, com.google.longrunning.Operation> + getDeleteJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.DeleteJobRequest, com.google.longrunning.Operation> + getDeleteJobMethod; + if ((getDeleteJobMethod = JobsGrpc.getDeleteJobMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getDeleteJobMethod = JobsGrpc.getDeleteJobMethod) == null) { + JobsGrpc.getDeleteJobMethod = + getDeleteJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.DeleteJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("DeleteJob")) + .build(); + } + } + } + return getDeleteJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.RunJobRequest, com.google.longrunning.Operation> + getRunJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunJob", + requestType = com.google.cloud.run.v2.RunJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.RunJobRequest, com.google.longrunning.Operation> + getRunJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.RunJobRequest, com.google.longrunning.Operation> + getRunJobMethod; + if ((getRunJobMethod = JobsGrpc.getRunJobMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getRunJobMethod = JobsGrpc.getRunJobMethod) == null) { + JobsGrpc.getRunJobMethod = + getRunJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.RunJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new JobsMethodDescriptorSupplier("RunJob")) + .build(); + } + } + } + return getRunJobMethod; + } + + 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 = JobsGrpc.getGetIamPolicyMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getGetIamPolicyMethod = JobsGrpc.getGetIamPolicyMethod) == null) { + JobsGrpc.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 JobsMethodDescriptorSupplier("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 = JobsGrpc.getSetIamPolicyMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getSetIamPolicyMethod = JobsGrpc.getSetIamPolicyMethod) == null) { + JobsGrpc.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 JobsMethodDescriptorSupplier("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 = JobsGrpc.getTestIamPermissionsMethod) == null) { + synchronized (JobsGrpc.class) { + if ((getTestIamPermissionsMethod = JobsGrpc.getTestIamPermissionsMethod) == null) { + JobsGrpc.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 JobsMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static JobsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsStub(channel, callOptions); + } + }; + return JobsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static JobsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsBlockingStub(channel, callOptions); + } + }; + return JobsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static JobsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public JobsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsFutureStub(channel, callOptions); + } + }; + return JobsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Cloud Run Job Control Plane API.
+   * 
+ */ + public abstract static class JobsImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a Job.
+     * 
+ */ + public void createJob( + com.google.cloud.run.v2.CreateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets information about a Job.
+     * 
+ */ + public void getJob( + com.google.cloud.run.v2.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Jobs.
+     * 
+ */ + public void listJobs( + com.google.cloud.run.v2.ListJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a Job.
+     * 
+ */ + public void updateJob( + com.google.cloud.run.v2.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Job.
+     * 
+ */ + public void deleteJob( + com.google.cloud.run.v2.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Triggers creation of a new Execution of this Job.
+     * 
+ */ + public void runJob( + com.google.cloud.run.v2.RunJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Get the IAM Access Control policy currently in effect for the given Job.
+     * 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 Job. 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( + getCreateJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.CreateJobRequest, com.google.longrunning.Operation>( + this, METHODID_CREATE_JOB))) + .addMethod( + getGetJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.GetJobRequest, com.google.cloud.run.v2.Job>( + this, METHODID_GET_JOB))) + .addMethod( + getListJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.ListJobsRequest, + com.google.cloud.run.v2.ListJobsResponse>(this, METHODID_LIST_JOBS))) + .addMethod( + getUpdateJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.UpdateJobRequest, com.google.longrunning.Operation>( + this, METHODID_UPDATE_JOB))) + .addMethod( + getDeleteJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.DeleteJobRequest, com.google.longrunning.Operation>( + this, METHODID_DELETE_JOB))) + .addMethod( + getRunJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.RunJobRequest, com.google.longrunning.Operation>( + this, METHODID_RUN_JOB))) + .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 Job Control Plane API.
+   * 
+ */ + public static final class JobsStub extends io.grpc.stub.AbstractAsyncStub { + private JobsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Job.
+     * 
+ */ + public void createJob( + com.google.cloud.run.v2.CreateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets information about a Job.
+     * 
+ */ + public void getJob( + com.google.cloud.run.v2.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists Jobs.
+     * 
+ */ + public void listJobs( + com.google.cloud.run.v2.ListJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates a Job.
+     * 
+ */ + public void updateJob( + com.google.cloud.run.v2.UpdateJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a Job.
+     * 
+ */ + public void deleteJob( + com.google.cloud.run.v2.DeleteJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Triggers creation of a new Execution of this Job.
+     * 
+ */ + public void runJob( + com.google.cloud.run.v2.RunJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Get the IAM Access Control policy currently in effect for the given Job.
+     * 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 Job. 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 Job Control Plane API.
+   * 
+ */ + public static final class JobsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private JobsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Job.
+     * 
+ */ + public com.google.longrunning.Operation createJob( + com.google.cloud.run.v2.CreateJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets information about a Job.
+     * 
+ */ + public com.google.cloud.run.v2.Job getJob(com.google.cloud.run.v2.GetJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Jobs.
+     * 
+ */ + public com.google.cloud.run.v2.ListJobsResponse listJobs( + com.google.cloud.run.v2.ListJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListJobsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a Job.
+     * 
+ */ + public com.google.longrunning.Operation updateJob( + com.google.cloud.run.v2.UpdateJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Job.
+     * 
+ */ + public com.google.longrunning.Operation deleteJob( + com.google.cloud.run.v2.DeleteJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Triggers creation of a new Execution of this Job.
+     * 
+ */ + public com.google.longrunning.Operation runJob(com.google.cloud.run.v2.RunJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get the IAM Access Control policy currently in effect for the given Job.
+     * 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 Job. 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 Job Control Plane API.
+   * 
+ */ + public static final class JobsFutureStub extends io.grpc.stub.AbstractFutureStub { + private JobsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected JobsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new JobsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createJob(com.google.cloud.run.v2.CreateJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets information about a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getJob( + com.google.cloud.run.v2.GetJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Jobs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.run.v2.ListJobsResponse> + listJobs(com.google.cloud.run.v2.ListJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListJobsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateJob(com.google.cloud.run.v2.UpdateJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteJob(com.google.cloud.run.v2.DeleteJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Triggers creation of a new Execution of this Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + runJob(com.google.cloud.run.v2.RunJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get the IAM Access Control policy currently in effect for the given Job.
+     * 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 Job. 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_JOB = 0; + private static final int METHODID_GET_JOB = 1; + private static final int METHODID_LIST_JOBS = 2; + private static final int METHODID_UPDATE_JOB = 3; + private static final int METHODID_DELETE_JOB = 4; + private static final int METHODID_RUN_JOB = 5; + private static final int METHODID_GET_IAM_POLICY = 6; + private static final int METHODID_SET_IAM_POLICY = 7; + private static final int METHODID_TEST_IAM_PERMISSIONS = 8; + + 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 JobsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(JobsImplBase 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_JOB: + serviceImpl.createJob( + (com.google.cloud.run.v2.CreateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_JOB: + serviceImpl.getJob( + (com.google.cloud.run.v2.GetJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_JOBS: + serviceImpl.listJobs( + (com.google.cloud.run.v2.ListJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_JOB: + serviceImpl.updateJob( + (com.google.cloud.run.v2.UpdateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_JOB: + serviceImpl.deleteJob( + (com.google.cloud.run.v2.DeleteJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RUN_JOB: + serviceImpl.runJob( + (com.google.cloud.run.v2.RunJobRequest) 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 JobsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + JobsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.run.v2.JobProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Jobs"); + } + } + + private static final class JobsFileDescriptorSupplier extends JobsBaseDescriptorSupplier { + JobsFileDescriptorSupplier() {} + } + + private static final class JobsMethodDescriptorSupplier extends JobsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + JobsMethodDescriptorSupplier(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 (JobsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new JobsFileDescriptorSupplier()) + .addMethod(getCreateJobMethod()) + .addMethod(getGetJobMethod()) + .addMethod(getListJobsMethod()) + .addMethod(getUpdateJobMethod()) + .addMethod(getDeleteJobMethod()) + .addMethod(getRunJobMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java new file mode 100644 index 000000000000..3ec9db513ad2 --- /dev/null +++ b/java-run/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); + } + + /** + * + * + *
+     * Lists 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); + } + + /** + * + * + *
+     * Deletes 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); + } + + /** + * + * + *
+     * Lists 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); + } + + /** + * + * + *
+     * Deletes 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); + } + + /** + * + * + *
+     * Lists 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); + } + + /** + * + * + *
+     * Deletes 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); + } + + /** + * + * + *
+     * Lists 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); + } + + /** + * + * + *
+     * Deletes 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/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java new file mode 100644 index 000000000000..bc72f040eb36 --- /dev/null +++ b/java-run/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); + } + + /** + * + * + *
+     * Lists 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); + } + + /** + * + * + *
+     * Gets 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); + } + + /** + * + * + *
+     * Lists 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); + } + + /** + * + * + *
+     * Gets 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); + } + + /** + * + * + *
+     * Lists 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); + } + + /** + * + * + *
+     * Gets 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); + } + + /** + * + * + *
+     * Lists 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); + } + + /** + * + * + *
+     * Gets 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/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java new file mode 100644 index 000000000000..b9d31faa669d --- /dev/null +++ b/java-run/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java @@ -0,0 +1,448 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 Task Control Plane API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/run/v2/task.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TasksGrpc { + + private TasksGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.run.v2.Tasks"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetTaskRequest, com.google.cloud.run.v2.Task> + getGetTaskMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTask", + requestType = com.google.cloud.run.v2.GetTaskRequest.class, + responseType = com.google.cloud.run.v2.Task.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.GetTaskRequest, com.google.cloud.run.v2.Task> + getGetTaskMethod() { + io.grpc.MethodDescriptor + getGetTaskMethod; + if ((getGetTaskMethod = TasksGrpc.getGetTaskMethod) == null) { + synchronized (TasksGrpc.class) { + if ((getGetTaskMethod = TasksGrpc.getGetTaskMethod) == null) { + TasksGrpc.getGetTaskMethod = + getGetTaskMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTask")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.GetTaskRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.Task.getDefaultInstance())) + .setSchemaDescriptor(new TasksMethodDescriptorSupplier("GetTask")) + .build(); + } + } + } + return getGetTaskMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListTasksRequest, com.google.cloud.run.v2.ListTasksResponse> + getListTasksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTasks", + requestType = com.google.cloud.run.v2.ListTasksRequest.class, + responseType = com.google.cloud.run.v2.ListTasksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListTasksRequest, com.google.cloud.run.v2.ListTasksResponse> + getListTasksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.run.v2.ListTasksRequest, com.google.cloud.run.v2.ListTasksResponse> + getListTasksMethod; + if ((getListTasksMethod = TasksGrpc.getListTasksMethod) == null) { + synchronized (TasksGrpc.class) { + if ((getListTasksMethod = TasksGrpc.getListTasksMethod) == null) { + TasksGrpc.getListTasksMethod = + getListTasksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTasks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListTasksRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.run.v2.ListTasksResponse.getDefaultInstance())) + .setSchemaDescriptor(new TasksMethodDescriptorSupplier("ListTasks")) + .build(); + } + } + } + return getListTasksMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TasksStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TasksStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksStub(channel, callOptions); + } + }; + return TasksStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TasksBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TasksBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksBlockingStub(channel, callOptions); + } + }; + return TasksBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TasksFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TasksFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksFutureStub(channel, callOptions); + } + }; + return TasksFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Cloud Run Task Control Plane API.
+   * 
+ */ + public abstract static class TasksImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Gets information about a Task.
+     * 
+ */ + public void getTask( + com.google.cloud.run.v2.GetTaskRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Tasks from an Execution of a Job.
+     * 
+ */ + public void listTasks( + com.google.cloud.run.v2.ListTasksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetTaskMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.GetTaskRequest, com.google.cloud.run.v2.Task>( + this, METHODID_GET_TASK))) + .addMethod( + getListTasksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.run.v2.ListTasksRequest, + com.google.cloud.run.v2.ListTasksResponse>(this, METHODID_LIST_TASKS))) + .build(); + } + } + + /** + * + * + *
+   * Cloud Run Task Control Plane API.
+   * 
+ */ + public static final class TasksStub extends io.grpc.stub.AbstractAsyncStub { + private TasksStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TasksStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets information about a Task.
+     * 
+ */ + public void getTask( + com.google.cloud.run.v2.GetTaskRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists Tasks from an Execution of a Job.
+     * 
+ */ + public void listTasks( + com.google.cloud.run.v2.ListTasksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * + * + *
+   * Cloud Run Task Control Plane API.
+   * 
+ */ + public static final class TasksBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TasksBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TasksBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets information about a Task.
+     * 
+ */ + public com.google.cloud.run.v2.Task getTask(com.google.cloud.run.v2.GetTaskRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTaskMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Tasks from an Execution of a Job.
+     * 
+ */ + public com.google.cloud.run.v2.ListTasksResponse listTasks( + com.google.cloud.run.v2.ListTasksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTasksMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Cloud Run Task Control Plane API.
+   * 
+ */ + public static final class TasksFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TasksFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TasksFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets information about a Task.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTask( + com.google.cloud.run.v2.GetTaskRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Tasks from an Execution of a Job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.run.v2.ListTasksResponse> + listTasks(com.google.cloud.run.v2.ListTasksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTasksMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_TASK = 0; + private static final int METHODID_LIST_TASKS = 1; + + 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 TasksImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TasksImplBase 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_TASK: + serviceImpl.getTask( + (com.google.cloud.run.v2.GetTaskRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TASKS: + serviceImpl.listTasks( + (com.google.cloud.run.v2.ListTasksRequest) 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 TasksBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TasksBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.run.v2.TaskProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Tasks"); + } + } + + private static final class TasksFileDescriptorSupplier extends TasksBaseDescriptorSupplier { + TasksFileDescriptorSupplier() {} + } + + private static final class TasksMethodDescriptorSupplier extends TasksBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TasksMethodDescriptorSupplier(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 (TasksGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TasksFileDescriptorSupplier()) + .addMethod(getGetTaskMethod()) + .addMethod(getListTasksMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java similarity index 70% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java index 7a1397239e49..cdab7f9e9a1a 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorization.java @@ -1,61 +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/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; } - 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; } @@ -71,30 +93,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 @@ -102,12 +129,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 @@ -121,6 +151,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.
@@ -129,6 +161,7 @@ public boolean getUseDefault() {
    * 
* * string breakglass_justification = 2; + * * @return The breakglassJustification. */ @java.lang.Override @@ -137,14 +170,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.
@@ -153,16 +187,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 { @@ -171,6 +204,7 @@ public java.lang.String getBreakglassJustification() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,11 +216,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_); @@ -201,9 +233,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_); @@ -216,20 +248,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: @@ -250,8 +281,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: @@ -261,130 +291,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +432,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 @@ -417,7 +453,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_; } @@ -431,38 +468,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; @@ -476,13 +514,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.getUnknownFields()); onChanged(); @@ -510,22 +550,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - binauthzMethod_ = input.readBool(); - binauthzMethodCase_ = 1; - break; - } // case 8 - case 18: { - breakglassJustification_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + binauthzMethod_ = input.readBool(); + binauthzMethodCase_ = 1; + break; + } // case 8 + case 18: + { + breakglassJustification_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,12 +578,12 @@ public Builder mergeFrom( } // finally 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() { @@ -550,26 +593,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() { @@ -579,12 +627,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. */ @@ -595,12 +646,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() { @@ -614,6 +668,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.
@@ -622,13 +678,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; @@ -637,6 +693,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.
@@ -645,15 +703,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 { @@ -661,6 +718,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.
@@ -669,20 +728,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.
@@ -691,15 +752,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.
@@ -708,23 +772,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); } @@ -734,12 +798,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(); } @@ -748,27 +812,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -783,6 +847,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.BinaryAuthorization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java similarity index 69% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java index 5080ca3d785c..e5d7041eb156 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BinaryAuthorizationOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java similarity index 71% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java index 86b52826d3f6..b63a2340121d 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstance.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * Represents a specific Cloud SQL instance.
  * 
* * Protobuf type {@code google.cloud.run.v2.CloudSqlInstance} */ -public final class CloudSqlInstance extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CloudSqlInstance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.CloudSqlInstance) CloudSqlInstanceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudSqlInstance.newBuilder() to construct. private CloudSqlInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudSqlInstance() { instances_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudSqlInstance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CloudSqlInstance.class, com.google.cloud.run.v2.CloudSqlInstance.Builder.class); + com.google.cloud.run.v2.CloudSqlInstance.class, + com.google.cloud.run.v2.CloudSqlInstance.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList instances_; /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -60,13 +81,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string instances = 1; + * * @return A list containing the instances. */ - public com.google.protobuf.ProtocolStringList - getInstancesList() { + public com.google.protobuf.ProtocolStringList getInstancesList() { return instances_; } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -76,12 +99,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string instances = 1; + * * @return The count of instances. */ public int getInstancesCount() { return instances_.size(); } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -91,6 +117,7 @@ public int getInstancesCount() {
    * 
* * repeated string instances = 1; + * * @param index The index of the element to return. * @return The instances at the given index. */ @@ -98,6 +125,8 @@ public java.lang.String getInstances(int index) { return instances_.get(index); } /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -107,15 +136,16 @@ public java.lang.String getInstances(int index) {
    * 
* * repeated string instances = 1; + * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - public com.google.protobuf.ByteString - getInstancesBytes(int index) { + public com.google.protobuf.ByteString getInstancesBytes(int index) { return instances_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,8 +157,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < instances_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instances_.getRaw(i)); } @@ -157,15 +186,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.CloudSqlInstance)) { return super.equals(obj); } com.google.cloud.run.v2.CloudSqlInstance other = (com.google.cloud.run.v2.CloudSqlInstance) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,130 +214,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -319,9 +353,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 @@ -340,7 +374,8 @@ public com.google.cloud.run.v2.CloudSqlInstance build() { @java.lang.Override public com.google.cloud.run.v2.CloudSqlInstance buildPartial() { - com.google.cloud.run.v2.CloudSqlInstance result = new com.google.cloud.run.v2.CloudSqlInstance(this); + com.google.cloud.run.v2.CloudSqlInstance result = + new com.google.cloud.run.v2.CloudSqlInstance(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { instances_ = instances_.getUnmodifiableView(); @@ -355,38 +390,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; @@ -431,18 +467,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstancesIsMutable(); - instances_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstancesIsMutable(); + instances_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -452,16 +490,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList instances_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList instances_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new com.google.protobuf.LazyStringArrayList(instances_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -471,13 +514,15 @@ private void ensureInstancesIsMutable() {
      * 
* * repeated string instances = 1; + * * @return A list containing the instances. */ - public com.google.protobuf.ProtocolStringList - getInstancesList() { + public com.google.protobuf.ProtocolStringList getInstancesList() { return instances_.getUnmodifiableView(); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -487,12 +532,15 @@ private void ensureInstancesIsMutable() {
      * 
* * repeated string instances = 1; + * * @return The count of instances. */ public int getInstancesCount() { return instances_.size(); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -502,6 +550,7 @@ public int getInstancesCount() {
      * 
* * repeated string instances = 1; + * * @param index The index of the element to return. * @return The instances at the given index. */ @@ -509,6 +558,8 @@ public java.lang.String getInstances(int index) { return instances_.get(index); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -518,14 +569,16 @@ public java.lang.String getInstances(int index) {
      * 
* * repeated string instances = 1; + * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - public com.google.protobuf.ByteString - getInstancesBytes(int index) { + public com.google.protobuf.ByteString getInstancesBytes(int index) { return instances_.getByteString(index); } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -535,21 +588,23 @@ public java.lang.String getInstances(int index) {
      * 
* * repeated string instances = 1; + * * @param index The index to set the value at. * @param value The instances to set. * @return This builder for chaining. */ - public Builder setInstances( - int index, java.lang.String value) { + public Builder setInstances(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); + throw new NullPointerException(); + } + ensureInstancesIsMutable(); instances_.set(index, value); onChanged(); return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -559,20 +614,22 @@ public Builder setInstances(
      * 
* * repeated string instances = 1; + * * @param value The instances to add. * @return This builder for chaining. */ - public Builder addInstances( - java.lang.String value) { + public Builder addInstances(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstancesIsMutable(); + throw new NullPointerException(); + } + ensureInstancesIsMutable(); instances_.add(value); onChanged(); return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -582,18 +639,19 @@ public Builder addInstances(
      * 
* * repeated string instances = 1; + * * @param values The instances to add. * @return This builder for chaining. */ - public Builder addAllInstances( - java.lang.Iterable values) { + public Builder addAllInstances(java.lang.Iterable values) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); onChanged(); return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -603,6 +661,7 @@ public Builder addAllInstances(
      * 
* * repeated string instances = 1; + * * @return This builder for chaining. */ public Builder clearInstances() { @@ -612,6 +671,8 @@ public Builder clearInstances() { return this; } /** + * + * *
      * The Cloud SQL instance connection names, as can be found in
      * https://console.cloud.google.com/sql/instances. Visit
@@ -621,23 +682,23 @@ public Builder clearInstances() {
      * 
* * repeated string instances = 1; + * * @param value The bytes of the instances to add. * @return This builder for chaining. */ - public Builder addInstancesBytes( - com.google.protobuf.ByteString value) { + public Builder addInstancesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInstancesIsMutable(); instances_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -647,12 +708,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(); } @@ -661,27 +722,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -696,6 +757,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.CloudSqlInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java similarity index 72% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java index 7d86c2e56e33..e3e803e2dd2a 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CloudSqlInstanceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface CloudSqlInstanceOrBuilder extends +public interface CloudSqlInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.CloudSqlInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -17,11 +35,13 @@ public interface CloudSqlInstanceOrBuilder extends
    * 
* * repeated string instances = 1; + * * @return A list containing the instances. */ - java.util.List - getInstancesList(); + java.util.List getInstancesList(); /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -31,10 +51,13 @@ public interface CloudSqlInstanceOrBuilder extends
    * 
* * repeated string instances = 1; + * * @return The count of instances. */ int getInstancesCount(); /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -44,11 +67,14 @@ public interface CloudSqlInstanceOrBuilder extends
    * 
* * repeated string instances = 1; + * * @param index The index of the element to return. * @return The instances at the given index. */ java.lang.String getInstances(int index); /** + * + * *
    * The Cloud SQL instance connection names, as can be found in
    * https://console.cloud.google.com/sql/instances. Visit
@@ -58,9 +84,9 @@ public interface CloudSqlInstanceOrBuilder extends
    * 
* * repeated string instances = 1; + * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ - com.google.protobuf.ByteString - getInstancesBytes(int index); + com.google.protobuf.ByteString getInstancesBytes(int index); } diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java similarity index 75% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java index e6edf8e4877b..e6506791795d 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java +++ b/java-run/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,39 +46,43 @@ 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; } - 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.
      * 
@@ -69,6 +91,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -77,6 +101,8 @@ public enum State */ CONDITION_PENDING(1), /** + * + * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -85,6 +111,8 @@ public enum State */ CONDITION_RECONCILING(2), /** + * + * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -93,6 +121,8 @@ public enum State */ CONDITION_FAILED(3), /** + * + * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -104,6 +134,8 @@ public enum State ; /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -112,6 +144,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Transient state: Reconciliation has not started yet.
      * 
@@ -120,6 +154,8 @@ public enum State */ public static final int CONDITION_PENDING_VALUE = 1; /** + * + * *
      * Transient state: reconciliation is still in progress.
      * 
@@ -128,6 +164,8 @@ public enum State */ public static final int CONDITION_RECONCILING_VALUE = 2; /** + * + * *
      * Terminal state: Reconciliation did not succeed.
      * 
@@ -136,6 +174,8 @@ public enum State */ public static final int CONDITION_FAILED_VALUE = 3; /** + * + * *
      * Terminal state: Reconciliation completed successfully.
      * 
@@ -144,7 +184,6 @@ public enum State */ public static final int CONDITION_SUCCEEDED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -169,51 +208,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CONDITION_PENDING; - case 2: return CONDITION_RECONCILING; - case 3: return CONDITION_FAILED; - case 4: return CONDITION_SUCCEEDED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CONDITION_PENDING; + case 2: + return CONDITION_RECONCILING; + case 3: + return CONDITION_FAILED; + case 4: + return CONDITION_SUCCEEDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -231,15 +272,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
      * 
@@ -248,6 +292,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
      * Error severity.
      * 
@@ -256,6 +302,8 @@ public enum Severity */ ERROR(1), /** + * + * *
      * Warning severity.
      * 
@@ -264,6 +312,8 @@ public enum Severity */ WARNING(2), /** + * + * *
      * Info severity.
      * 
@@ -275,6 +325,8 @@ public enum Severity ; /** + * + * *
      * Unspecified severity
      * 
@@ -283,6 +335,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Error severity.
      * 
@@ -291,6 +345,8 @@ public enum Severity */ public static final int ERROR_VALUE = 1; /** + * + * *
      * Warning severity.
      * 
@@ -299,6 +355,8 @@ public enum Severity */ public static final int WARNING_VALUE = 2; /** + * + * *
      * Info severity.
      * 
@@ -307,7 +365,6 @@ public enum Severity */ public static final int INFO_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -332,50 +389,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; @@ -393,15 +451,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.
      * 
@@ -410,6 +471,8 @@ public enum CommonReason */ COMMON_REASON_UNDEFINED(0), /** + * + * *
      * Reason unknown. Further details will be in message.
      * 
@@ -418,6 +481,8 @@ public enum CommonReason */ UNKNOWN(1), /** + * + * *
      * Revision creation process failed.
      * 
@@ -426,6 +491,8 @@ public enum CommonReason */ REVISION_FAILED(3), /** + * + * *
      * Timed out waiting for completion.
      * 
@@ -434,6 +501,8 @@ public enum CommonReason */ PROGRESS_DEADLINE_EXCEEDED(4), /** + * + * *
      * The container image path is incorrect.
      * 
@@ -442,6 +511,8 @@ public enum CommonReason */ CONTAINER_MISSING(6), /** + * + * *
      * Insufficient permissions on the container image.
      * 
@@ -450,6 +521,8 @@ public enum CommonReason */ CONTAINER_PERMISSION_DENIED(7), /** + * + * *
      * Container image is not authorized by policy.
      * 
@@ -458,6 +531,8 @@ public enum CommonReason */ CONTAINER_IMAGE_UNAUTHORIZED(8), /** + * + * *
      * Container image policy authorization check failed.
      * 
@@ -466,6 +541,8 @@ public enum CommonReason */ CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED(9), /** + * + * *
      * Insufficient permissions on encryption key.
      * 
@@ -474,6 +551,8 @@ public enum CommonReason */ ENCRYPTION_KEY_PERMISSION_DENIED(10), /** + * + * *
      * Permission check on encryption key failed.
      * 
@@ -482,6 +561,8 @@ public enum CommonReason */ ENCRYPTION_KEY_CHECK_FAILED(11), /** + * + * *
      * At least one Access check on secrets failed.
      * 
@@ -490,6 +571,8 @@ public enum CommonReason */ SECRETS_ACCESS_CHECK_FAILED(12), /** + * + * *
      * Waiting for operation to complete.
      * 
@@ -498,6 +581,8 @@ public enum CommonReason */ WAITING_FOR_OPERATION(13), /** + * + * *
      * System will retry immediately.
      * 
@@ -506,6 +591,8 @@ public enum CommonReason */ IMMEDIATE_RETRY(14), /** + * + * *
      * System will retry later; current attempt failed.
      * 
@@ -514,6 +601,8 @@ public enum CommonReason */ POSTPONED_RETRY(15), /** + * + * *
      * An internal error occurred. Further information may be in the message.
      * 
@@ -525,6 +614,8 @@ public enum CommonReason ; /** + * + * *
      * Default value.
      * 
@@ -533,6 +624,8 @@ public enum CommonReason */ public static final int COMMON_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Reason unknown. Further details will be in message.
      * 
@@ -541,6 +634,8 @@ public enum CommonReason */ public static final int UNKNOWN_VALUE = 1; /** + * + * *
      * Revision creation process failed.
      * 
@@ -549,6 +644,8 @@ public enum CommonReason */ public static final int REVISION_FAILED_VALUE = 3; /** + * + * *
      * Timed out waiting for completion.
      * 
@@ -557,6 +654,8 @@ public enum CommonReason */ public static final int PROGRESS_DEADLINE_EXCEEDED_VALUE = 4; /** + * + * *
      * The container image path is incorrect.
      * 
@@ -565,6 +664,8 @@ public enum CommonReason */ public static final int CONTAINER_MISSING_VALUE = 6; /** + * + * *
      * Insufficient permissions on the container image.
      * 
@@ -573,6 +674,8 @@ public enum CommonReason */ public static final int CONTAINER_PERMISSION_DENIED_VALUE = 7; /** + * + * *
      * Container image is not authorized by policy.
      * 
@@ -581,6 +684,8 @@ public enum CommonReason */ public static final int CONTAINER_IMAGE_UNAUTHORIZED_VALUE = 8; /** + * + * *
      * Container image policy authorization check failed.
      * 
@@ -589,6 +694,8 @@ public enum CommonReason */ public static final int CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED_VALUE = 9; /** + * + * *
      * Insufficient permissions on encryption key.
      * 
@@ -597,6 +704,8 @@ public enum CommonReason */ public static final int ENCRYPTION_KEY_PERMISSION_DENIED_VALUE = 10; /** + * + * *
      * Permission check on encryption key failed.
      * 
@@ -605,6 +714,8 @@ public enum CommonReason */ public static final int ENCRYPTION_KEY_CHECK_FAILED_VALUE = 11; /** + * + * *
      * At least one Access check on secrets failed.
      * 
@@ -613,6 +724,8 @@ public enum CommonReason */ public static final int SECRETS_ACCESS_CHECK_FAILED_VALUE = 12; /** + * + * *
      * Waiting for operation to complete.
      * 
@@ -621,6 +734,8 @@ public enum CommonReason */ public static final int WAITING_FOR_OPERATION_VALUE = 13; /** + * + * *
      * System will retry immediately.
      * 
@@ -629,6 +744,8 @@ public enum CommonReason */ public static final int IMMEDIATE_RETRY_VALUE = 14; /** + * + * *
      * System will retry later; current attempt failed.
      * 
@@ -637,6 +754,8 @@ public enum CommonReason */ public static final int POSTPONED_RETRY_VALUE = 15; /** + * + * *
      * An internal error occurred. Further information may be in the message.
      * 
@@ -645,7 +764,6 @@ public enum CommonReason */ public static final int INTERNAL_VALUE = 16; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -670,61 +788,73 @@ public static CommonReason valueOf(int value) { */ public static CommonReason forNumber(int value) { switch (value) { - case 0: return COMMON_REASON_UNDEFINED; - case 1: return UNKNOWN; - case 3: return REVISION_FAILED; - case 4: return PROGRESS_DEADLINE_EXCEEDED; - case 6: return CONTAINER_MISSING; - case 7: return CONTAINER_PERMISSION_DENIED; - case 8: return CONTAINER_IMAGE_UNAUTHORIZED; - case 9: return CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED; - case 10: return ENCRYPTION_KEY_PERMISSION_DENIED; - case 11: return ENCRYPTION_KEY_CHECK_FAILED; - case 12: return SECRETS_ACCESS_CHECK_FAILED; - case 13: return WAITING_FOR_OPERATION; - case 14: return IMMEDIATE_RETRY; - case 15: return POSTPONED_RETRY; - case 16: return INTERNAL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return COMMON_REASON_UNDEFINED; + case 1: + return UNKNOWN; + case 3: + return REVISION_FAILED; + case 4: + return PROGRESS_DEADLINE_EXCEEDED; + case 6: + return CONTAINER_MISSING; + case 7: + return CONTAINER_PERMISSION_DENIED; + case 8: + return CONTAINER_IMAGE_UNAUTHORIZED; + case 9: + return CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED; + case 10: + return ENCRYPTION_KEY_PERMISSION_DENIED; + case 11: + return ENCRYPTION_KEY_CHECK_FAILED; + case 12: + return SECRETS_ACCESS_CHECK_FAILED; + case 13: + return WAITING_FOR_OPERATION; + case 14: + return IMMEDIATE_RETRY; + case 15: + return POSTPONED_RETRY; + case 16: + return INTERNAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - CommonReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CommonReason findValueByNumber(int number) { - return CommonReason.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CommonReason findValueByNumber(int number) { + return CommonReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(2); } private static final CommonReason[] VALUES = values(); - public static CommonReason valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CommonReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -742,15 +872,18 @@ private CommonReason(int value) { } /** + * + * *
    * Reasons specific to Revision resource.
    * 
* * Protobuf enum {@code google.cloud.run.v2.Condition.RevisionReason} */ - public enum RevisionReason - implements com.google.protobuf.ProtocolMessageEnum { + public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value.
      * 
@@ -759,6 +892,8 @@ public enum RevisionReason */ REVISION_REASON_UNDEFINED(0), /** + * + * *
      * Revision in Pending state.
      * 
@@ -767,6 +902,8 @@ public enum RevisionReason */ PENDING(1), /** + * + * *
      * Revision is in Reserve state.
      * 
@@ -775,6 +912,8 @@ public enum RevisionReason */ RESERVE(2), /** + * + * *
      * Revision is Retired.
      * 
@@ -783,6 +922,8 @@ public enum RevisionReason */ RETIRED(3), /** + * + * *
      * Revision is being retired.
      * 
@@ -791,6 +932,8 @@ public enum RevisionReason */ RETIRING(4), /** + * + * *
      * Revision is being recreated.
      * 
@@ -799,6 +942,8 @@ public enum RevisionReason */ RECREATING(5), /** + * + * *
      * There was a health check error.
      * 
@@ -807,6 +952,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.
@@ -816,6 +963,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
@@ -826,6 +975,8 @@ public enum RevisionReason
      */
     MIN_INSTANCES_NOT_PROVISIONED(8),
     /**
+     *
+     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -834,6 +985,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
@@ -844,6 +997,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
@@ -856,6 +1011,8 @@ public enum RevisionReason
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -864,6 +1021,8 @@ public enum RevisionReason */ public static final int REVISION_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Revision in Pending state.
      * 
@@ -872,6 +1031,8 @@ public enum RevisionReason */ public static final int PENDING_VALUE = 1; /** + * + * *
      * Revision is in Reserve state.
      * 
@@ -880,6 +1041,8 @@ public enum RevisionReason */ public static final int RESERVE_VALUE = 2; /** + * + * *
      * Revision is Retired.
      * 
@@ -888,6 +1051,8 @@ public enum RevisionReason */ public static final int RETIRED_VALUE = 3; /** + * + * *
      * Revision is being retired.
      * 
@@ -896,6 +1061,8 @@ public enum RevisionReason */ public static final int RETIRING_VALUE = 4; /** + * + * *
      * Revision is being recreated.
      * 
@@ -904,6 +1071,8 @@ public enum RevisionReason */ public static final int RECREATING_VALUE = 5; /** + * + * *
      * There was a health check error.
      * 
@@ -912,6 +1081,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.
@@ -921,6 +1092,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
@@ -931,6 +1104,8 @@ public enum RevisionReason
      */
     public static final int MIN_INSTANCES_NOT_PROVISIONED_VALUE = 8;
     /**
+     *
+     *
      * 
      * The maximum allowed number of active revisions has been reached.
      * 
@@ -939,6 +1114,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
@@ -949,6 +1126,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
@@ -958,7 +1137,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(
@@ -983,58 +1161,67 @@ public static RevisionReason valueOf(int value) {
      */
     public static RevisionReason forNumber(int value) {
       switch (value) {
-        case 0: return REVISION_REASON_UNDEFINED;
-        case 1: return PENDING;
-        case 2: return RESERVE;
-        case 3: return RETIRED;
-        case 4: return RETIRING;
-        case 5: return RECREATING;
-        case 6: return HEALTH_CHECK_CONTAINER_ERROR;
-        case 7: return CUSTOMIZED_PATH_RESPONSE_PENDING;
-        case 8: return MIN_INSTANCES_NOT_PROVISIONED;
-        case 9: return ACTIVE_REVISION_LIMIT_REACHED;
-        case 10: return NO_DEPLOYMENT;
-        case 11: return HEALTH_CHECK_SKIPPED;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return REVISION_REASON_UNDEFINED;
+        case 1:
+          return PENDING;
+        case 2:
+          return RESERVE;
+        case 3:
+          return RETIRED;
+        case 4:
+          return RETIRING;
+        case 5:
+          return RECREATING;
+        case 6:
+          return HEALTH_CHECK_CONTAINER_ERROR;
+        case 7:
+          return CUSTOMIZED_PATH_RESPONSE_PENDING;
+        case 8:
+          return MIN_INSTANCES_NOT_PROVISIONED;
+        case 9:
+          return ACTIVE_REVISION_LIMIT_REACHED;
+        case 10:
+          return NO_DEPLOYMENT;
+        case 11:
+          return HEALTH_CHECK_SKIPPED;
+        default:
+          return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        RevisionReason> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public RevisionReason findValueByNumber(int number) {
-              return RevisionReason.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public RevisionReason findValueByNumber(int number) {
+            return RevisionReason.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(3);
     }
 
     private static final RevisionReason[] VALUES = values();
 
-    public static RevisionReason valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static RevisionReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -1052,15 +1239,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.
      * 
@@ -1069,6 +1259,8 @@ public enum ExecutionReason */ EXECUTION_REASON_UNDEFINED(0), /** + * + * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1077,6 +1269,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.
@@ -1086,6 +1280,8 @@ public enum ExecutionReason
      */
     NON_ZERO_EXIT_CODE(2),
     /**
+     *
+     *
      * 
      * The execution was cancelled by users.
      * 
@@ -1097,6 +1293,8 @@ public enum ExecutionReason ; /** + * + * *
      * Default value.
      * 
@@ -1105,6 +1303,8 @@ public enum ExecutionReason */ public static final int EXECUTION_REASON_UNDEFINED_VALUE = 0; /** + * + * *
      * Internal system error getting execution status. System will retry.
      * 
@@ -1113,6 +1313,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.
@@ -1122,6 +1324,8 @@ public enum ExecutionReason
      */
     public static final int NON_ZERO_EXIT_CODE_VALUE = 2;
     /**
+     *
+     *
      * 
      * The execution was cancelled by users.
      * 
@@ -1130,7 +1334,6 @@ public enum ExecutionReason */ public static final int CANCELLED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1155,40 +1358,44 @@ 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; - case 3: return CANCELLED; - default: return null; + case 0: + return EXECUTION_REASON_UNDEFINED; + case 1: + return JOB_STATUS_SERVICE_POLLING_ERROR; + case 2: + return NON_ZERO_EXIT_CODE; + case 3: + return CANCELLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionReason findValueByNumber(int number) { - return ExecutionReason.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionReason findValueByNumber(int number) { + return ExecutionReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(4); } @@ -1197,8 +1404,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; @@ -1217,14 +1423,17 @@ private ExecutionReason(int value) { private int reasonsCase_ = 0; private java.lang.Object reasons_; + public enum ReasonsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REASON(6), REVISION_REASON(9), EXECUTION_REASON(11), REASONS_NOT_SET(0); private final int value; + private ReasonsCase(int value) { this.value = value; } @@ -1240,27 +1449,33 @@ public static ReasonsCase valueOf(int value) { public static ReasonsCase forNumber(int value) { switch (value) { - case 6: return REASON; - case 9: return REVISION_REASON; - case 11: return EXECUTION_REASON; - case 0: return REASONS_NOT_SET; - default: return null; + case 6: + return REASON; + case 9: + return REVISION_REASON; + case 11: + return EXECUTION_REASON; + case 0: + return REASONS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ReasonsCase - getReasonsCase() { - return ReasonsCase.forNumber( - reasonsCase_); + public ReasonsCase getReasonsCase() { + return ReasonsCase.forNumber(reasonsCase_); } public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** + * + * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -1270,6 +1485,7 @@ public int getNumber() {
    * 
* * string type = 1; + * * @return The type. */ @java.lang.Override @@ -1278,14 +1494,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:
@@ -1295,16 +1512,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 { @@ -1315,38 +1531,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 @@ -1355,29 +1583,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 { @@ -1388,11 +1616,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 @@ -1400,18 +1631,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.
    * 
@@ -1426,48 +1664,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() { @@ -1477,18 +1730,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; @@ -1496,22 +1752,28 @@ public com.google.cloud.run.v2.Condition.CommonReason getReason() { public static final int REVISION_REASON_FIELD_NUMBER = 9; /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return Whether the revisionReason field is set. */ public boolean hasRevisionReason() { return reasonsCase_ == 9; } /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return The enum numeric value on the wire for revisionReason. */ public int getRevisionReasonValue() { @@ -1521,41 +1783,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() { @@ -1565,24 +1838,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; @@ -1594,8 +1873,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_); } @@ -1633,31 +1911,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (state_ != com.google.cloud.run.v2.Condition.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (lastTransitionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLastTransitionTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime()); } if (severity_ != com.google.cloud.run.v2.Condition.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, severity_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, severity_); } if (reasonsCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, ((java.lang.Integer) reasons_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(6, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, ((java.lang.Integer) reasons_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(9, ((java.lang.Integer) reasons_)); } if (reasonsCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, ((java.lang.Integer) reasons_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(11, ((java.lang.Integer) reasons_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1667,37 +1942,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.Condition)) { return super.equals(obj); } com.google.cloud.run.v2.Condition other = (com.google.cloud.run.v2.Condition) obj; - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; if (state_ != other.state_) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (hasLastTransitionTime() != other.hasLastTransitionTime()) return false; if (hasLastTransitionTime()) { - if (!getLastTransitionTime() - .equals(other.getLastTransitionTime())) return false; + if (!getLastTransitionTime().equals(other.getLastTransitionTime())) return false; } if (severity_ != other.severity_) return false; if (!getReasonsCase().equals(other.getReasonsCase())) return false; switch (reasonsCase_) { case 6: - if (getReasonValue() - != other.getReasonValue()) return false; + if (getReasonValue() != other.getReasonValue()) return false; break; case 9: - if (getRevisionReasonValue() - != other.getRevisionReasonValue()) return false; + if (getRevisionReasonValue() != other.getRevisionReasonValue()) return false; break; case 11: - if (getExecutionReasonValue() - != other.getExecutionReasonValue()) return false; + if (getExecutionReasonValue() != other.getExecutionReasonValue()) return false; break; case 0: default: @@ -1746,130 +2015,135 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1893,9 +2167,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 @@ -1942,38 +2216,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; @@ -2000,21 +2275,25 @@ public Builder mergeFrom(com.google.cloud.run.v2.Condition other) { setSeverityValue(other.getSeverityValue()); } switch (other.getReasonsCase()) { - case REASON: { - setReasonValue(other.getReasonValue()); - break; - } - case REVISION_REASON: { - setRevisionReasonValue(other.getRevisionReasonValue()); - break; - } - case EXECUTION_REASON: { - setExecutionReasonValue(other.getExecutionReasonValue()); - break; - } - case REASONS_NOT_SET: { - break; - } + case REASON: + { + setReasonValue(other.getReasonValue()); + break; + } + case REVISION_REASON: + { + setRevisionReasonValue(other.getRevisionReasonValue()); + break; + } + case EXECUTION_REASON: + { + setExecutionReasonValue(other.getExecutionReasonValue()); + break; + } + case REASONS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2042,57 +2321,65 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - type_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - state_ = input.readEnum(); - - break; - } // case 16 - case 26: { - message_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - input.readMessage( - getLastTransitionTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 34 - case 40: { - severity_ = input.readEnum(); - - break; - } // case 40 - case 48: { - int rawValue = input.readEnum(); - reasonsCase_ = 6; - reasons_ = rawValue; - break; - } // case 48 - case 72: { - int rawValue = input.readEnum(); - reasonsCase_ = 9; - reasons_ = rawValue; - break; - } // case 72 - case 88: { - int rawValue = input.readEnum(); - reasonsCase_ = 11; - reasons_ = rawValue; - break; - } // case 88 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + message_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage( + getLastTransitionTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 40: + { + severity_ = input.readEnum(); + + break; + } // case 40 + case 48: + { + int rawValue = input.readEnum(); + reasonsCase_ = 6; + reasons_ = rawValue; + break; + } // case 48 + case 72: + { + int rawValue = input.readEnum(); + reasonsCase_ = 9; + reasons_ = rawValue; + break; + } // case 72 + case 88: + { + int rawValue = input.readEnum(); + reasonsCase_ = 11; + reasons_ = rawValue; + break; + } // case 88 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2102,12 +2389,12 @@ public Builder mergeFrom( } // finally 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() { @@ -2117,9 +2404,10 @@ public Builder clearReasons() { return this; } - private java.lang.Object type_ = ""; /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2129,13 +2417,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; @@ -2144,6 +2432,8 @@ public java.lang.String getType() { } } /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2153,15 +2443,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 { @@ -2169,6 +2458,8 @@ public java.lang.String getType() { } } /** + * + * *
      * type is used to communicate the status of the reconciliation process.
      * See also:
@@ -2178,20 +2469,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:
@@ -2201,15 +2494,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:
@@ -2219,16 +2515,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; @@ -2236,51 +2532,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. */ @@ -2288,21 +2598,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; @@ -2310,18 +2623,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; @@ -2330,20 +2645,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 { @@ -2351,54 +2667,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; @@ -2406,34 +2729,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.
      * 
@@ -2454,14 +2790,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(); @@ -2472,6 +2809,8 @@ public Builder setLastTransitionTime( return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2482,7 +2821,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; } @@ -2494,6 +2835,8 @@ public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2512,6 +2855,8 @@ public Builder clearLastTransitionTime() { return this; } /** + * + * *
      * Last time the condition transitioned from one status to another.
      * 
@@ -2519,11 +2864,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.
      * 
@@ -2534,11 +2881,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.
      * 
@@ -2546,14 +2896,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_; @@ -2561,51 +2914,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. */ @@ -2613,32 +2980,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 @@ -2646,11 +3019,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 @@ -2661,11 +3037,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. */ @@ -2676,29 +3055,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. */ @@ -2712,11 +3099,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() { @@ -2729,11 +3119,14 @@ public Builder clearReason() { } /** + * + * *
      * A reason for the revision condition.
      * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return Whether the revisionReason field is set. */ @java.lang.Override @@ -2741,11 +3134,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 @@ -2756,11 +3152,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. */ @@ -2771,29 +3170,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. */ @@ -2807,11 +3214,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() { @@ -2824,11 +3234,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 @@ -2836,11 +3249,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 @@ -2851,11 +3267,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. */ @@ -2866,29 +3285,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. */ @@ -2902,11 +3329,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() { @@ -2917,9 +3347,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); } @@ -2929,12 +3359,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(); } @@ -2943,27 +3373,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2978,6 +3408,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java similarity index 84% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java index 759ebdc178a9..94495056b83a 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/condition.proto package com.google.cloud.run.v2; -public interface ConditionOrBuilder extends +public interface ConditionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Condition) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -17,10 +35,13 @@ public interface ConditionOrBuilder extends
    * 
* * string type = 1; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * type is used to communicate the status of the reconciliation process.
    * See also:
@@ -30,69 +51,88 @@ public interface ConditionOrBuilder extends
    * 
* * string type = 1; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * State of the condition.
    * 
* * .google.cloud.run.v2.Condition.State state = 2; + * * @return The state. */ com.google.cloud.run.v2.Condition.State getState(); /** + * + * *
    * Human readable message indicating details about the current status.
    * 
* * string message = 3; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
    * Human readable message indicating details about the current status.
    * 
* * string message = 3; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; + * * @return Whether the lastTransitionTime field is set. */ boolean hasLastTransitionTime(); /** + * + * *
    * Last time the condition transitioned from one status to another.
    * 
* * .google.protobuf.Timestamp last_transition_time = 4; + * * @return The lastTransitionTime. */ com.google.protobuf.Timestamp getLastTransitionTime(); /** + * + * *
    * Last time the condition transitioned from one status to another.
    * 
@@ -102,104 +142,137 @@ public interface ConditionOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder(); /** + * + * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * How to interpret failures of this condition, one of Error, Warning, Info
    * 
* * .google.cloud.run.v2.Condition.Severity severity = 5; + * * @return The severity. */ com.google.cloud.run.v2.Condition.Severity getSeverity(); /** + * + * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return Whether the reason field is set. */ boolean hasReason(); /** + * + * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** + * + * *
    * A common (service-level) reason for this condition.
    * 
* * .google.cloud.run.v2.Condition.CommonReason reason = 6; + * * @return The reason. */ com.google.cloud.run.v2.Condition.CommonReason getReason(); /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return Whether the revisionReason field is set. */ boolean hasRevisionReason(); /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return The enum numeric value on the wire for revisionReason. */ int getRevisionReasonValue(); /** + * + * *
    * A reason for the revision condition.
    * 
* * .google.cloud.run.v2.Condition.RevisionReason revision_reason = 9; + * * @return The revisionReason. */ com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason(); /** + * + * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return Whether the executionReason field is set. */ boolean hasExecutionReason(); /** + * + * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return The enum numeric value on the wire for executionReason. */ int getExecutionReasonValue(); /** + * + * *
    * A reason for the execution condition.
    * 
* * .google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11; + * * @return The executionReason. */ com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java new file mode 100644 index 000000000000..80b5b0c41ea0 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/condition.proto + +package com.google.cloud.run.v2; + +public final class ConditionProto { + private ConditionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Condition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Condition_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n#google/cloud/run/v2/condition.proto\022\023g" + + "oogle.cloud.run.v2\032\037google/protobuf/time" + + "stamp.proto\"\344\013\n\tCondition\022\014\n\004type\030\001 \001(\t\022" + + "3\n\005state\030\002 \001(\0162$.google.cloud.run.v2.Con" + + "dition.State\022\017\n\007message\030\003 \001(\t\0228\n\024last_tr" + + "ansition_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\0229\n\010severity\030\005 \001(\0162\'.google.cloud" + + ".run.v2.Condition.Severity\022=\n\006reason\030\006 \001" + + "(\0162+.google.cloud.run.v2.Condition.Commo" + + "nReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goo" + + "gle.cloud.run.v2.Condition.RevisionReaso" + + "nH\000\022J\n\020execution_reason\030\013 \001(\0162..google.c" + + "loud.run.v2.Condition.ExecutionReasonH\000\"" + + "\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDI" + + "TION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020" + + "\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUC" + + "CEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECI" + + "FIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003" + + "\"\262\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEF" + + "INED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_FAILED\020\003" + + "\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004\022\025\n\021CONT" + + "AINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION_" + + "DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZED" + + "\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHEC" + + "K_FAILED\020\t\022$\n ENCRYPTION_KEY_PERMISSION_" + + "DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK_FAILED\020" + + "\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED\020\014\022\031\n\025WA" + + "ITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETRY" + + "\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTERNAL\020\020\"\257\002" + + "\n\016RevisionReason\022\035\n\031REVISION_REASON_UNDE" + + "FINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020\002\022\013\n\007RET" + + "IRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATING\020\005\022 \n\034" + + "HEALTH_CHECK_CONTAINER_ERROR\020\006\022$\n CUSTOM" + + "IZED_PATH_RESPONSE_PENDING\020\007\022!\n\035MIN_INST" + + "ANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIVE_REVISI" + + "ON_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYMENT\020\n\022\030\n" + + "\024HEALTH_CHECK_SKIPPED\020\013\"~\n\017ExecutionReas" + + "on\022\036\n\032EXECUTION_REASON_UNDEFINED\020\000\022$\n JO" + + "B_STATUS_SERVICE_POLLING_ERROR\020\001\022\026\n\022NON_" + + "ZERO_EXIT_CODE\020\002\022\r\n\tCANCELLED\020\003B\t\n\007reaso" + + "nsBc\n\027com.google.cloud.run.v2B\016Condition" + + "ProtoP\001Z6google.golang.org/genproto/goog" + + "leapis/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", + "RevisionReason", + "ExecutionReason", + "Reasons", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java similarity index 81% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java index 8f5c3db8d849..6391762216bb 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java +++ b/java-run/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_ = "";
@@ -36,37 +54,41 @@ 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;
   }
-  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 @@ -75,29 +97,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 { @@ -108,12 +130,15 @@ public java.lang.String getName() { public static final int IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object image_; /** + * + * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The image. */ @java.lang.Override @@ -122,30 +147,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** + * + * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -156,6 +181,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.
@@ -169,13 +196,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.
@@ -189,12 +218,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.
@@ -208,6 +240,7 @@ public int getCommandCount() {
    * 
* * repeated string command = 3; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -215,6 +248,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.
@@ -228,17 +263,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.
@@ -252,13 +289,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.
@@ -272,12 +311,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.
@@ -291,6 +333,7 @@ public int getArgsCount() {
    * 
* * repeated string args = 4; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -298,6 +341,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.
@@ -311,17 +356,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.
    * 
@@ -333,6 +380,8 @@ public java.util.List getEnvList() { return env_; } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -340,11 +389,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.
    * 
@@ -356,6 +406,8 @@ public int getEnvCount() { return env_.size(); } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -367,6 +419,8 @@ public com.google.cloud.run.v2.EnvVar getEnv(int index) { return env_.get(index); } /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -374,14 +428,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:
@@ -389,6 +444,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 @@ -396,6 +452,8 @@ public boolean hasResources() { return resources_ != null; } /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -403,13 +461,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:
@@ -426,6 +489,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
@@ -441,6 +506,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
@@ -452,11 +519,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
@@ -472,6 +541,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
@@ -487,6 +558,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
@@ -498,14 +571,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.
    * 
@@ -517,6 +591,8 @@ public java.util.List getVolumeMountsList() return volumeMounts_; } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -524,11 +600,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.
    * 
@@ -540,6 +618,8 @@ public int getVolumeMountsCount() { return volumeMounts_.size(); } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -551,6 +631,8 @@ public com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index) { return volumeMounts_.get(index); } /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -558,14 +640,15 @@ 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); } public static final int WORKING_DIR_FIELD_NUMBER = 9; private volatile java.lang.Object workingDir_; /** + * + * *
    * Container's working directory.
    * If not specified, the container runtime's default will be used, which
@@ -573,6 +656,7 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(
    * 
* * string working_dir = 9; + * * @return The workingDir. */ @java.lang.Override @@ -581,14 +665,15 @@ public java.lang.String getWorkingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; } } /** + * + * *
    * Container's working directory.
    * If not specified, the container runtime's default will be used, which
@@ -596,16 +681,15 @@ public java.lang.String getWorkingDir() {
    * 
* * string working_dir = 9; + * * @return The bytes for workingDir. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkingDirBytes() { + public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { @@ -616,6 +700,8 @@ public java.lang.String getWorkingDir() { public static final int LIVENESS_PROBE_FIELD_NUMBER = 10; private com.google.cloud.run.v2.Probe livenessProbe_; /** + * + * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -624,6 +710,7 @@ public java.lang.String getWorkingDir() {
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; + * * @return Whether the livenessProbe field is set. */ @java.lang.Override @@ -631,6 +718,8 @@ public boolean hasLivenessProbe() { return livenessProbe_ != null; } /** + * + * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -639,13 +728,18 @@ public boolean hasLivenessProbe() {
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; + * * @return The livenessProbe. */ @java.lang.Override public com.google.cloud.run.v2.Probe getLivenessProbe() { - return livenessProbe_ == null ? com.google.cloud.run.v2.Probe.getDefaultInstance() : livenessProbe_; + return livenessProbe_ == null + ? com.google.cloud.run.v2.Probe.getDefaultInstance() + : livenessProbe_; } /** + * + * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -663,6 +757,8 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
   public static final int STARTUP_PROBE_FIELD_NUMBER = 11;
   private com.google.cloud.run.v2.Probe startupProbe_;
   /**
+   *
+   *
    * 
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
@@ -673,6 +769,7 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
    * 
* * .google.cloud.run.v2.Probe startup_probe = 11; + * * @return Whether the startupProbe field is set. */ @java.lang.Override @@ -680,6 +777,8 @@ public boolean hasStartupProbe() { return startupProbe_ != null; } /** + * + * *
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
@@ -690,13 +789,18 @@ public boolean hasStartupProbe() {
    * 
* * .google.cloud.run.v2.Probe startup_probe = 11; + * * @return The startupProbe. */ @java.lang.Override public com.google.cloud.run.v2.Probe getStartupProbe() { - return startupProbe_ == null ? com.google.cloud.run.v2.Probe.getDefaultInstance() : startupProbe_; + return startupProbe_ == null + ? com.google.cloud.run.v2.Probe.getDefaultInstance() + : startupProbe_; } /** + * + * *
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
@@ -714,6 +818,7 @@ public com.google.cloud.run.v2.ProbeOrBuilder getStartupProbeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -725,8 +830,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_);
     }
@@ -792,31 +896,25 @@ 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));
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, workingDir_);
     }
     if (livenessProbe_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, getLivenessProbe());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLivenessProbe());
     }
     if (startupProbe_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(11, getStartupProbe());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStartupProbe());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -826,43 +924,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 (!getPortsList()
-        .equals(other.getPortsList())) return false;
-    if (!getVolumeMountsList()
-        .equals(other.getVolumeMountsList())) return false;
-    if (!getWorkingDir()
-        .equals(other.getWorkingDir())) return false;
+      if (!getResources().equals(other.getResources())) return false;
+    }
+    if (!getPortsList().equals(other.getPortsList())) return false;
+    if (!getVolumeMountsList().equals(other.getVolumeMountsList())) return false;
+    if (!getWorkingDir().equals(other.getWorkingDir())) return false;
     if (hasLivenessProbe() != other.hasLivenessProbe()) return false;
     if (hasLivenessProbe()) {
-      if (!getLivenessProbe()
-          .equals(other.getLivenessProbe())) return false;
+      if (!getLivenessProbe().equals(other.getLivenessProbe())) return false;
     }
     if (hasStartupProbe() != other.hasStartupProbe()) return false;
     if (hasStartupProbe()) {
-      if (!getStartupProbe()
-          .equals(other.getStartupProbe())) return false;
+      if (!getStartupProbe().equals(other.getStartupProbe())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -918,97 +1005,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
@@ -1019,33 +1112,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1102,9 +1194,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
@@ -1188,38 +1280,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;
@@ -1274,9 +1367,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_);
           }
@@ -1303,9 +1397,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_);
           }
@@ -1329,9 +1424,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_);
           }
@@ -1373,99 +1469,101 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              image_ = input.readStringRequireUtf8();
+                break;
+              } // case 10
+            case 18:
+              {
+                image_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureCommandIsMutable();
-              command_.add(s);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureArgsIsMutable();
-              args_.add(s);
-              break;
-            } // case 34
-            case 42: {
-              com.google.cloud.run.v2.EnvVar m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.EnvVar.parser(),
-                      extensionRegistry);
-              if (envBuilder_ == null) {
-                ensureEnvIsMutable();
-                env_.add(m);
-              } else {
-                envBuilder_.addMessage(m);
-              }
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getResourcesFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureCommandIsMutable();
+                command_.add(s);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureArgsIsMutable();
+                args_.add(s);
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.cloud.run.v2.EnvVar m =
+                    input.readMessage(com.google.cloud.run.v2.EnvVar.parser(), extensionRegistry);
+                if (envBuilder_ == null) {
+                  ensureEnvIsMutable();
+                  env_.add(m);
+                } else {
+                  envBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getResourcesFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 50
-            case 58: {
-              com.google.cloud.run.v2.ContainerPort m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.ContainerPort.parser(),
-                      extensionRegistry);
-              if (portsBuilder_ == null) {
-                ensurePortsIsMutable();
-                ports_.add(m);
-              } else {
-                portsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 58
-            case 66: {
-              com.google.cloud.run.v2.VolumeMount m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.VolumeMount.parser(),
-                      extensionRegistry);
-              if (volumeMountsBuilder_ == null) {
-                ensureVolumeMountsIsMutable();
-                volumeMounts_.add(m);
-              } else {
-                volumeMountsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 66
-            case 74: {
-              workingDir_ = input.readStringRequireUtf8();
+                break;
+              } // case 50
+            case 58:
+              {
+                com.google.cloud.run.v2.ContainerPort m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.ContainerPort.parser(), extensionRegistry);
+                if (portsBuilder_ == null) {
+                  ensurePortsIsMutable();
+                  ports_.add(m);
+                } else {
+                  portsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 58
+            case 66:
+              {
+                com.google.cloud.run.v2.VolumeMount m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.VolumeMount.parser(), extensionRegistry);
+                if (volumeMountsBuilder_ == null) {
+                  ensureVolumeMountsIsMutable();
+                  volumeMounts_.add(m);
+                } else {
+                  volumeMountsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 66
+            case 74:
+              {
+                workingDir_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getLivenessProbeFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getLivenessProbeFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getStartupProbeFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getStartupProbeFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 90
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 90
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1475,22 +1573,25 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1499,20 +1600,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 { @@ -1520,54 +1622,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; @@ -1575,19 +1684,21 @@ public Builder setNameBytes( private java.lang.Object image_ = ""; /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -1596,21 +1707,22 @@ public java.lang.String getImage() { } } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for image. */ - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -1618,70 +1730,81 @@ public java.lang.String getImage() { } } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage( - java.lang.String value) { + public Builder setImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** + * + * *
      * Required. URL of the Container image in Google Container Registry or Google Artifact
      * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { + public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList command_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
@@ -1695,13 +1818,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.
@@ -1715,12 +1840,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.
@@ -1734,6 +1862,7 @@ public int getCommandCount() {
      * 
* * repeated string command = 3; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -1741,6 +1870,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.
@@ -1754,14 +1885,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.
@@ -1775,21 +1908,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.
@@ -1803,20 +1938,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.
@@ -1830,18 +1967,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.
@@ -1855,6 +1993,7 @@ public Builder addAllCommand(
      * 
* * repeated string command = 3; + * * @return This builder for chaining. */ public Builder clearCommand() { @@ -1864,6 +2003,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.
@@ -1877,29 +2018,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.
@@ -1913,13 +2058,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.
@@ -1933,12 +2080,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.
@@ -1952,6 +2102,7 @@ public int getArgsCount() {
      * 
* * repeated string args = 4; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1959,6 +2110,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.
@@ -1972,14 +2125,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.
@@ -1993,21 +2148,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.
@@ -2021,20 +2178,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.
@@ -2048,18 +2207,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.
@@ -2073,6 +2233,7 @@ public Builder addAllArgs(
      * 
* * repeated string args = 4; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -2082,6 +2243,8 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
@@ -2095,34 +2258,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.
      * 
@@ -2137,6 +2305,8 @@ public java.util.List getEnvList() { } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2151,6 +2321,8 @@ public int getEnvCount() { } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2165,14 +2337,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(); @@ -2186,14 +2359,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()); @@ -2204,6 +2378,8 @@ public Builder setEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2224,14 +2400,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(); @@ -2245,14 +2422,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()); @@ -2263,14 +2441,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()); @@ -2281,18 +2460,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); @@ -2300,6 +2479,8 @@ public Builder addAllEnv( return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2317,6 +2498,8 @@ public Builder clearEnv() { return this; } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2334,39 +2517,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 { @@ -2374,6 +2561,8 @@ public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( } } /** + * + * *
      * List of environment variables to set in the container.
      * 
@@ -2381,42 +2570,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_; @@ -2424,8 +2617,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:
@@ -2433,12 +2631,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:
@@ -2446,16 +2647,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:
@@ -2478,6 +2684,8 @@ public Builder setResources(com.google.cloud.run.v2.ResourceRequirements value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2498,6 +2706,8 @@ public Builder setResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2510,7 +2720,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;
         }
@@ -2522,6 +2734,8 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2542,6 +2756,8 @@ public Builder clearResources() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Compute Resource requirements by this container.
      * More info:
@@ -2551,11 +2767,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:
@@ -2568,11 +2786,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:
@@ -2582,32 +2803,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
@@ -2626,6 +2856,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
@@ -2644,6 +2876,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
@@ -2662,6 +2896,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
@@ -2672,8 +2908,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();
@@ -2687,6 +2922,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
@@ -2709,6 +2946,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
@@ -2733,6 +2972,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
@@ -2743,8 +2984,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();
@@ -2758,6 +2998,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
@@ -2768,8 +3010,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());
@@ -2780,6 +3021,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
@@ -2802,6 +3045,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
@@ -2816,8 +3061,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);
@@ -2825,6 +3069,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
@@ -2846,6 +3092,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
@@ -2867,6 +3115,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
@@ -2877,11 +3127,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
@@ -2892,14 +3143,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
@@ -2910,8 +3163,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 {
@@ -2919,6 +3172,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
@@ -2930,10 +3185,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
@@ -2944,12 +3201,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
@@ -2960,38 +3218,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.
      * 
@@ -3006,6 +3272,8 @@ public java.util.List getVolumeMountsList() } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3020,6 +3288,8 @@ public int getVolumeMountsCount() { } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3034,14 +3304,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(); @@ -3055,6 +3326,8 @@ public Builder setVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3073,6 +3346,8 @@ public Builder setVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3093,14 +3368,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(); @@ -3114,14 +3390,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()); @@ -3132,6 +3409,8 @@ public Builder addVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3150,6 +3429,8 @@ public Builder addVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3160,8 +3441,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); @@ -3169,6 +3449,8 @@ public Builder addAllVolumeMounts( return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3186,6 +3468,8 @@ public Builder clearVolumeMounts() { return this; } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3203,39 +3487,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 { @@ -3243,6 +3532,8 @@ public com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder( } } /** + * + * *
      * Volume to mount into the container's filesystem.
      * 
@@ -3250,42 +3541,48 @@ 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_; @@ -3293,6 +3590,8 @@ public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder( private java.lang.Object workingDir_ = ""; /** + * + * *
      * Container's working directory.
      * If not specified, the container runtime's default will be used, which
@@ -3300,13 +3599,13 @@ public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder(
      * 
* * string working_dir = 9; + * * @return The workingDir. */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; @@ -3315,6 +3614,8 @@ public java.lang.String getWorkingDir() { } } /** + * + * *
      * Container's working directory.
      * If not specified, the container runtime's default will be used, which
@@ -3322,15 +3623,14 @@ public java.lang.String getWorkingDir() {
      * 
* * string working_dir = 9; + * * @return The bytes for workingDir. */ - public com.google.protobuf.ByteString - getWorkingDirBytes() { + public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { @@ -3338,6 +3638,8 @@ public java.lang.String getWorkingDir() { } } /** + * + * *
      * Container's working directory.
      * If not specified, the container runtime's default will be used, which
@@ -3345,20 +3647,22 @@ public java.lang.String getWorkingDir() {
      * 
* * string working_dir = 9; + * * @param value The workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDir( - java.lang.String value) { + public Builder setWorkingDir(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workingDir_ = value; onChanged(); return this; } /** + * + * *
      * Container's working directory.
      * If not specified, the container runtime's default will be used, which
@@ -3366,15 +3670,18 @@ public Builder setWorkingDir(
      * 
* * string working_dir = 9; + * * @return This builder for chaining. */ public Builder clearWorkingDir() { - + workingDir_ = getDefaultInstance().getWorkingDir(); onChanged(); return this; } /** + * + * *
      * Container's working directory.
      * If not specified, the container runtime's default will be used, which
@@ -3382,16 +3689,16 @@ public Builder clearWorkingDir() {
      * 
* * string working_dir = 9; + * * @param value The bytes for workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDirBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workingDir_ = value; onChanged(); return this; @@ -3399,8 +3706,13 @@ public Builder setWorkingDirBytes( private com.google.cloud.run.v2.Probe livenessProbe_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder> livenessProbeBuilder_; + com.google.cloud.run.v2.Probe, + com.google.cloud.run.v2.Probe.Builder, + com.google.cloud.run.v2.ProbeOrBuilder> + livenessProbeBuilder_; /** + * + * *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3409,12 +3721,15 @@ public Builder setWorkingDirBytes(
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; + * * @return Whether the livenessProbe field is set. */ public boolean hasLivenessProbe() { return livenessProbeBuilder_ != null || livenessProbe_ != null; } /** + * + * *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3423,16 +3738,21 @@ public boolean hasLivenessProbe() {
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; + * * @return The livenessProbe. */ public com.google.cloud.run.v2.Probe getLivenessProbe() { if (livenessProbeBuilder_ == null) { - return livenessProbe_ == null ? com.google.cloud.run.v2.Probe.getDefaultInstance() : livenessProbe_; + return livenessProbe_ == null + ? com.google.cloud.run.v2.Probe.getDefaultInstance() + : livenessProbe_; } else { return livenessProbeBuilder_.getMessage(); } } /** + * + * *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3456,6 +3776,8 @@ public Builder setLivenessProbe(com.google.cloud.run.v2.Probe value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3465,8 +3787,7 @@ public Builder setLivenessProbe(com.google.cloud.run.v2.Probe value) {
      *
      * .google.cloud.run.v2.Probe liveness_probe = 10;
      */
-    public Builder setLivenessProbe(
-        com.google.cloud.run.v2.Probe.Builder builderForValue) {
+    public Builder setLivenessProbe(com.google.cloud.run.v2.Probe.Builder builderForValue) {
       if (livenessProbeBuilder_ == null) {
         livenessProbe_ = builderForValue.build();
         onChanged();
@@ -3477,6 +3798,8 @@ public Builder setLivenessProbe(
       return this;
     }
     /**
+     *
+     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3490,7 +3813,9 @@ public Builder mergeLivenessProbe(com.google.cloud.run.v2.Probe value) {
       if (livenessProbeBuilder_ == null) {
         if (livenessProbe_ != null) {
           livenessProbe_ =
-            com.google.cloud.run.v2.Probe.newBuilder(livenessProbe_).mergeFrom(value).buildPartial();
+              com.google.cloud.run.v2.Probe.newBuilder(livenessProbe_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           livenessProbe_ = value;
         }
@@ -3502,6 +3827,8 @@ public Builder mergeLivenessProbe(com.google.cloud.run.v2.Probe value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3523,6 +3850,8 @@ public Builder clearLivenessProbe() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3533,11 +3862,13 @@ public Builder clearLivenessProbe() {
      * .google.cloud.run.v2.Probe liveness_probe = 10;
      */
     public com.google.cloud.run.v2.Probe.Builder getLivenessProbeBuilder() {
-      
+
       onChanged();
       return getLivenessProbeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3551,11 +3882,14 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
       if (livenessProbeBuilder_ != null) {
         return livenessProbeBuilder_.getMessageOrBuilder();
       } else {
-        return livenessProbe_ == null ?
-            com.google.cloud.run.v2.Probe.getDefaultInstance() : livenessProbe_;
+        return livenessProbe_ == null
+            ? com.google.cloud.run.v2.Probe.getDefaultInstance()
+            : livenessProbe_;
       }
     }
     /**
+     *
+     *
      * 
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
@@ -3566,14 +3900,17 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
      * .google.cloud.run.v2.Probe liveness_probe = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder> 
+            com.google.cloud.run.v2.Probe,
+            com.google.cloud.run.v2.Probe.Builder,
+            com.google.cloud.run.v2.ProbeOrBuilder>
         getLivenessProbeFieldBuilder() {
       if (livenessProbeBuilder_ == null) {
-        livenessProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder>(
-                getLivenessProbe(),
-                getParentForChildren(),
-                isClean());
+        livenessProbeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.Probe,
+                com.google.cloud.run.v2.Probe.Builder,
+                com.google.cloud.run.v2.ProbeOrBuilder>(
+                getLivenessProbe(), getParentForChildren(), isClean());
         livenessProbe_ = null;
       }
       return livenessProbeBuilder_;
@@ -3581,8 +3918,13 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
 
     private com.google.cloud.run.v2.Probe startupProbe_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder> startupProbeBuilder_;
+            com.google.cloud.run.v2.Probe,
+            com.google.cloud.run.v2.Probe.Builder,
+            com.google.cloud.run.v2.ProbeOrBuilder>
+        startupProbeBuilder_;
     /**
+     *
+     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3593,12 +3935,15 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() {
      * 
* * .google.cloud.run.v2.Probe startup_probe = 11; + * * @return Whether the startupProbe field is set. */ public boolean hasStartupProbe() { return startupProbeBuilder_ != null || startupProbe_ != null; } /** + * + * *
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3609,16 +3954,21 @@ public boolean hasStartupProbe() {
      * 
* * .google.cloud.run.v2.Probe startup_probe = 11; + * * @return The startupProbe. */ public com.google.cloud.run.v2.Probe getStartupProbe() { if (startupProbeBuilder_ == null) { - return startupProbe_ == null ? com.google.cloud.run.v2.Probe.getDefaultInstance() : startupProbe_; + return startupProbe_ == null + ? com.google.cloud.run.v2.Probe.getDefaultInstance() + : startupProbe_; } else { return startupProbeBuilder_.getMessage(); } } /** + * + * *
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3644,6 +3994,8 @@ public Builder setStartupProbe(com.google.cloud.run.v2.Probe value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3655,8 +4007,7 @@ public Builder setStartupProbe(com.google.cloud.run.v2.Probe value) {
      *
      * .google.cloud.run.v2.Probe startup_probe = 11;
      */
-    public Builder setStartupProbe(
-        com.google.cloud.run.v2.Probe.Builder builderForValue) {
+    public Builder setStartupProbe(com.google.cloud.run.v2.Probe.Builder builderForValue) {
       if (startupProbeBuilder_ == null) {
         startupProbe_ = builderForValue.build();
         onChanged();
@@ -3667,6 +4018,8 @@ public Builder setStartupProbe(
       return this;
     }
     /**
+     *
+     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3682,7 +4035,9 @@ public Builder mergeStartupProbe(com.google.cloud.run.v2.Probe value) {
       if (startupProbeBuilder_ == null) {
         if (startupProbe_ != null) {
           startupProbe_ =
-            com.google.cloud.run.v2.Probe.newBuilder(startupProbe_).mergeFrom(value).buildPartial();
+              com.google.cloud.run.v2.Probe.newBuilder(startupProbe_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           startupProbe_ = value;
         }
@@ -3694,6 +4049,8 @@ public Builder mergeStartupProbe(com.google.cloud.run.v2.Probe value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3717,6 +4074,8 @@ public Builder clearStartupProbe() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3729,11 +4088,13 @@ public Builder clearStartupProbe() {
      * .google.cloud.run.v2.Probe startup_probe = 11;
      */
     public com.google.cloud.run.v2.Probe.Builder getStartupProbeBuilder() {
-      
+
       onChanged();
       return getStartupProbeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3749,11 +4110,14 @@ public com.google.cloud.run.v2.ProbeOrBuilder getStartupProbeOrBuilder() {
       if (startupProbeBuilder_ != null) {
         return startupProbeBuilder_.getMessageOrBuilder();
       } else {
-        return startupProbe_ == null ?
-            com.google.cloud.run.v2.Probe.getDefaultInstance() : startupProbe_;
+        return startupProbe_ == null
+            ? com.google.cloud.run.v2.Probe.getDefaultInstance()
+            : startupProbe_;
       }
     }
     /**
+     *
+     *
      * 
      * Startup probe of application within the container.
      * All other probes are disabled if a startup probe is provided, until it
@@ -3766,21 +4130,24 @@ public com.google.cloud.run.v2.ProbeOrBuilder getStartupProbeOrBuilder() {
      * .google.cloud.run.v2.Probe startup_probe = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder> 
+            com.google.cloud.run.v2.Probe,
+            com.google.cloud.run.v2.Probe.Builder,
+            com.google.cloud.run.v2.ProbeOrBuilder>
         getStartupProbeFieldBuilder() {
       if (startupProbeBuilder_ == null) {
-        startupProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.Probe, com.google.cloud.run.v2.Probe.Builder, com.google.cloud.run.v2.ProbeOrBuilder>(
-                getStartupProbe(),
-                getParentForChildren(),
-                isClean());
+        startupProbeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.Probe,
+                com.google.cloud.run.v2.Probe.Builder,
+                com.google.cloud.run.v2.ProbeOrBuilder>(
+                getStartupProbe(), getParentForChildren(), isClean());
         startupProbe_ = null;
       }
       return startupProbeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3790,12 +4157,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();
   }
@@ -3804,27 +4171,27 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3839,6 +4206,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.run.v2.Container getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java
similarity index 89%
rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java
rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java
index 0d91a79d8f66..0f3d15674301 100644
--- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java
+++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java
@@ -1,55 +1,83 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/run/v2/k8s.min.proto
 
 package com.google.cloud.run.v2;
 
-public interface ContainerOrBuilder extends
+public interface ContainerOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Container)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Name of the container specified as a DNS_LABEL.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the container specified as a DNS_LABEL.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The image. */ java.lang.String getImage(); /** + * + * *
    * Required. URL of the Container image in Google Container Registry or Google Artifact
    * Registry. More info: https://kubernetes.io/docs/concepts/containers/images
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for image. */ - com.google.protobuf.ByteString - getImageBytes(); + com.google.protobuf.ByteString getImageBytes(); /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -63,11 +91,13 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string command = 3; + * * @return A list containing the command. */ - java.util.List - getCommandList(); + java.util.List getCommandList(); /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -81,10 +111,13 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string command = 3; + * * @return The count of command. */ int getCommandCount(); /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -98,11 +131,14 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string command = 3; + * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** + * + * *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
@@ -116,13 +152,15 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string command = 3; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString - getCommandBytes(int index); + com.google.protobuf.ByteString getCommandBytes(int index); /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -136,11 +174,13 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string args = 4; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -154,10 +194,13 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string args = 4; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -171,11 +214,14 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string args = 4; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
@@ -189,22 +235,25 @@ public interface ContainerOrBuilder extends
    * 
* * repeated string args = 4; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - java.util.List - getEnvList(); + java.util.List getEnvList(); /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -213,6 +262,8 @@ public interface ContainerOrBuilder extends */ com.google.cloud.run.v2.EnvVar getEnv(int index); /** + * + * *
    * List of environment variables to set in the container.
    * 
@@ -221,25 +272,29 @@ public interface ContainerOrBuilder extends */ int getEnvCount(); /** + * + * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - java.util.List - getEnvOrBuilderList(); + java.util.List getEnvOrBuilderList(); /** + * + * *
    * List of environment variables to set in the container.
    * 
* * repeated .google.cloud.run.v2.EnvVar env = 5; */ - com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder( - int index); + com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index); /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -247,10 +302,13 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; + * * @return Whether the resources field is set. */ boolean hasResources(); /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -258,10 +316,13 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; + * * @return The resources. */ com.google.cloud.run.v2.ResourceRequirements getResources(); /** + * + * *
    * Compute Resource requirements by this container.
    * More info:
@@ -273,6 +334,8 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
   com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuilder();
 
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -283,9 +346,10 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  java.util.List 
-      getPortsList();
+  java.util.List getPortsList();
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -298,6 +362,8 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    */
   com.google.cloud.run.v2.ContainerPort getPorts(int index);
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -310,6 +376,8 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    */
   int getPortsCount();
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -320,9 +388,10 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  java.util.List 
-      getPortsOrBuilderList();
+  java.util.List getPortsOrBuilderList();
   /**
+   *
+   *
    * 
    * List of ports to expose from the container. Only a single port can be
    * specified. The specified ports must be listening on all interfaces
@@ -333,19 +402,21 @@ com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(
    *
    * repeated .google.cloud.run.v2.ContainerPort ports = 7;
    */
-  com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(
-      int index);
+  com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Volume to mount into the container's filesystem.
    * 
* * repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8; */ - java.util.List - getVolumeMountsList(); + java.util.List getVolumeMountsList(); /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -354,6 +425,8 @@ com.google.cloud.run.v2.ContainerPortOrBuilder getPortsOrBuilder( */ com.google.cloud.run.v2.VolumeMount getVolumeMounts(int index); /** + * + * *
    * Volume to mount into the container's filesystem.
    * 
@@ -362,25 +435,30 @@ 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); /** + * + * *
    * Container's working directory.
    * If not specified, the container runtime's default will be used, which
@@ -388,10 +466,13 @@ com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(
    * 
* * string working_dir = 9; + * * @return The workingDir. */ java.lang.String getWorkingDir(); /** + * + * *
    * Container's working directory.
    * If not specified, the container runtime's default will be used, which
@@ -399,12 +480,14 @@ com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(
    * 
* * string working_dir = 9; + * * @return The bytes for workingDir. */ - com.google.protobuf.ByteString - getWorkingDirBytes(); + com.google.protobuf.ByteString getWorkingDirBytes(); /** + * + * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -413,10 +496,13 @@ com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; + * * @return Whether the livenessProbe field is set. */ boolean hasLivenessProbe(); /** + * + * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -425,10 +511,13 @@ com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; + * * @return The livenessProbe. */ com.google.cloud.run.v2.Probe getLivenessProbe(); /** + * + * *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
@@ -441,6 +530,8 @@ com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(
   com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
@@ -451,10 +542,13 @@ com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(
    * 
* * .google.cloud.run.v2.Probe startup_probe = 11; + * * @return Whether the startupProbe field is set. */ boolean hasStartupProbe(); /** + * + * *
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
@@ -465,10 +559,13 @@ com.google.cloud.run.v2.VolumeMountOrBuilder getVolumeMountsOrBuilder(
    * 
* * .google.cloud.run.v2.Probe startup_probe = 11; + * * @return The startupProbe. */ com.google.cloud.run.v2.Probe getStartupProbe(); /** + * + * *
    * Startup probe of application within the container.
    * All other probes are disabled if a startup probe is provided, until it
diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java
similarity index 67%
rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java
rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java
index 8aab1ae3d135..fc52e2f3d4cb 100644
--- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java
+++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPort.java
@@ -1,62 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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; } - 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 @@ -65,30 +87,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 { @@ -99,12 +121,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 @@ -113,6 +138,7 @@ public int getContainerPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,8 +150,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_); } @@ -145,8 +170,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -156,17 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,130 +209,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_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 @@ -343,7 +370,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(); @@ -354,38 +382,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; @@ -427,22 +456,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 24: { - containerPort_ = input.readInt32(); - - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: + { + containerPort_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,19 +487,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; @@ -476,21 +510,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 { @@ -498,70 +533,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 @@ -569,39 +614,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); } @@ -611,12 +662,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(); } @@ -625,27 +676,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +711,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ContainerPort getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java similarity index 56% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java index 10acaadf2f91..20e42eb63669 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerPortOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.java similarity index 69% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.java index 2bb9c7f2035f..60fc6a38bd5b 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequest.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/job.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for creating a Job.
  * 
* * Protobuf type {@code google.cloud.run.v2.CreateJobRequest} */ -public final class CreateJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.CreateJobRequest) CreateJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateJobRequest.newBuilder() to construct. private CreateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateJobRequest() { parent_ = ""; jobId_ = ""; @@ -26,38 +44,44 @@ private CreateJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_CreateJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_CreateJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CreateJobRequest.class, com.google.cloud.run.v2.CreateJobRequest.Builder.class); + com.google.cloud.run.v2.CreateJobRequest.class, + com.google.cloud.run.v2.CreateJobRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The location and project in which this Job should be created.
    * Format: projects/{project}/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 @@ -66,30 +90,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 Job should be created.
    * Format: projects/{project}/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 { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int JOB_FIELD_NUMBER = 2; private com.google.cloud.run.v2.Job job_; /** + * + * *
    * Required. The Job instance to create.
    * 
* * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ @java.lang.Override @@ -112,11 +141,14 @@ public boolean hasJob() { return job_ != null; } /** + * + * *
    * Required. The Job instance to create.
    * 
* * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ @java.lang.Override @@ -124,6 +156,8 @@ public com.google.cloud.run.v2.Job getJob() { return job_ == null ? com.google.cloud.run.v2.Job.getDefaultInstance() : job_; } /** + * + * *
    * Required. The Job instance to create.
    * 
@@ -138,12 +172,15 @@ public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { public static final int JOB_ID_FIELD_NUMBER = 3; private volatile java.lang.Object jobId_; /** + * + * *
    * Required. The unique identifier for the Job. The name of the job becomes
    * {parent}/jobs/{job_id}.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ @java.lang.Override @@ -152,30 +189,30 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** + * + * *
    * Required. The unique identifier for the Job. The name of the job becomes
    * {parent}/jobs/{job_id}.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -186,12 +223,15 @@ public java.lang.String getJobId() { 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 @@ -200,6 +240,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -238,15 +278,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (job_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -256,24 +294,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.CreateJobRequest)) { return super.equals(obj); } com.google.cloud.run.v2.CreateJobRequest other = (com.google.cloud.run.v2.CreateJobRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasJob() != other.hasJob()) return false; if (hasJob()) { - if (!getJob() - .equals(other.getJob())) return false; + if (!getJob().equals(other.getJob())) return false; } - if (!getJobId() - .equals(other.getJobId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (!getJobId().equals(other.getJobId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -294,137 +328,142 @@ public int hashCode() { hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.CreateJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.CreateJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( com.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.CreateJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.CreateJobRequest parseFrom( - byte[] data, - com.google.protobuf.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.CreateJobRequest 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.CreateJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.CreateJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.CreateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.CreateJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.CreateJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.CreateJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.CreateJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Job.
    * 
* * Protobuf type {@code google.cloud.run.v2.CreateJobRequest} */ - public static final class Builder extends - com.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.CreateJobRequest) com.google.cloud.run.v2.CreateJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_CreateJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_CreateJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.CreateJobRequest.class, com.google.cloud.run.v2.CreateJobRequest.Builder.class); + com.google.cloud.run.v2.CreateJobRequest.class, + com.google.cloud.run.v2.CreateJobRequest.Builder.class); } // Construct using com.google.cloud.run.v2.CreateJobRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_CreateJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_CreateJobRequest_descriptor; } @java.lang.Override @@ -465,7 +504,8 @@ public com.google.cloud.run.v2.CreateJobRequest build() { @java.lang.Override public com.google.cloud.run.v2.CreateJobRequest buildPartial() { - com.google.cloud.run.v2.CreateJobRequest result = new com.google.cloud.run.v2.CreateJobRequest(this); + com.google.cloud.run.v2.CreateJobRequest result = + new com.google.cloud.run.v2.CreateJobRequest(this); result.parent_ = parent_; if (jobBuilder_ == null) { result.job_ = job_; @@ -482,38 +522,39 @@ public com.google.cloud.run.v2.CreateJobRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.CreateJobRequest) { - return mergeFrom((com.google.cloud.run.v2.CreateJobRequest)other); + return mergeFrom((com.google.cloud.run.v2.CreateJobRequest) other); } else { super.mergeFrom(other); return this; @@ -562,34 +603,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getJobFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - jobId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + jobId_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -602,19 +646,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The location and project in which this Job should be created.
      * Format: projects/{project}/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; @@ -623,21 +671,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location and project in which this Job should be created.
      * Format: projects/{project}/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 { @@ -645,57 +696,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location and project in which this Job should be created.
      * Format: projects/{project}/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 Job should be created.
      * Format: projects/{project}/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 Job should be created.
      * Format: projects/{project}/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; @@ -703,24 +767,33 @@ public Builder setParentBytes( private com.google.cloud.run.v2.Job job_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> jobBuilder_; + com.google.cloud.run.v2.Job, + com.google.cloud.run.v2.Job.Builder, + com.google.cloud.run.v2.JobOrBuilder> + jobBuilder_; /** + * + * *
      * Required. The Job instance to create.
      * 
* * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; } /** + * + * *
      * Required. The Job instance to create.
      * 
* * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ public com.google.cloud.run.v2.Job getJob() { @@ -731,6 +804,8 @@ public com.google.cloud.run.v2.Job getJob() { } } /** + * + * *
      * Required. The Job instance to create.
      * 
@@ -751,14 +826,15 @@ public Builder setJob(com.google.cloud.run.v2.Job value) { return this; } /** + * + * *
      * Required. The Job instance to create.
      * 
* * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setJob( - com.google.cloud.run.v2.Job.Builder builderForValue) { + public Builder setJob(com.google.cloud.run.v2.Job.Builder builderForValue) { if (jobBuilder_ == null) { job_ = builderForValue.build(); onChanged(); @@ -769,6 +845,8 @@ public Builder setJob( return this; } /** + * + * *
      * Required. The Job instance to create.
      * 
@@ -778,8 +856,7 @@ public Builder setJob( public Builder mergeJob(com.google.cloud.run.v2.Job value) { if (jobBuilder_ == null) { if (job_ != null) { - job_ = - com.google.cloud.run.v2.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + job_ = com.google.cloud.run.v2.Job.newBuilder(job_).mergeFrom(value).buildPartial(); } else { job_ = value; } @@ -791,6 +868,8 @@ public Builder mergeJob(com.google.cloud.run.v2.Job value) { return this; } /** + * + * *
      * Required. The Job instance to create.
      * 
@@ -809,6 +888,8 @@ public Builder clearJob() { return this; } /** + * + * *
      * Required. The Job instance to create.
      * 
@@ -816,11 +897,13 @@ public Builder clearJob() { * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.run.v2.Job.Builder getJobBuilder() { - + onChanged(); return getJobFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Job instance to create.
      * 
@@ -831,11 +914,12 @@ public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { return jobBuilder_.getMessageOrBuilder(); } else { - return job_ == null ? - com.google.cloud.run.v2.Job.getDefaultInstance() : job_; + return job_ == null ? com.google.cloud.run.v2.Job.getDefaultInstance() : job_; } } /** + * + * *
      * Required. The Job instance to create.
      * 
@@ -843,14 +927,16 @@ public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> + com.google.cloud.run.v2.Job, + com.google.cloud.run.v2.Job.Builder, + com.google.cloud.run.v2.JobOrBuilder> getJobFieldBuilder() { if (jobBuilder_ == null) { - jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder>( - getJob(), - getParentForChildren(), - isClean()); + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Job, + com.google.cloud.run.v2.Job.Builder, + com.google.cloud.run.v2.JobOrBuilder>(getJob(), getParentForChildren(), isClean()); job_ = null; } return jobBuilder_; @@ -858,19 +944,21 @@ public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { private java.lang.Object jobId_ = ""; /** + * + * *
      * Required. The unique identifier for the Job. The name of the job becomes
      * {parent}/jobs/{job_id}.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -879,21 +967,22 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The unique identifier for the Job. The name of the job becomes
      * {parent}/jobs/{job_id}.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -901,70 +990,80 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The unique identifier for the Job. The name of the job becomes
      * {parent}/jobs/{job_id}.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId( - java.lang.String value) { + public Builder setJobId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the Job. The name of the job becomes
      * {parent}/jobs/{job_id}.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** + * + * *
      * Required. The unique identifier for the Job. The name of the job becomes
      * {parent}/jobs/{job_id}.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes( - com.google.protobuf.ByteString value) { + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = 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 @@ -972,39 +1071,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); } @@ -1014,12 +1119,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.CreateJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.CreateJobRequest) private static final com.google.cloud.run.v2.CreateJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.CreateJobRequest(); } @@ -1028,27 +1133,27 @@ public static com.google.cloud.run.v2.CreateJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1063,6 +1168,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.CreateJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java index 0684b88e496e..5632468e5076 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateJobRequestOrBuilder.java @@ -1,53 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/job.proto package com.google.cloud.run.v2; -public interface CreateJobRequestOrBuilder extends +public interface CreateJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.CreateJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The location and project in which this Job should be created.
    * Format: projects/{project}/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 Job should be created.
    * Format: projects/{project}/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 Job instance to create.
    * 
* * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ boolean hasJob(); /** + * + * *
    * Required. The Job instance to create.
    * 
* * .google.cloud.run.v2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ com.google.cloud.run.v2.Job getJob(); /** + * + * *
    * Required. The Job instance to create.
    * 
@@ -57,34 +90,42 @@ public interface CreateJobRequestOrBuilder extends com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder(); /** + * + * *
    * Required. The unique identifier for the Job. The name of the job becomes
    * {parent}/jobs/{job_id}.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ java.lang.String getJobId(); /** + * + * *
    * Required. The unique identifier for the Job. The name of the job becomes
    * {parent}/jobs/{job_id}.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - com.google.protobuf.ByteString - getJobIdBytes(); + com.google.protobuf.ByteString getJobIdBytes(); /** + * + * *
    * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java similarity index 69% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java index add7d779e581..c5fa22173f41 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequest.java +++ b/java-run/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,39 +44,45 @@ 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; } - 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/{project}/locations/{location}
    * Only lowercase characters, digits, and hyphens.
    * 
* - * 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 @@ -67,31 +91,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 in which this service should be created.
    * Format: projects/{project}/locations/{location}
    * Only lowercase characters, digits, and hyphens.
    * 
* - * 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 { @@ -102,11 +128,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 @@ -114,11 +144,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 @@ -126,11 +160,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() { @@ -140,6 +177,8 @@ 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. It must begin with letter,
    * and may not end with hyphen; must contain fewer than 50 characters.
@@ -147,6 +186,7 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() {
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The serviceId. */ @java.lang.Override @@ -155,14 +195,15 @@ 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. It must begin with letter,
    * and may not end with hyphen; must contain fewer than 50 characters.
@@ -170,16 +211,15 @@ public java.lang.String getServiceId() {
    * 
* * 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 { @@ -190,12 +230,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 @@ -204,6 +247,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -242,15 +285,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -260,24 +301,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,137 +336,142 @@ 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) + getUnknownFields().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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,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_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 @@ -469,7 +512,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_; @@ -486,38 +530,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; @@ -566,34 +611,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getServiceFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - serviceId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + serviceId_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -606,20 +654,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The location and project in which this service should be created.
      * Format: projects/{project}/locations/{location}
      * Only lowercase characters, digits, and hyphens.
      * 
* - * 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; @@ -628,22 +680,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location and project in which this service should be created.
      * Format: projects/{project}/locations/{location}
      * Only lowercase characters, digits, and hyphens.
      * 
* - * 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 { @@ -651,60 +706,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location and project in which this service should be created.
      * Format: projects/{project}/locations/{location}
      * Only lowercase characters, digits, and hyphens.
      * 
* - * 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/{project}/locations/{location}
      * Only lowercase characters, digits, and hyphens.
      * 
* - * 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/{project}/locations/{location}
      * Only lowercase characters, digits, and hyphens.
      * 
* - * 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; @@ -712,24 +780,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() { @@ -740,11 +819,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) { @@ -760,14 +842,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(); @@ -778,17 +862,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; } @@ -800,11 +887,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) { @@ -818,48 +908,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_; @@ -867,6 +968,8 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { private java.lang.Object serviceId_ = ""; /** + * + * *
      * Required. The unique identifier for the Service. It must begin with letter,
      * and may not end with hyphen; must contain fewer than 50 characters.
@@ -874,13 +977,13 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() {
      * 
* * 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; @@ -889,6 +992,8 @@ public java.lang.String getServiceId() { } } /** + * + * *
      * Required. The unique identifier for the Service. It must begin with letter,
      * and may not end with hyphen; must contain fewer than 50 characters.
@@ -896,15 +1001,14 @@ public java.lang.String getServiceId() {
      * 
* * 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 { @@ -912,6 +1016,8 @@ public java.lang.String getServiceId() { } } /** + * + * *
      * Required. The unique identifier for the Service. It must begin with letter,
      * and may not end with hyphen; must contain fewer than 50 characters.
@@ -919,20 +1025,22 @@ public java.lang.String getServiceId() {
      * 
* * 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. It must begin with letter,
      * and may not end with hyphen; must contain fewer than 50 characters.
@@ -940,15 +1048,18 @@ public Builder setServiceId(
      * 
* * 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. It must begin with letter,
      * and may not end with hyphen; must contain fewer than 50 characters.
@@ -956,29 +1067,32 @@ public Builder clearServiceId() {
      * 
* * 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 @@ -986,39 +1100,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); } @@ -1028,12 +1148,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(); } @@ -1042,27 +1162,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1077,6 +1197,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.CreateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java index 25839e8f1076..6b8f4a596f42 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/CreateServiceRequestOrBuilder.java @@ -1,64 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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/{project}/locations/{location}
    * Only lowercase characters, digits, and hyphens.
    * 
* - * 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/{project}/locations/{location}
    * Only lowercase characters, digits, and hyphens.
    * 
* - * 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. It must begin with letter,
    * and may not end with hyphen; must contain fewer than 50 characters.
@@ -66,10 +104,13 @@ public interface CreateServiceRequestOrBuilder extends
    * 
* * string service_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The serviceId. */ java.lang.String getServiceId(); /** + * + * *
    * Required. The unique identifier for the Service. It must begin with letter,
    * and may not end with hyphen; must contain fewer than 50 characters.
@@ -77,18 +118,21 @@ public interface CreateServiceRequestOrBuilder extends
    * 
* * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.java similarity index 67% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.java index 8661c795e80b..330d7c46fbe6 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequest.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/execution.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for deleting an Execution.
  * 
* * Protobuf type {@code google.cloud.run.v2.DeleteExecutionRequest} */ -public final class DeleteExecutionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.DeleteExecutionRequest) DeleteExecutionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteExecutionRequest.newBuilder() to construct. private DeleteExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteExecutionRequest() { name_ = ""; etag_ = ""; @@ -26,39 +44,45 @@ private DeleteExecutionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteExecutionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.DeleteExecutionRequest.class, com.google.cloud.run.v2.DeleteExecutionRequest.Builder.class); + com.google.cloud.run.v2.DeleteExecutionRequest.class, + com.google.cloud.run.v2.DeleteExecutionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the Execution to delete.
    * Format:
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
    * 
* - * 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 @@ -67,31 +91,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 Execution to delete.
    * Format:
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
    * 
* - * 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 { @@ -102,12 +128,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 @@ -118,12 +147,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 @@ -132,30 +164,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 { @@ -164,6 +196,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -199,8 +231,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_); @@ -213,19 +244,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.DeleteExecutionRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.DeleteExecutionRequest other = (com.google.cloud.run.v2.DeleteExecutionRequest) obj; + com.google.cloud.run.v2.DeleteExecutionRequest other = + (com.google.cloud.run.v2.DeleteExecutionRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,8 +269,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) + getUnknownFields().hashCode(); @@ -249,130 +277,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( com.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.DeleteExecutionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseFrom( - byte[] data, - com.google.protobuf.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.DeleteExecutionRequest 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.DeleteExecutionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.DeleteExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.DeleteExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.DeleteExecutionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.DeleteExecutionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.DeleteExecutionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.DeleteExecutionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 an Execution.
    * 
* * Protobuf type {@code google.cloud.run.v2.DeleteExecutionRequest} */ - public static final class Builder extends - com.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.DeleteExecutionRequest) com.google.cloud.run.v2.DeleteExecutionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.DeleteExecutionRequest.class, com.google.cloud.run.v2.DeleteExecutionRequest.Builder.class); + com.google.cloud.run.v2.DeleteExecutionRequest.class, + com.google.cloud.run.v2.DeleteExecutionRequest.Builder.class); } // Construct using com.google.cloud.run.v2.DeleteExecutionRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; } @java.lang.Override @@ -407,7 +441,8 @@ public com.google.cloud.run.v2.DeleteExecutionRequest build() { @java.lang.Override public com.google.cloud.run.v2.DeleteExecutionRequest buildPartial() { - com.google.cloud.run.v2.DeleteExecutionRequest result = new com.google.cloud.run.v2.DeleteExecutionRequest(this); + com.google.cloud.run.v2.DeleteExecutionRequest result = + new com.google.cloud.run.v2.DeleteExecutionRequest(this); result.name_ = name_; result.validateOnly_ = validateOnly_; result.etag_ = etag_; @@ -419,38 +454,39 @@ public com.google.cloud.run.v2.DeleteExecutionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.DeleteExecutionRequest) { - return mergeFrom((com.google.cloud.run.v2.DeleteExecutionRequest)other); + return mergeFrom((com.google.cloud.run.v2.DeleteExecutionRequest) other); } else { super.mergeFrom(other); return this; @@ -496,27 +532,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -529,20 +569,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Execution to delete.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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; @@ -551,22 +595,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Execution to delete.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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 { @@ -574,73 +621,89 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Execution to delete.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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 Execution to delete.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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 Execution to delete.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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 @@ -648,32 +711,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; @@ -681,19 +750,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; @@ -702,21 +773,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 { @@ -724,64 +796,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); } @@ -791,12 +870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.DeleteExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.DeleteExecutionRequest) private static final com.google.cloud.run.v2.DeleteExecutionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.DeleteExecutionRequest(); } @@ -805,27 +884,27 @@ public static com.google.cloud.run.v2.DeleteExecutionRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,6 +919,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.DeleteExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.java index bdebe44b29ed..fe261de25f32 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteExecutionRequestOrBuilder.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/execution.proto package com.google.cloud.run.v2; -public interface DeleteExecutionRequestOrBuilder extends +public interface DeleteExecutionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.DeleteExecutionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Execution to delete.
    * Format:
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
    * 
* - * 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 Execution to delete.
    * Format:
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
    * 
* - * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.java similarity index 66% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.java index e2dd76338666..d5b667c41a1c 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequest.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/job.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message to delete a Job by its full name.
  * 
* * Protobuf type {@code google.cloud.run.v2.DeleteJobRequest} */ -public final class DeleteJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.DeleteJobRequest) DeleteJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteJobRequest.newBuilder() to construct. private DeleteJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteJobRequest() { name_ = ""; etag_ = ""; @@ -26,38 +44,44 @@ private DeleteJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.DeleteJobRequest.class, com.google.cloud.run.v2.DeleteJobRequest.Builder.class); + com.google.cloud.run.v2.DeleteJobRequest.class, + com.google.cloud.run.v2.DeleteJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full name of the Job.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 @@ -66,30 +90,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 Job.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 { @@ -100,12 +126,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_; /** + * + * *
    * Indicates that the request should be validated without actually
    * deleting any resources.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -116,12 +145,15 @@ public boolean getValidateOnly() { public static final int ETAG_FIELD_NUMBER = 4; 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 = 4; + * * @return The etag. */ @java.lang.Override @@ -130,30 +162,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 = 4; + * * @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 { @@ -162,6 +194,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +206,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_); } @@ -197,8 +229,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -211,19 +242,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.DeleteJobRequest)) { return super.equals(obj); } com.google.cloud.run.v2.DeleteJobRequest other = (com.google.cloud.run.v2.DeleteJobRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,8 +266,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) + getUnknownFields().hashCode(); @@ -247,130 +274,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( com.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.DeleteJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.DeleteJobRequest parseFrom( - byte[] data, - com.google.protobuf.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.DeleteJobRequest 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.DeleteJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.DeleteJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.DeleteJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.DeleteJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.DeleteJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.DeleteJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.DeleteJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Job by its full name.
    * 
* * Protobuf type {@code google.cloud.run.v2.DeleteJobRequest} */ - public static final class Builder extends - com.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.DeleteJobRequest) com.google.cloud.run.v2.DeleteJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.DeleteJobRequest.class, com.google.cloud.run.v2.DeleteJobRequest.Builder.class); + com.google.cloud.run.v2.DeleteJobRequest.class, + com.google.cloud.run.v2.DeleteJobRequest.Builder.class); } // Construct using com.google.cloud.run.v2.DeleteJobRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; } @java.lang.Override @@ -405,7 +438,8 @@ public com.google.cloud.run.v2.DeleteJobRequest build() { @java.lang.Override public com.google.cloud.run.v2.DeleteJobRequest buildPartial() { - com.google.cloud.run.v2.DeleteJobRequest result = new com.google.cloud.run.v2.DeleteJobRequest(this); + com.google.cloud.run.v2.DeleteJobRequest result = + new com.google.cloud.run.v2.DeleteJobRequest(this); result.name_ = name_; result.validateOnly_ = validateOnly_; result.etag_ = etag_; @@ -417,38 +451,39 @@ public com.google.cloud.run.v2.DeleteJobRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.DeleteJobRequest) { - return mergeFrom((com.google.cloud.run.v2.DeleteJobRequest)other); + return mergeFrom((com.google.cloud.run.v2.DeleteJobRequest) other); } else { super.mergeFrom(other); return this; @@ -494,27 +529,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 24: { - validateOnly_ = input.readBool(); - - break; - } // case 24 - case 34: { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: + { + validateOnly_ = input.readBool(); + + break; + } // case 24 + case 34: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -527,19 +566,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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; @@ -548,21 +591,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 { @@ -570,70 +616,86 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -641,32 +703,38 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Indicates that the request should be validated without actually
      * deleting 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 without actually
      * deleting any resources.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { - + validateOnly_ = false; onChanged(); return this; @@ -674,19 +742,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 = 4; + * * @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; @@ -695,21 +765,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 = 4; + * * @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 { @@ -717,64 +788,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 = 4; + * * @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 = 4; + * * @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 = 4; + * * @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); } @@ -784,12 +862,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.DeleteJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.DeleteJobRequest) private static final com.google.cloud.run.v2.DeleteJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.DeleteJobRequest(); } @@ -798,27 +876,27 @@ public static com.google.cloud.run.v2.DeleteJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +911,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.DeleteJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.java index 7451964926d5..138c20f5521a 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteJobRequestOrBuilder.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/job.proto package com.google.cloud.run.v2; -public interface DeleteJobRequestOrBuilder extends +public interface DeleteJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.DeleteJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full name of the Job.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 Job.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 = 3; + * * @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 = 4; + * * @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 = 4; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java similarity index 67% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java index 48f1c7105fca..fd349ed0f395 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequest.java +++ b/java-run/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,39 +46,45 @@ 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;
   }
-  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 @@ -69,31 +93,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 { @@ -104,12 +130,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 @@ -120,12 +149,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 @@ -134,30 +166,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 { @@ -166,6 +198,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,8 +233,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_); @@ -215,19 +246,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,8 +271,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) + getUnknownFields().hashCode(); @@ -251,97 +279,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
@@ -350,33 +385,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,9 +424,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
@@ -411,7 +445,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_;
@@ -423,38 +458,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;
@@ -500,27 +536,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-
-              break;
-            } // case 16
-            case 26: {
-              etag_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+
+                break;
+              } // case 16
+            case 26:
+              {
+                etag_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -533,20 +573,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; @@ -555,22 +599,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 { @@ -578,73 +625,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 @@ -652,32 +715,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; @@ -685,19 +754,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; @@ -706,21 +777,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 { @@ -728,64 +800,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); } @@ -795,12 +874,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(); } @@ -809,27 +888,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,6 +923,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.DeleteRevisionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java index acff02d812e3..52965f1da7c6 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteRevisionRequestOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java similarity index 66% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java index da45e85cfe3f..baf300c1d23c 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequest.java +++ b/java-run/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,38 +44,44 @@ 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; } - 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/{project}/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 @@ -66,30 +90,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/{project}/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 { @@ -100,12 +126,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 @@ -116,12 +145,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 @@ -130,30 +162,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 { @@ -162,6 +194,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +206,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_); } @@ -197,8 +229,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_); @@ -211,19 +242,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,8 +267,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) + getUnknownFields().hashCode(); @@ -247,130 +275,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +418,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 @@ -405,7 +439,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_; @@ -417,38 +452,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; @@ -494,27 +530,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -527,19 +567,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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; @@ -548,21 +592,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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 { @@ -570,70 +617,86 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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/{project}/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/{project}/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 @@ -641,32 +704,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; @@ -674,19 +743,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; @@ -695,21 +766,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 { @@ -717,64 +789,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); } @@ -784,12 +863,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(); } @@ -798,27 +877,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +912,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.DeleteServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java index b8464ebdac19..d9b925eb2bcf 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/DeleteServiceRequestOrBuilder.java +++ b/java-run/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/{project}/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/{project}/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java similarity index 73% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java index a607fd5fa95b..ff7c9a0df2b8 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVar.java @@ -1,62 +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; /** + * + * *
  * 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; } - 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; } @@ -72,32 +93,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 @@ -106,30 +133,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 { @@ -139,6 +166,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
@@ -151,12 +180,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
@@ -169,6 +201,7 @@ public boolean hasValue() {
    * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { @@ -179,8 +212,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; @@ -189,6 +221,8 @@ public java.lang.String getValue() { } } /** + * + * *
    * Variable references $(VAR_NAME) are expanded
    * using the previous defined environment variables in the container and
@@ -201,18 +235,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; } @@ -224,11 +257,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 @@ -236,21 +272,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.
    * 
@@ -260,12 +301,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; @@ -277,8 +319,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_); } @@ -304,8 +345,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -315,24 +357,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: @@ -367,130 +406,134 @@ 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); } // Construct using com.google.cloud.run.v2.EnvVar.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +548,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 @@ -547,38 +590,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; @@ -592,19 +636,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.getUnknownFields()); onChanged(); @@ -632,30 +679,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - valuesCase_ = 2; - values_ = s; - break; - } // case 18 - case 26: { - input.readMessage( - getValueSourceFieldBuilder().getBuilder(), - extensionRegistry); - valuesCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + valuesCase_ = 2; + values_ = s; + break; + } // case 18 + case 26: + { + input.readMessage(getValueSourceFieldBuilder().getBuilder(), extensionRegistry); + valuesCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,12 +714,12 @@ public Builder mergeFrom( } // finally 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() { @@ -680,22 +729,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; @@ -704,21 +754,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 { @@ -726,63 +777,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
@@ -795,6 +855,7 @@ public Builder setNameBytes(
      * 
* * string value = 2; + * * @return Whether the value field is set. */ @java.lang.Override @@ -802,6 +863,8 @@ public boolean hasValue() { return valuesCase_ == 2; } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -814,6 +877,7 @@ public boolean hasValue() {
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -823,8 +887,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; @@ -835,6 +898,8 @@ public java.lang.String getValue() { } } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -847,19 +912,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; } @@ -869,6 +933,8 @@ public java.lang.String getValue() { } } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -881,20 +947,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
@@ -907,6 +975,7 @@ public Builder setValue(
      * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -918,6 +987,8 @@ public Builder clearValue() { return this; } /** + * + * *
      * Variable references $(VAR_NAME) are expanded
      * using the previous defined environment variables in the container and
@@ -930,15 +1001,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(); @@ -946,13 +1017,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 @@ -960,11 +1037,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 @@ -982,6 +1062,8 @@ public com.google.cloud.run.v2.EnvVarSource getValueSource() { } } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1002,14 +1084,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(); @@ -1020,6 +1103,8 @@ public Builder setValueSource( return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1028,10 +1113,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; } @@ -1047,6 +1135,8 @@ public Builder mergeValueSource(com.google.cloud.run.v2.EnvVarSource value) { return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1070,6 +1160,8 @@ public Builder clearValueSource() { return this; } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1080,6 +1172,8 @@ public com.google.cloud.run.v2.EnvVarSource.Builder getValueSourceBuilder() { return getValueSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1098,6 +1192,8 @@ public com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder() { } } /** + * + * *
      * Source for the environment variable's value.
      * 
@@ -1105,26 +1201,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); } @@ -1134,12 +1234,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(); } @@ -1148,27 +1248,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1183,6 +1283,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.EnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java similarity index 80% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java index f0bc095e2865..b0c1be02f033 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java similarity index 66% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java index 115d6419bbdd..67c39e487edb 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSource.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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; } - 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 @@ -62,18 +83,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.
    * 
@@ -86,6 +114,7 @@ public com.google.cloud.run.v2.SecretKeySelectorOrBuilder getSecretKeyRefOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +126,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()); } @@ -112,8 +140,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,7 +150,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); @@ -132,8 +159,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -155,130 +181,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +323,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 @@ -327,38 +358,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; @@ -396,19 +428,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSecretKeyRefFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSecretKeyRefFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,34 +453,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.
      * 
@@ -469,6 +514,8 @@ public Builder setSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value) return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -487,6 +534,8 @@ public Builder setSecretKeyRef( return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -497,7 +546,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; } @@ -509,6 +560,8 @@ public Builder mergeSecretKeyRef(com.google.cloud.run.v2.SecretKeySelector value return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -527,6 +580,8 @@ public Builder clearSecretKeyRef() { return this; } /** + * + * *
      * Selects a secret and a specific version from Cloud Secret Manager.
      * 
@@ -534,11 +589,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.
      * 
@@ -549,11 +606,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.
      * 
@@ -561,21 +621,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); } @@ -585,12 +648,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(); } @@ -599,27 +662,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,6 +697,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.EnvVarSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java similarity index 61% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java index 7209c61f6e37..16d2f245316d 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/EnvVarSourceOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java similarity index 69% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java index 7363e4426ea1..100f3473e774 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.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/execution.proto package com.google.cloud.run.v2; /** + * + * *
  * Execution represents the configuration of a single execution. A execution an
  * immutable resource that references a container image which is run to
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.Execution}
  */
-public final class Execution extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Execution extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Execution)
     ExecutionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Execution.newBuilder() to construct.
   private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Execution() {
     name_ = "";
     uid_ = "";
@@ -32,51 +50,54 @@ private Execution() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Execution();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_Execution_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.ExecutionProto
+        .internal_static_google_cloud_run_v2_Execution_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.ExecutionProto.internal_static_google_cloud_run_v2_Execution_fieldAccessorTable
+    return com.google.cloud.run.v2.ExecutionProto
+        .internal_static_google_cloud_run_v2_Execution_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.Execution.class, com.google.cloud.run.v2.Execution.Builder.class);
+            com.google.cloud.run.v2.Execution.class,
+            com.google.cloud.run.v2.Execution.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The unique name of this Execution.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -85,29 +106,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 Execution.
    * 
* * 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 { @@ -118,6 +139,8 @@ 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 Execution. The value
    * is a UUID4 string and guaranteed to remain unchanged until the resource is
@@ -125,6 +148,7 @@ public java.lang.String getName() {
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -133,14 +157,15 @@ 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 Execution. The value
    * is a UUID4 string and guaranteed to remain unchanged until the resource is
@@ -148,16 +173,15 @@ public java.lang.String getUid() {
    * 
* * 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 { @@ -168,12 +192,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 @@ -182,24 +209,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.ExecutionProto.internal_static_google_cloud_run_v2_Execution_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.ExecutionProto + .internal_static_google_cloud_run_v2_Execution_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_; } @@ -208,6 +234,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
@@ -222,22 +250,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -253,11 +281,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
@@ -273,16 +302,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -298,12 +327,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -311,24 +339,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.ExecutionProto.internal_static_google_cloud_run_v2_Execution_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.ExecutionProto
+                .internal_static_google_cloud_run_v2_Execution_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_;
   }
@@ -337,28 +365,30 @@ public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -366,11 +396,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.
    * 
@@ -378,16 +409,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -395,12 +427,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -410,13 +441,17 @@ public java.lang.String getAnnotationsOrThrow( public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Represents time when the execution was acknowledged by the
    * execution controller. It is not guaranteed to be set in happens-before
    * order across separate operations.
    * 
* - * .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 @@ -424,13 +459,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Represents time when the execution was acknowledged by the
    * execution controller. It is not guaranteed to be set in happens-before
    * order across separate operations.
    * 
* - * .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 @@ -438,13 +477,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Represents time when the execution was acknowledged by the
    * execution controller. It is not guaranteed to be set in happens-before
    * order across separate operations.
    * 
* - * .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() { @@ -454,13 +496,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 22; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. Represents time when the execution started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -468,13 +514,17 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. Represents time when the execution started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -482,13 +532,16 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. Represents time when the execution started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -498,12 +551,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int COMPLETION_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp completionTime_; /** + * + * *
    * Output only. Represents time when the execution was completed. It is not
    * guaranteed to be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completionTime field is set. */ @java.lang.Override @@ -511,25 +569,36 @@ public boolean hasCompletionTime() { return completionTime_ != null; } /** + * + * *
    * Output only. Represents time when the execution was completed. It is not
    * guaranteed to be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompletionTime() { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + return completionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completionTime_; } /** + * + * *
    * Output only. Represents time when the execution was completed. It is not
    * guaranteed to be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { @@ -539,11 +608,15 @@ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { 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 @@ -551,11 +624,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 @@ -563,11 +640,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() { @@ -577,12 +657,16 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 9; 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 = 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 @@ -590,12 +674,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 = 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 @@ -603,12 +691,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 = 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() { @@ -618,13 +709,17 @@ 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. It is only populated as a response to a Delete
    * request.
    * 
* - * .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 @@ -632,13 +727,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 = 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 @@ -646,13 +745,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 = 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() { @@ -662,6 +764,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int LAUNCH_STAGE_FIELD_NUMBER = 11; 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
@@ -670,12 +774,16 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.api.LaunchStage launch_stage = 11; + * * @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
@@ -684,9 +792,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.api.LaunchStage launch_stage = 11; + * * @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; @@ -695,11 +805,16 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int JOB_FIELD_NUMBER = 12; private volatile java.lang.Object job_; /** + * + * *
    * Output only. The name of the parent Job.
    * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The job. */ @java.lang.Override @@ -708,29 +823,31 @@ public java.lang.String getJob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); job_ = s; return s; } } /** + * + * *
    * Output only. The name of the parent Job.
    * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for job. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobBytes() { + public com.google.protobuf.ByteString getJobBytes() { java.lang.Object ref = job_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); job_ = b; return b; } else { @@ -741,6 +858,8 @@ public java.lang.String getJob() { public static final int PARALLELISM_FIELD_NUMBER = 13; private int parallelism_; /** + * + * *
    * Output only. Specifies the maximum desired number of tasks the execution
    * should run at any given time. Must be <= task_count. The actual number of
@@ -751,6 +870,7 @@ public java.lang.String getJob() {
    * 
* * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parallelism. */ @java.lang.Override @@ -761,6 +881,8 @@ public int getParallelism() { public static final int TASK_COUNT_FIELD_NUMBER = 14; private int taskCount_; /** + * + * *
    * Output only. Specifies the desired number of tasks the execution should
    * run. Setting to 1 means that parallelism is limited to 1 and the success of
@@ -770,6 +892,7 @@ public int getParallelism() {
    * 
* * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The taskCount. */ @java.lang.Override @@ -780,11 +903,16 @@ public int getTaskCount() { public static final int TEMPLATE_FIELD_NUMBER = 15; private com.google.cloud.run.v2.TaskTemplate template_; /** + * + * *
    * Output only. The template used to create tasks for this execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the template field is set. */ @java.lang.Override @@ -792,23 +920,34 @@ public boolean hasTemplate() { return template_ != null; } /** + * + * *
    * Output only. The template used to create tasks for this execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The template. */ @java.lang.Override public com.google.cloud.run.v2.TaskTemplate getTemplate() { - return template_ == null ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() + : template_; } /** + * + * *
    * Output only. The template used to create tasks for this execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() { @@ -818,6 +957,8 @@ public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() { public static final int RECONCILING_FIELD_NUMBER = 16; private boolean reconciling_; /** + * + * *
    * Output only. Indicates whether the resource's reconciliation is still in
    * progress. See comments in `Job.reconciling` for additional information on
@@ -825,6 +966,7 @@ public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() {
    * 
* * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -835,76 +977,97 @@ public boolean getReconciling() { public static final int CONDITIONS_FIELD_NUMBER = 17; private java.util.List conditions_; /** + * + * *
    * Output only. The Condition of this Execution, containing its readiness
    * status, and detailed error information in case it did not reach the desired
    * state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. The Condition of this Execution, containing its readiness
    * status, and detailed error information in case it did not reach the desired
    * state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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 Execution, containing its readiness
    * status, and detailed error information in case it did not reach the desired
    * state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. The Condition of this Execution, containing its readiness
    * status, and detailed error information in case it did not reach the desired
    * state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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 Execution, containing its readiness
    * status, and detailed error information in case it did not reach the desired
    * state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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 = 18; private long observedGeneration_; /** + * + * *
    * Output only. The generation of this Execution. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -912,6 +1075,7 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * int64 observed_generation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ @java.lang.Override @@ -922,11 +1086,14 @@ public long getObservedGeneration() { public static final int RUNNING_COUNT_FIELD_NUMBER = 19; private int runningCount_; /** + * + * *
    * Output only. The number of actively running tasks.
    * 
* * int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The runningCount. */ @java.lang.Override @@ -937,11 +1104,14 @@ public int getRunningCount() { public static final int SUCCEEDED_COUNT_FIELD_NUMBER = 20; private int succeededCount_; /** + * + * *
    * Output only. The number of tasks which reached phase Succeeded.
    * 
* * int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The succeededCount. */ @java.lang.Override @@ -952,11 +1122,14 @@ public int getSucceededCount() { public static final int FAILED_COUNT_FIELD_NUMBER = 21; private int failedCount_; /** + * + * *
    * Output only. The number of tasks which reached phase Failed.
    * 
* * int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The failedCount. */ @java.lang.Override @@ -967,12 +1140,15 @@ public int getFailedCount() { 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 @@ -981,30 +1157,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 { @@ -1013,6 +1189,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1024,8 +1201,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_); } @@ -1035,18 +1211,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()); } @@ -1117,95 +1285,78 @@ 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 (completionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCompletionTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCompletionTime()); } 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 (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, launchStage_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, launchStage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(job_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, job_); } if (parallelism_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, parallelism_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, parallelism_); } if (taskCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, taskCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, taskCount_); } if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getTemplate()); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, reconciling_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, conditions_.get(i)); } if (observedGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(18, observedGeneration_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(18, observedGeneration_); } if (runningCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(19, runningCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(19, runningCount_); } if (succeededCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(20, succeededCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(20, succeededCount_); } if (failedCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(21, failedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, failedCount_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getStartTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); @@ -1218,79 +1369,57 @@ public int getSerializedSize() { @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.Execution)) { return super.equals(obj); } com.google.cloud.run.v2.Execution other = (com.google.cloud.run.v2.Execution) 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 (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasCompletionTime() != other.hasCompletionTime()) return false; if (hasCompletionTime()) { - if (!getCompletionTime() - .equals(other.getCompletionTime())) return false; + if (!getCompletionTime().equals(other.getCompletionTime())) 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 (!getJob() - .equals(other.getJob())) return false; - if (getParallelism() - != other.getParallelism()) return false; - if (getTaskCount() - != other.getTaskCount()) return false; + if (!getJob().equals(other.getJob())) return false; + if (getParallelism() != other.getParallelism()) return false; + if (getTaskCount() != other.getTaskCount()) return false; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; - } - if (getReconciling() - != other.getReconciling()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; - if (getObservedGeneration() - != other.getObservedGeneration()) return false; - if (getRunningCount() - != other.getRunningCount()) return false; - if (getSucceededCount() - != other.getSucceededCount()) return false; - if (getFailedCount() - != other.getFailedCount()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getTemplate().equals(other.getTemplate())) return false; + } + if (getReconciling() != other.getReconciling()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getObservedGeneration() != other.getObservedGeneration()) return false; + if (getRunningCount() != other.getRunningCount()) return false; + if (getSucceededCount() != other.getSucceededCount()) return false; + if (getFailedCount() != other.getFailedCount()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1307,8 +1436,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(); @@ -1354,15 +1482,13 @@ public int hashCode() { hash = (53 * hash) + getTemplate().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) + RUNNING_COUNT_FIELD_NUMBER; hash = (53 * hash) + getRunningCount(); hash = (37 * hash) + SUCCEEDED_COUNT_FIELD_NUMBER; @@ -1376,97 +1502,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Execution parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Execution parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Execution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Execution parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.Execution parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Execution parseFrom( com.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.Execution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Execution parseFrom( - byte[] data, - com.google.protobuf.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.Execution 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.Execution parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.Execution 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.Execution parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.Execution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.Execution parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.Execution prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Execution represents the configuration of a single execution. A execution an
    * immutable resource that references a container image which is run to
@@ -1475,59 +1607,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.Execution}
    */
-  public static final class Builder extends
-      com.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.Execution)
       com.google.cloud.run.v2.ExecutionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_Execution_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.ExecutionProto
+          .internal_static_google_cloud_run_v2_Execution_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.ExecutionProto.internal_static_google_cloud_run_v2_Execution_fieldAccessorTable
+      return com.google.cloud.run.v2.ExecutionProto
+          .internal_static_google_cloud_run_v2_Execution_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.Execution.class, com.google.cloud.run.v2.Execution.Builder.class);
+              com.google.cloud.run.v2.Execution.class,
+              com.google.cloud.run.v2.Execution.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.Execution.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1612,9 +1741,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_Execution_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.ExecutionProto
+          .internal_static_google_cloud_run_v2_Execution_descriptor;
     }
 
     @java.lang.Override
@@ -1704,38 +1833,39 @@ public com.google.cloud.run.v2.Execution buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.Execution) {
-        return mergeFrom((com.google.cloud.run.v2.Execution)other);
+        return mergeFrom((com.google.cloud.run.v2.Execution) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1755,10 +1885,8 @@ public Builder mergeFrom(com.google.cloud.run.v2.Execution 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());
       }
@@ -1814,9 +1942,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Execution other) {
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -1864,155 +1993,168 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              uid_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            case 24: {
-              generation_ = input.readInt64();
-
-              break;
-            } // case 24
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              break;
-            } // case 34
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getCompletionTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getExpireTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 82
-            case 88: {
-              launchStage_ = input.readEnum();
-
-              break;
-            } // case 88
-            case 98: {
-              job_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 98
-            case 104: {
-              parallelism_ = input.readInt32();
-
-              break;
-            } // case 104
-            case 112: {
-              taskCount_ = input.readInt32();
-
-              break;
-            } // case 112
-            case 122: {
-              input.readMessage(
-                  getTemplateFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 122
-            case 128: {
-              reconciling_ = input.readBool();
-
-              break;
-            } // case 128
-            case 138: {
-              com.google.cloud.run.v2.Condition m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.Condition.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 138
-            case 144: {
-              observedGeneration_ = input.readInt64();
-
-              break;
-            } // case 144
-            case 152: {
-              runningCount_ = input.readInt32();
-
-              break;
-            } // case 152
-            case 160: {
-              succeededCount_ = input.readInt32();
-
-              break;
-            } // case 160
-            case 168: {
-              failedCount_ = input.readInt32();
-
-              break;
-            } // case 168
-            case 178: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 178
-            case 794: {
-              etag_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 794
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                uid_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            case 24:
+              {
+                generation_ = input.readInt64();
+
+                break;
+              } // case 24
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getCompletionTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 82
+            case 88:
+              {
+                launchStage_ = input.readEnum();
+
+                break;
+              } // case 88
+            case 98:
+              {
+                job_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 98
+            case 104:
+              {
+                parallelism_ = input.readInt32();
+
+                break;
+              } // case 104
+            case 112:
+              {
+                taskCount_ = input.readInt32();
+
+                break;
+              } // case 112
+            case 122:
+              {
+                input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 122
+            case 128:
+              {
+                reconciling_ = input.readBool();
+
+                break;
+              } // case 128
+            case 138:
+              {
+                com.google.cloud.run.v2.Condition m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 138
+            case 144:
+              {
+                observedGeneration_ = input.readInt64();
+
+                break;
+              } // case 144
+            case 152:
+              {
+                runningCount_ = input.readInt32();
+
+                break;
+              } // case 152
+            case 160:
+              {
+                succeededCount_ = input.readInt32();
+
+                break;
+              } // case 160
+            case 168:
+              {
+                failedCount_ = input.readInt32();
+
+                break;
+              } // case 168
+            case 178:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 178
+            case 794:
+              {
+                etag_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 794
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2022,22 +2164,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     * 
+     *
+     *
+     * 
      * Output only. The unique name of this Execution.
      * 
* * 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; @@ -2046,20 +2191,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The unique name of this Execution.
      * 
* * 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 { @@ -2067,54 +2213,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The unique name of this Execution.
      * 
* * 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 Execution.
      * 
* * 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 Execution.
      * 
* * 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; @@ -2122,6 +2275,8 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server assigned unique identifier for the Execution. The value
      * is a UUID4 string and guaranteed to remain unchanged until the resource is
@@ -2129,13 +2284,13 @@ public Builder setNameBytes(
      * 
* * 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; @@ -2144,6 +2299,8 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the Execution. The value
      * is a UUID4 string and guaranteed to remain unchanged until the resource is
@@ -2151,15 +2308,14 @@ public java.lang.String getUid() {
      * 
* * 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 { @@ -2167,6 +2323,8 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the Execution. The value
      * is a UUID4 string and guaranteed to remain unchanged until the resource is
@@ -2174,20 +2332,22 @@ public java.lang.String getUid() {
      * 
* * 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 Execution. The value
      * is a UUID4 string and guaranteed to remain unchanged until the resource is
@@ -2195,15 +2355,18 @@ public Builder setUid(
      * 
* * 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 Execution. The value
      * is a UUID4 string and guaranteed to remain unchanged until the resource is
@@ -2211,29 +2374,32 @@ public Builder clearUid() {
      * 
* * 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 @@ -2241,53 +2407,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(); @@ -2299,6 +2470,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
@@ -2313,22 +2486,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2344,11 +2517,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
@@ -2364,16 +2538,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2389,12 +2564,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2402,11 +2576,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
@@ -2421,23 +2596,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2452,19 +2625,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2479,30 +2653,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();
@@ -2514,28 +2687,30 @@ public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
+     *
+     *
      * 
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -2543,11 +2718,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.
      * 
@@ -2555,16 +2731,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -2572,12 +2749,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2585,108 +2761,124 @@ public java.lang.String getAnnotationsOrThrow( } public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Represents time when the execution was acknowledged by the
      * execution controller. It is not guaranteed to be set in happens-before
      * order across separate operations.
      * 
* - * .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. Represents time when the execution was acknowledged by the
      * execution controller. It is not guaranteed to be set in happens-before
      * order across separate operations.
      * 
* - * .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. Represents time when the execution was acknowledged by the
      * execution controller. It is not guaranteed to be set in happens-before
      * order across separate operations.
      * 
* - * .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) { @@ -2702,16 +2894,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the execution was acknowledged by the
      * execution controller. It is not guaranteed to be set in happens-before
      * order across separate operations.
      * 
* - * .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(); @@ -2722,19 +2917,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Represents time when the execution was acknowledged by the
      * execution controller. It is not guaranteed to be set in happens-before
      * order across separate operations.
      * 
* - * .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; } @@ -2746,13 +2945,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the execution was acknowledged by the
      * execution controller. It is not guaranteed to be set in happens-before
      * order across separate operations.
      * 
* - * .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) { @@ -2766,54 +2969,70 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Represents time when the execution was acknowledged by the
      * execution controller. It is not guaranteed to be set in happens-before
      * order across separate operations.
      * 
* - * .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. Represents time when the execution was acknowledged by the
      * execution controller. It is not guaranteed to be set in happens-before
      * order across separate operations.
      * 
* - * .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. Represents time when the execution was acknowledged by the
      * execution controller. It is not guaranteed to be set in happens-before
      * order across separate operations.
      * 
* - * .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_; @@ -2821,28 +3040,41 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Output only. Represents time when the execution started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Output only. Represents time when the execution started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2853,13 +3085,17 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. Represents time when the execution started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2875,16 +3111,19 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the execution started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -2895,19 +3134,23 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. Represents time when the execution started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -2919,13 +3162,17 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the execution started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -2939,54 +3186,68 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. Represents time when the execution started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Represents time when the execution started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Output only. Represents time when the execution started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 22 [(.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> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -2994,42 +3255,61 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp completionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completionTimeBuilder_; /** + * + * *
      * Output only. Represents time when the execution was completed. It is not
      * guaranteed to be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completionTime field is set. */ public boolean hasCompletionTime() { return completionTimeBuilder_ != null || completionTime_ != null; } /** + * + * *
      * Output only. Represents time when the execution was completed. It is not
      * guaranteed to be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completionTime. */ public com.google.protobuf.Timestamp getCompletionTime() { if (completionTimeBuilder_ == null) { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + return completionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completionTime_; } else { return completionTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Represents time when the execution was completed. It is not
      * guaranteed to be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCompletionTime(com.google.protobuf.Timestamp value) { if (completionTimeBuilder_ == null) { @@ -3045,15 +3325,18 @@ public Builder setCompletionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the execution was completed. It is not
      * guaranteed to be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCompletionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompletionTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (completionTimeBuilder_ == null) { completionTime_ = builderForValue.build(); onChanged(); @@ -3064,18 +3347,24 @@ public Builder setCompletionTime( return this; } /** + * + * *
      * Output only. Represents time when the execution was completed. It is not
      * guaranteed to be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { if (completionTimeBuilder_ == null) { if (completionTime_ != null) { completionTime_ = - com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completionTime_) + .mergeFrom(value) + .buildPartial(); } else { completionTime_ = value; } @@ -3087,12 +3376,16 @@ public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the execution was completed. It is not
      * guaranteed to be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCompletionTime() { if (completionTimeBuilder_ == null) { @@ -3106,51 +3399,67 @@ public Builder clearCompletionTime() { return this; } /** + * + * *
      * Output only. Represents time when the execution was completed. It is not
      * guaranteed to be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { - + onChanged(); return getCompletionTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Represents time when the execution was completed. It is not
      * guaranteed to be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { if (completionTimeBuilder_ != null) { return completionTimeBuilder_.getMessageOrBuilder(); } else { - return completionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + return completionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completionTime_; } } /** + * + * *
      * Output only. Represents time when the execution was completed. It is not
      * guaranteed to be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_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> getCompletionTimeFieldBuilder() { if (completionTimeBuilder_ == null) { - completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompletionTime(), - getParentForChildren(), - isClean()); + completionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompletionTime(), getParentForChildren(), isClean()); completionTime_ = null; } return completionTimeBuilder_; @@ -3158,39 +3467,58 @@ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { 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) { @@ -3206,14 +3534,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(); @@ -3224,17 +3555,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; } @@ -3246,11 +3581,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) { @@ -3264,48 +3603,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_; @@ -3313,42 +3668,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 = 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. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .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. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .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) { @@ -3364,15 +3738,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 = 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(); @@ -3383,18 +3760,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 = 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; } @@ -3406,12 +3787,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 = 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) { @@ -3425,51 +3810,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 = 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. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .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. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .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_; @@ -3477,45 +3878,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 = 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. It is only populated as a response to a Delete
      * request.
      * 
* - * .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. It is only populated as a response to a Delete
      * request.
      * 
* - * .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) { @@ -3531,16 +3951,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 = 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(); @@ -3551,19 +3974,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 = 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; } @@ -3575,13 +4002,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 = 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) { @@ -3595,54 +4026,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 = 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. It is only populated as a response to a Delete
      * request.
      * 
* - * .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. It is only populated as a response to a Delete
      * request.
      * 
* - * .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_; @@ -3650,6 +4097,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
@@ -3658,12 +4107,16 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.api.LaunchStage launch_stage = 11; + * * @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
@@ -3672,16 +4125,19 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.api.LaunchStage launch_stage = 11; + * * @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
@@ -3690,6 +4146,7 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 11; + * * @return The launchStage. */ @java.lang.Override @@ -3699,6 +4156,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
@@ -3707,6 +4166,7 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 11; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -3714,12 +4174,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
@@ -3728,10 +4190,11 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
      * 
* * .google.api.LaunchStage launch_stage = 11; + * * @return This builder for chaining. */ public Builder clearLaunchStage() { - + launchStage_ = 0; onChanged(); return this; @@ -3739,18 +4202,22 @@ public Builder clearLaunchStage() { private java.lang.Object job_ = ""; /** + * + * *
      * Output only. The name of the parent Job.
      * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The job. */ public java.lang.String getJob() { java.lang.Object ref = job_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); job_ = s; return s; @@ -3759,20 +4226,23 @@ public java.lang.String getJob() { } } /** + * + * *
      * Output only. The name of the parent Job.
      * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for job. */ - public com.google.protobuf.ByteString - getJobBytes() { + public com.google.protobuf.ByteString getJobBytes() { java.lang.Object ref = job_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); job_ = b; return b; } else { @@ -3780,61 +4250,76 @@ public java.lang.String getJob() { } } /** + * + * *
      * Output only. The name of the parent Job.
      * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The job to set. * @return This builder for chaining. */ - public Builder setJob( - java.lang.String value) { + public Builder setJob(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + job_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the parent Job.
      * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearJob() { - + job_ = getDefaultInstance().getJob(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the parent Job.
      * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for job to set. * @return This builder for chaining. */ - public Builder setJobBytes( - com.google.protobuf.ByteString value) { + public Builder setJobBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + job_ = value; onChanged(); return this; } - private int parallelism_ ; + private int parallelism_; /** + * + * *
      * Output only. Specifies the maximum desired number of tasks the execution
      * should run at any given time. Must be <= task_count. The actual number of
@@ -3845,6 +4330,7 @@ public Builder setJobBytes(
      * 
* * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parallelism. */ @java.lang.Override @@ -3852,6 +4338,8 @@ public int getParallelism() { return parallelism_; } /** + * + * *
      * Output only. Specifies the maximum desired number of tasks the execution
      * should run at any given time. Must be <= task_count. The actual number of
@@ -3862,16 +4350,19 @@ public int getParallelism() {
      * 
* * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The parallelism to set. * @return This builder for chaining. */ public Builder setParallelism(int value) { - + parallelism_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Specifies the maximum desired number of tasks the execution
      * should run at any given time. Must be <= task_count. The actual number of
@@ -3882,17 +4373,20 @@ public Builder setParallelism(int value) {
      * 
* * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearParallelism() { - + parallelism_ = 0; onChanged(); return this; } - private int taskCount_ ; + private int taskCount_; /** + * + * *
      * Output only. Specifies the desired number of tasks the execution should
      * run. Setting to 1 means that parallelism is limited to 1 and the success of
@@ -3902,6 +4396,7 @@ public Builder clearParallelism() {
      * 
* * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The taskCount. */ @java.lang.Override @@ -3909,6 +4404,8 @@ public int getTaskCount() { return taskCount_; } /** + * + * *
      * Output only. Specifies the desired number of tasks the execution should
      * run. Setting to 1 means that parallelism is limited to 1 and the success of
@@ -3918,16 +4415,19 @@ public int getTaskCount() {
      * 
* * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The taskCount to set. * @return This builder for chaining. */ public Builder setTaskCount(int value) { - + taskCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Specifies the desired number of tasks the execution should
      * run. Setting to 1 means that parallelism is limited to 1 and the success of
@@ -3937,10 +4437,11 @@ public Builder setTaskCount(int value) {
      * 
* * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTaskCount() { - + taskCount_ = 0; onChanged(); return this; @@ -3948,39 +4449,58 @@ public Builder clearTaskCount() { private com.google.cloud.run.v2.TaskTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder> templateBuilder_; + com.google.cloud.run.v2.TaskTemplate, + com.google.cloud.run.v2.TaskTemplate.Builder, + com.google.cloud.run.v2.TaskTemplateOrBuilder> + templateBuilder_; /** + * + * *
      * Output only. The template used to create tasks for this execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** + * + * *
      * Output only. The template used to create tasks for this execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The template. */ public com.google.cloud.run.v2.TaskTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() + : template_; } else { return templateBuilder_.getMessage(); } } /** + * + * *
      * Output only. The template used to create tasks for this execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTemplate(com.google.cloud.run.v2.TaskTemplate value) { if (templateBuilder_ == null) { @@ -3996,14 +4516,17 @@ public Builder setTemplate(com.google.cloud.run.v2.TaskTemplate value) { return this; } /** + * + * *
      * Output only. The template used to create tasks for this execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setTemplate( - com.google.cloud.run.v2.TaskTemplate.Builder builderForValue) { + public Builder setTemplate(com.google.cloud.run.v2.TaskTemplate.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); @@ -4014,17 +4537,23 @@ public Builder setTemplate( return this; } /** + * + * *
      * Output only. The template used to create tasks for this execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeTemplate(com.google.cloud.run.v2.TaskTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.run.v2.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.TaskTemplate.newBuilder(template_) + .mergeFrom(value) + .buildPartial(); } else { template_ = value; } @@ -4036,11 +4565,15 @@ public Builder mergeTemplate(com.google.cloud.run.v2.TaskTemplate value) { return this; } /** + * + * *
      * Output only. The template used to create tasks for this execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -4054,55 +4587,73 @@ public Builder clearTemplate() { return this; } /** + * + * *
      * Output only. The template used to create tasks for this execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.TaskTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The template used to create tasks for this execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null ? - com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() + : template_; } } /** + * + * *
      * Output only. The template used to create tasks for this execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder> + com.google.cloud.run.v2.TaskTemplate, + com.google.cloud.run.v2.TaskTemplate.Builder, + com.google.cloud.run.v2.TaskTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); + templateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskTemplate, + com.google.cloud.run.v2.TaskTemplate.Builder, + com.google.cloud.run.v2.TaskTemplateOrBuilder>( + getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether the resource's reconciliation is still in
      * progress. See comments in `Job.reconciling` for additional information on
@@ -4110,6 +4661,7 @@ public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() {
      * 
* * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -4117,6 +4669,8 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether the resource's reconciliation is still in
      * progress. See comments in `Job.reconciling` for additional information on
@@ -4124,16 +4678,19 @@ public boolean getReconciling() {
      * 
* * bool reconciling = 16 [(.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 `Job.reconciling` for additional information on
@@ -4141,35 +4698,44 @@ public Builder setReconciling(boolean value) {
      * 
* * bool reconciling = 16 [(.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_ & 0x00000004) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000004; - } + } } 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 Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -4179,13 +4745,17 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -4195,13 +4765,17 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.Condition getConditions(int index) { if (conditionsBuilder_ == null) { @@ -4211,16 +4785,19 @@ public com.google.cloud.run.v2.Condition getConditions(int index) { } } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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(); @@ -4234,13 +4811,17 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -4254,13 +4835,17 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { @@ -4276,16 +4861,19 @@ public Builder addConditions(com.google.cloud.run.v2.Condition value) { return this; } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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(); @@ -4299,16 +4887,19 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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()); @@ -4319,13 +4910,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -4339,20 +4934,23 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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); @@ -4360,13 +4958,17 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -4379,13 +4981,17 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -4398,45 +5004,56 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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 Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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 Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -4444,62 +5061,77 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. The Condition of this Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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 Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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 Execution, containing its readiness
      * status, and detailed error information in case it did not reach the desired
      * state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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_ & 0x00000004) != 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_ & 0x00000004) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } - private long observedGeneration_ ; + private long observedGeneration_; /** + * + * *
      * Output only. The generation of this Execution. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -4507,6 +5139,7 @@ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder(
      * 
* * int64 observed_generation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ @java.lang.Override @@ -4514,6 +5147,8 @@ public long getObservedGeneration() { return observedGeneration_; } /** + * + * *
      * Output only. The generation of this Execution. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -4521,16 +5156,19 @@ public long getObservedGeneration() {
      * 
* * int64 observed_generation = 18 [(.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 Execution. See comments in
      * `reconciling` for additional information on reconciliation process in Cloud
@@ -4538,22 +5176,26 @@ public Builder setObservedGeneration(long value) {
      * 
* * int64 observed_generation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearObservedGeneration() { - + observedGeneration_ = 0L; onChanged(); return this; } - private int runningCount_ ; + private int runningCount_; /** + * + * *
      * Output only. The number of actively running tasks.
      * 
* * int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The runningCount. */ @java.lang.Override @@ -4561,42 +5203,51 @@ public int getRunningCount() { return runningCount_; } /** + * + * *
      * Output only. The number of actively running tasks.
      * 
* * int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The runningCount to set. * @return This builder for chaining. */ public Builder setRunningCount(int value) { - + runningCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of actively running tasks.
      * 
* * int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRunningCount() { - + runningCount_ = 0; onChanged(); return this; } - private int succeededCount_ ; + private int succeededCount_; /** + * + * *
      * Output only. The number of tasks which reached phase Succeeded.
      * 
* * int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The succeededCount. */ @java.lang.Override @@ -4604,42 +5255,51 @@ public int getSucceededCount() { return succeededCount_; } /** + * + * *
      * Output only. The number of tasks which reached phase Succeeded.
      * 
* * int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The succeededCount to set. * @return This builder for chaining. */ public Builder setSucceededCount(int value) { - + succeededCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of tasks which reached phase Succeeded.
      * 
* * int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSucceededCount() { - + succeededCount_ = 0; onChanged(); return this; } - private int failedCount_ ; + private int failedCount_; /** + * + * *
      * Output only. The number of tasks which reached phase Failed.
      * 
* * int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The failedCount. */ @java.lang.Override @@ -4647,30 +5307,36 @@ public int getFailedCount() { return failedCount_; } /** + * + * *
      * Output only. The number of tasks which reached phase Failed.
      * 
* * int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The failedCount to set. * @return This builder for chaining. */ public Builder setFailedCount(int value) { - + failedCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of tasks which reached phase Failed.
      * 
* * int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearFailedCount() { - + failedCount_ = 0; onChanged(); return this; @@ -4678,19 +5344,21 @@ public Builder clearFailedCount() { 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; @@ -4699,21 +5367,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 { @@ -4721,64 +5390,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); } @@ -4788,12 +5464,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Execution) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Execution) private static final com.google.cloud.run.v2.Execution DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Execution(); } @@ -4802,27 +5478,27 @@ public static com.google.cloud.run.v2.Execution getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Execution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4837,6 +5513,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Execution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java similarity index 69% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java index cbf17235ef60..f2d527313733 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionEnvironment.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/vendor_settings.proto package com.google.cloud.run.v2; /** + * + * *
  * Alternatives for execution environments.
  * 
* * Protobuf enum {@code google.cloud.run.v2.ExecutionEnvironment} */ -public enum ExecutionEnvironment - implements com.google.protobuf.ProtocolMessageEnum { +public enum ExecutionEnvironment implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified
    * 
@@ -21,6 +39,8 @@ public enum ExecutionEnvironment */ EXECUTION_ENVIRONMENT_UNSPECIFIED(0), /** + * + * *
    * Uses the First Generation environment.
    * 
@@ -29,6 +49,8 @@ public enum ExecutionEnvironment */ EXECUTION_ENVIRONMENT_GEN1(1), /** + * + * *
    * Uses Second Generation environment.
    * 
@@ -40,6 +62,8 @@ public enum ExecutionEnvironment ; /** + * + * *
    * Unspecified
    * 
@@ -48,6 +72,8 @@ public enum ExecutionEnvironment */ public static final int EXECUTION_ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Uses the First Generation environment.
    * 
@@ -56,6 +82,8 @@ public enum ExecutionEnvironment */ public static final int EXECUTION_ENVIRONMENT_GEN1_VALUE = 1; /** + * + * *
    * Uses Second Generation environment.
    * 
@@ -64,7 +92,6 @@ public enum ExecutionEnvironment */ public static final int EXECUTION_ENVIRONMENT_GEN2_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,10 +116,14 @@ public static ExecutionEnvironment valueOf(int value) { */ public static ExecutionEnvironment forNumber(int value) { switch (value) { - case 0: return EXECUTION_ENVIRONMENT_UNSPECIFIED; - case 1: return EXECUTION_ENVIRONMENT_GEN1; - case 2: return EXECUTION_ENVIRONMENT_GEN2; - default: return null; + case 0: + return EXECUTION_ENVIRONMENT_UNSPECIFIED; + case 1: + return EXECUTION_ENVIRONMENT_GEN1; + case 2: + return EXECUTION_ENVIRONMENT_GEN2; + default: + return null; } } @@ -100,28 +131,28 @@ public static ExecutionEnvironment forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionEnvironment> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionEnvironment findValueByNumber(int number) { - return ExecutionEnvironment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionEnvironment findValueByNumber(int number) { + return ExecutionEnvironment.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.run.v2.VendorSettingsProto.getDescriptor().getEnumTypes().get(1); } @@ -130,8 +161,7 @@ public ExecutionEnvironment findValueByNumber(int number) { public static ExecutionEnvironment valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +177,3 @@ private ExecutionEnvironment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.ExecutionEnvironment) } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java similarity index 78% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java index 654c1fbb8857..1523d7e9308a 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.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/execution.proto package com.google.cloud.run.v2; -public interface ExecutionOrBuilder extends +public interface ExecutionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Execution) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The unique name of this Execution.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The unique name of this Execution.
    * 
* * 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 Execution. The value
    * is a UUID4 string and guaranteed to remain unchanged until the resource is
@@ -35,10 +58,13 @@ public interface ExecutionOrBuilder extends
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server assigned unique identifier for the Execution. The value
    * is a UUID4 string and guaranteed to remain unchanged until the resource is
@@ -46,23 +72,28 @@ public interface ExecutionOrBuilder extends
    * 
* * 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
@@ -79,6 +110,8 @@ public interface ExecutionOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -93,15 +126,13 @@ public interface ExecutionOrBuilder 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
@@ -116,9 +147,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
@@ -135,11 +167,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -154,11 +188,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.
    * 
@@ -167,30 +201,31 @@ java.lang.String getLabelsOrThrow( */ int getAnnotationsCount(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -199,208 +234,279 @@ boolean containsAnnotations( */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Output only. Represents time when the execution was acknowledged by the
    * execution controller. It is not guaranteed to be set in happens-before
    * order across separate operations.
    * 
* - * .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. Represents time when the execution was acknowledged by the
    * execution controller. It is not guaranteed to be set in happens-before
    * order across separate operations.
    * 
* - * .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. Represents time when the execution was acknowledged by the
    * execution controller. It is not guaranteed to be set in happens-before
    * order across separate operations.
    * 
* - * .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. Represents time when the execution started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. Represents time when the execution started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. Represents time when the execution started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Represents time when the execution was completed. It is not
    * guaranteed to be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completionTime field is set. */ boolean hasCompletionTime(); /** + * + * *
    * Output only. Represents time when the execution was completed. It is not
    * guaranteed to be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completionTime. */ com.google.protobuf.Timestamp getCompletionTime(); /** + * + * *
    * Output only. Represents time when the execution was completed. It is not
    * guaranteed to be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); /** + * + * *
    * 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. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .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. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .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. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .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. It is only populated as a response to a Delete
    * request.
    * 
* - * .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. It is only populated as a response to a Delete
    * request.
    * 
* - * .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. It is only populated as a response to a Delete
    * request.
    * 
* - * .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(); /** + * + * *
    * 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,10 +515,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 11; + * * @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
@@ -421,31 +530,43 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 11; + * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); /** + * + * *
    * Output only. The name of the parent Job.
    * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The job. */ java.lang.String getJob(); /** + * + * *
    * Output only. The name of the parent Job.
    * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for job. */ - com.google.protobuf.ByteString - getJobBytes(); + com.google.protobuf.ByteString getJobBytes(); /** + * + * *
    * Output only. Specifies the maximum desired number of tasks the execution
    * should run at any given time. Must be <= task_count. The actual number of
@@ -456,11 +577,14 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parallelism. */ int getParallelism(); /** + * + * *
    * Output only. Specifies the desired number of tasks the execution should
    * run. Setting to 1 means that parallelism is limited to 1 and the success of
@@ -470,38 +594,55 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The taskCount. */ int getTaskCount(); /** + * + * *
    * Output only. The template used to create tasks for this execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the template field is set. */ boolean hasTemplate(); /** + * + * *
    * Output only. The template used to create tasks for this execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The template. */ com.google.cloud.run.v2.TaskTemplate getTemplate(); /** + * + * *
    * Output only. The template used to create tasks for this execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder(); /** + * + * *
    * Output only. Indicates whether the resource's reconciliation is still in
    * progress. See comments in `Job.reconciling` for additional information on
@@ -509,65 +650,85 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * bool reconciling = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. The Condition of this Execution, containing its readiness
    * status, and detailed error information in case it did not reach the desired
    * state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. The Condition of this Execution, containing its readiness
    * status, and detailed error information in case it did not reach the desired
    * state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.Condition getConditions(int index); /** + * + * *
    * Output only. The Condition of this Execution, containing its readiness
    * status, and detailed error information in case it did not reach the desired
    * state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. The Condition of this Execution, containing its readiness
    * status, and detailed error information in case it did not reach the desired
    * state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. The Condition of this Execution, containing its readiness
    * status, and detailed error information in case it did not reach the desired
    * state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 17 [(.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 Execution. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -575,59 +736,74 @@ com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * int64 observed_generation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ long getObservedGeneration(); /** + * + * *
    * Output only. The number of actively running tasks.
    * 
* * int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The runningCount. */ int getRunningCount(); /** + * + * *
    * Output only. The number of tasks which reached phase Succeeded.
    * 
* * int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The succeededCount. */ int getSucceededCount(); /** + * + * *
    * Output only. The number of tasks which reached phase Failed.
    * 
* * int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The failedCount. */ int getFailedCount(); /** + * + * *
    * 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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java new file mode 100644 index 000000000000..226471bccadd --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.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/execution.proto + +package com.google.cloud.run.v2; + +public final class ExecutionProto { + private ExecutionProto() {} + + 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_GetExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Execution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Execution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Execution_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Execution_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Execution_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/execution.proto\022\023g" + + "oogle.cloud.run.v2\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\035google/api/l" + + "aunch_stage.proto\032\031google/api/resource.p" + + "roto\032#google/cloud/run/v2/condition.prot" + + "o\032\'google/cloud/run/v2/task_template.pro" + + "to\032#google/longrunning/operations.proto\032" + + "\037google/protobuf/timestamp.proto\"I\n\023GetE" + + "xecutionRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034r" + + "un.googleapis.com/Execution\"\212\001\n\025ListExec" + + "utionsRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034r" + + "un.googleapis.com/Execution\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_delet" + + "ed\030\004 \001(\010\"e\n\026ListExecutionsResponse\0222\n\nex" + + "ecutions\030\001 \003(\0132\036.google.cloud.run.v2.Exe" + + "cution\022\027\n\017next_page_token\030\002 \001(\t\"q\n\026Delet" + + "eExecutionRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034run.googleapis.com/Execution\022\025\n\rvalidat" + + "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\214\t\n\tExecution" + + "\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\022:\n\006labels\030\004 \003(\0132*" + + ".google.cloud.run.v2.Execution.LabelsEnt" + + "ry\022D\n\013annotations\030\005 \003(\0132/.google.cloud.r" + + "un.v2.Execution.AnnotationsEntry\0224\n\013crea" + + "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0223\n\nstart_time\030\026 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0228\n\017completion_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\010 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013expire_time" + + "\030\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "-\n\014launch_stage\030\013 \001(\0162\027.google.api.Launc" + + "hStage\022+\n\003job\030\014 \001(\tB\036\340A\003\372A\030\n\026run.googlea" + + "pis.com/Job\022\030\n\013parallelism\030\r \001(\005B\003\340A\003\022\027\n" + + "\ntask_count\030\016 \001(\005B\003\340A\003\0228\n\010template\030\017 \001(\013" + + "2!.google.cloud.run.v2.TaskTemplateB\003\340A\003" + + "\022\030\n\013reconciling\030\020 \001(\010B\003\340A\003\0227\n\nconditions" + + "\030\021 \003(\0132\036.google.cloud.run.v2.ConditionB\003" + + "\340A\003\022 \n\023observed_generation\030\022 \001(\003B\003\340A\003\022\032\n" + + "\rrunning_count\030\023 \001(\005B\003\340A\003\022\034\n\017succeeded_c" + + "ount\030\024 \001(\005B\003\340A\003\022\031\n\014failed_count\030\025 \001(\005B\003\340" + + "A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotati" + + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":o\352Al\n\034run.googleapis.com/Execution\022Ipro" + + "jects/{project}/locations/{location}/job" + + "s/{job}/executions/{execution}R\001\0012\350\004\n\nEx" + + "ecutions\022\236\001\n\014GetExecution\022(.google.cloud" + + ".run.v2.GetExecutionRequest\032\036.google.clo" + + "ud.run.v2.Execution\"D\202\323\344\223\0027\0225/v2/{name=p" + + "rojects/*/locations/*/jobs/*/executions/" + + "*}\332A\004name\022\261\001\n\016ListExecutions\022*.google.cl" + + "oud.run.v2.ListExecutionsRequest\032+.googl" + + "e.cloud.run.v2.ListExecutionsResponse\"F\202" + + "\323\344\223\0027\0225/v2/{parent=projects/*/locations/" + + "*/jobs/*}/executions\332A\006parent\022\274\001\n\017Delete" + + "Execution\022+.google.cloud.run.v2.DeleteEx" + + "ecutionRequest\032\035.google.longrunning.Oper" + + "ation\"]\202\323\344\223\0027*5/v2/{name=projects/*/loca" + + "tions/*/jobs/*/executions/*}\332A\004name\312A\026\n\t" + + "Execution\022\tExecution\032F\312A\022run.googleapis." + + "com\322A.https://www.googleapis.com/auth/cl" + + "oud-platformBc\n\027com.google.cloud.run.v2B" + + "\016ExecutionProtoP\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.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.TaskTemplateProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor, + new java.lang.String[] { + "Executions", "NextPageToken", + }); + internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_run_v2_Execution_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_Execution_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Execution_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "Generation", + "Labels", + "Annotations", + "CreateTime", + "StartTime", + "CompletionTime", + "UpdateTime", + "DeleteTime", + "ExpireTime", + "LaunchStage", + "Job", + "Parallelism", + "TaskCount", + "Template", + "Reconciling", + "Conditions", + "ObservedGeneration", + "RunningCount", + "SucceededCount", + "FailedCount", + "Etag", + }); + internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Execution_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Execution_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_Execution_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Execution_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Execution_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Execution_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.TaskTemplateProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java similarity index 69% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java index 17e2fb129535..8f4c0013e528 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReference.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/job.proto package com.google.cloud.run.v2; /** + * + * *
  * Reference to an Execution. Use /Executions.GetExecution with the given name
  * to get full execution including the latest status.
@@ -11,52 +28,57 @@
  *
  * Protobuf type {@code google.cloud.run.v2.ExecutionReference}
  */
-public final class ExecutionReference extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ExecutionReference extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ExecutionReference)
     ExecutionReferenceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ExecutionReference.newBuilder() to construct.
   private ExecutionReference(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ExecutionReference() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExecutionReference();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ExecutionReference_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.JobProto
+        .internal_static_google_cloud_run_v2_ExecutionReference_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ExecutionReference_fieldAccessorTable
+    return com.google.cloud.run.v2.JobProto
+        .internal_static_google_cloud_run_v2_ExecutionReference_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.ExecutionReference.class, com.google.cloud.run.v2.ExecutionReference.Builder.class);
+            com.google.cloud.run.v2.ExecutionReference.class,
+            com.google.cloud.run.v2.ExecutionReference.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Name of the execution.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -65,29 +87,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 execution.
    * 
* * string name = 1 [(.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 { @@ -98,11 +120,14 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Creation timestamp of the execution.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -110,11 +135,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Creation timestamp of the execution.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ @java.lang.Override @@ -122,6 +150,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Creation timestamp of the execution.
    * 
@@ -136,11 +166,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int COMPLETION_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp completionTime_; /** + * + * *
    * Creation timestamp of the execution.
    * 
* * .google.protobuf.Timestamp completion_time = 3; + * * @return Whether the completionTime field is set. */ @java.lang.Override @@ -148,18 +181,25 @@ public boolean hasCompletionTime() { return completionTime_ != null; } /** + * + * *
    * Creation timestamp of the execution.
    * 
* * .google.protobuf.Timestamp completion_time = 3; + * * @return The completionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompletionTime() { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + return completionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completionTime_; } /** + * + * *
    * Creation timestamp of the execution.
    * 
@@ -172,6 +212,7 @@ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,8 +224,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_); } @@ -207,12 +247,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (completionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCompletionTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCompletionTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,24 +260,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.ExecutionReference)) { return super.equals(obj); } - com.google.cloud.run.v2.ExecutionReference other = (com.google.cloud.run.v2.ExecutionReference) obj; + com.google.cloud.run.v2.ExecutionReference other = + (com.google.cloud.run.v2.ExecutionReference) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) 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 (hasCompletionTime() != other.hasCompletionTime()) return false; if (hasCompletionTime()) { - if (!getCompletionTime() - .equals(other.getCompletionTime())) return false; + if (!getCompletionTime().equals(other.getCompletionTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -267,97 +303,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ExecutionReference parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ExecutionReference parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ExecutionReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ExecutionReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ExecutionReference parseFrom( com.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.ExecutionReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ExecutionReference parseFrom( - byte[] data, - com.google.protobuf.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.ExecutionReference 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.ExecutionReference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ExecutionReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ExecutionReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ExecutionReference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ExecutionReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.ExecutionReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.ExecutionReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Reference to an Execution. Use /Executions.GetExecution with the given name
    * to get full execution including the latest status.
@@ -365,33 +408,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.ExecutionReference}
    */
-  public static final class Builder extends
-      com.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.ExecutionReference)
       com.google.cloud.run.v2.ExecutionReferenceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ExecutionReference_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.JobProto
+          .internal_static_google_cloud_run_v2_ExecutionReference_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ExecutionReference_fieldAccessorTable
+      return com.google.cloud.run.v2.JobProto
+          .internal_static_google_cloud_run_v2_ExecutionReference_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.ExecutionReference.class, com.google.cloud.run.v2.ExecutionReference.Builder.class);
+              com.google.cloud.run.v2.ExecutionReference.class,
+              com.google.cloud.run.v2.ExecutionReference.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.ExecutionReference.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -413,9 +455,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ExecutionReference_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.JobProto
+          .internal_static_google_cloud_run_v2_ExecutionReference_descriptor;
     }
 
     @java.lang.Override
@@ -434,7 +476,8 @@ public com.google.cloud.run.v2.ExecutionReference build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.ExecutionReference buildPartial() {
-      com.google.cloud.run.v2.ExecutionReference result = new com.google.cloud.run.v2.ExecutionReference(this);
+      com.google.cloud.run.v2.ExecutionReference result =
+          new com.google.cloud.run.v2.ExecutionReference(this);
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
         result.createTime_ = createTime_;
@@ -454,38 +497,39 @@ public com.google.cloud.run.v2.ExecutionReference buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ExecutionReference) {
-        return mergeFrom((com.google.cloud.run.v2.ExecutionReference)other);
+        return mergeFrom((com.google.cloud.run.v2.ExecutionReference) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -530,31 +574,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getCompletionTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getCompletionTimeFieldBuilder().getBuilder(), extensionRegistry);
 
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -567,18 +611,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Name of the execution.
      * 
* * string name = 1 [(.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; @@ -587,20 +633,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the execution.
      * 
* * string name = 1 [(.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 { @@ -608,54 +655,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the execution.
      * 
* * string name = 1 [(.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; } /** + * + * *
      * Name of the execution.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name of the execution.
      * 
* * string name = 1 [(.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; @@ -663,34 +717,47 @@ public Builder setNameBytes( 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_; /** + * + * *
      * Creation timestamp of the execution.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Creation timestamp of the execution.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @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(); } } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -711,14 +778,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Creation timestamp of the execution.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - 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(); @@ -729,6 +797,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -739,7 +809,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -751,6 +821,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -769,6 +841,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -776,11 +850,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 2; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -791,11 +867,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -803,14 +882,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -818,34 +900,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp completionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completionTimeBuilder_; /** + * + * *
      * Creation timestamp of the execution.
      * 
* * .google.protobuf.Timestamp completion_time = 3; + * * @return Whether the completionTime field is set. */ public boolean hasCompletionTime() { return completionTimeBuilder_ != null || completionTime_ != null; } /** + * + * *
      * Creation timestamp of the execution.
      * 
* * .google.protobuf.Timestamp completion_time = 3; + * * @return The completionTime. */ public com.google.protobuf.Timestamp getCompletionTime() { if (completionTimeBuilder_ == null) { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + return completionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completionTime_; } else { return completionTimeBuilder_.getMessage(); } } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -866,14 +961,15 @@ public Builder setCompletionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Creation timestamp of the execution.
      * 
* * .google.protobuf.Timestamp completion_time = 3; */ - public Builder setCompletionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompletionTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (completionTimeBuilder_ == null) { completionTime_ = builderForValue.build(); onChanged(); @@ -884,6 +980,8 @@ public Builder setCompletionTime( return this; } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -894,7 +992,9 @@ public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { if (completionTimeBuilder_ == null) { if (completionTime_ != null) { completionTime_ = - com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completionTime_) + .mergeFrom(value) + .buildPartial(); } else { completionTime_ = value; } @@ -906,6 +1006,8 @@ public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -924,6 +1026,8 @@ public Builder clearCompletionTime() { return this; } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -931,11 +1035,13 @@ public Builder clearCompletionTime() { * .google.protobuf.Timestamp completion_time = 3; */ public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { - + onChanged(); return getCompletionTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -946,11 +1052,14 @@ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { if (completionTimeBuilder_ != null) { return completionTimeBuilder_.getMessageOrBuilder(); } else { - return completionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + return completionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completionTime_; } } /** + * + * *
      * Creation timestamp of the execution.
      * 
@@ -958,21 +1067,24 @@ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { * .google.protobuf.Timestamp completion_time = 3; */ 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> getCompletionTimeFieldBuilder() { if (completionTimeBuilder_ == null) { - completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompletionTime(), - getParentForChildren(), - isClean()); + completionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompletionTime(), getParentForChildren(), isClean()); completionTime_ = null; } return completionTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,12 +1094,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ExecutionReference) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ExecutionReference) private static final com.google.cloud.run.v2.ExecutionReference DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ExecutionReference(); } @@ -996,27 +1108,27 @@ public static com.google.cloud.run.v2.ExecutionReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,6 +1143,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ExecutionReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java similarity index 71% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java index 5ecdfcb478fd..76444219807e 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionReferenceOrBuilder.java @@ -1,51 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/job.proto package com.google.cloud.run.v2; -public interface ExecutionReferenceOrBuilder extends +public interface ExecutionReferenceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ExecutionReference) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the execution.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the execution.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Creation timestamp of the execution.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Creation timestamp of the execution.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Creation timestamp of the execution.
    * 
@@ -55,24 +84,32 @@ public interface ExecutionReferenceOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Creation timestamp of the execution.
    * 
* * .google.protobuf.Timestamp completion_time = 3; + * * @return Whether the completionTime field is set. */ boolean hasCompletionTime(); /** + * + * *
    * Creation timestamp of the execution.
    * 
* * .google.protobuf.Timestamp completion_time = 3; + * * @return The completionTime. */ com.google.protobuf.Timestamp getCompletionTime(); /** + * + * *
    * Creation timestamp of the execution.
    * 
diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java similarity index 61% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java index 03979e03d0fc..fa810b68a8a4 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.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/execution_template.proto package com.google.cloud.run.v2; /** + * + * *
  * ExecutionTemplate describes the data an execution should have when created
  * from a template.
@@ -11,76 +28,75 @@
  *
  * Protobuf type {@code google.cloud.run.v2.ExecutionTemplate}
  */
-public final class ExecutionTemplate extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ExecutionTemplate extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ExecutionTemplate)
     ExecutionTemplateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ExecutionTemplate.newBuilder() to construct.
   private ExecutionTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ExecutionTemplate() {
-  }
+
+  private ExecutionTemplate() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExecutionTemplate();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.run.v2.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.ExecutionTemplateProto
+        .internal_static_google_cloud_run_v2_ExecutionTemplate_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 internalGetLabels();
       case 2:
         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.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable
+    return com.google.cloud.run.v2.ExecutionTemplateProto
+        .internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.ExecutionTemplate.class, com.google.cloud.run.v2.ExecutionTemplate.Builder.class);
+            com.google.cloud.run.v2.ExecutionTemplate.class,
+            com.google.cloud.run.v2.ExecutionTemplate.Builder.class);
   }
 
   public static final int LABELS_FIELD_NUMBER = 1;
+
   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.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_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.ExecutionTemplateProto
+                .internal_static_google_cloud_run_v2_ExecutionTemplate_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_;
   }
@@ -89,28 +105,30 @@ public int getLabelsCount() {
     return internalGetLabels().getMap().size();
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 1; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -118,11 +136,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 1; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -130,16 +149,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 1; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -147,12 +166,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 1; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -160,24 +178,24 @@ public java.lang.String getLabelsOrThrow( } public static final int ANNOTATIONS_FIELD_NUMBER = 2; + 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.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_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.ExecutionTemplateProto + .internal_static_google_cloud_run_v2_ExecutionTemplate_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_; } @@ -186,28 +204,30 @@ public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 2; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -215,11 +235,12 @@ public java.util.Map getAnnotations() { * map<string, string> annotations = 2; */ @java.lang.Override - public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -227,16 +248,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 2; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -244,12 +266,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 2; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -259,6 +280,8 @@ public java.lang.String getAnnotationsOrThrow( public static final int PARALLELISM_FIELD_NUMBER = 3; private int parallelism_; /** + * + * *
    * Specifies the maximum desired number of tasks the execution should run at
    * given time. Must be <= task_count.
@@ -270,6 +293,7 @@ public java.lang.String getAnnotationsOrThrow(
    * 
* * int32 parallelism = 3; + * * @return The parallelism. */ @java.lang.Override @@ -280,6 +304,8 @@ public int getParallelism() { public static final int TASK_COUNT_FIELD_NUMBER = 4; private int taskCount_; /** + * + * *
    * Specifies the desired number of tasks the execution should run.
    * Setting to 1 means that parallelism is limited to 1 and the success of
@@ -289,6 +315,7 @@ public int getParallelism() {
    * 
* * int32 task_count = 4; + * * @return The taskCount. */ @java.lang.Override @@ -299,11 +326,15 @@ public int getTaskCount() { public static final int TEMPLATE_FIELD_NUMBER = 5; private com.google.cloud.run.v2.TaskTemplate template_; /** + * + * *
    * Required. Describes the task(s) that will be created when executing an execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ @java.lang.Override @@ -311,23 +342,32 @@ public boolean hasTemplate() { return template_ != null; } /** + * + * *
    * Required. Describes the task(s) that will be created when executing an execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ @java.lang.Override public com.google.cloud.run.v2.TaskTemplate getTemplate() { - return template_ == null ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() + : template_; } /** + * + * *
    * Required. Describes the task(s) that will be created when executing an execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() { @@ -335,6 +375,7 @@ public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -346,20 +387,11 @@ 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, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 1); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 2); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 1); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 2); if (parallelism_ != 0) { output.writeInt32(3, parallelism_); } @@ -378,37 +410,34 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - 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(1, 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(2, 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(1, 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(2, annotations__); } if (parallelism_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, parallelism_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, parallelism_); } if (taskCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, taskCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, taskCount_); } if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTemplate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -418,25 +447,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.ExecutionTemplate)) { return super.equals(obj); } - com.google.cloud.run.v2.ExecutionTemplate other = (com.google.cloud.run.v2.ExecutionTemplate) obj; + com.google.cloud.run.v2.ExecutionTemplate other = + (com.google.cloud.run.v2.ExecutionTemplate) obj; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (getParallelism() - != other.getParallelism()) return false; - if (getTaskCount() - != other.getTaskCount()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (getParallelism() != other.getParallelism()) return false; + if (getTaskCount() != other.getTaskCount()) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -470,97 +495,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ExecutionTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( com.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.ExecutionTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ExecutionTemplate parseFrom( - byte[] data, - com.google.protobuf.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.ExecutionTemplate 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.ExecutionTemplate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ExecutionTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ExecutionTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ExecutionTemplate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ExecutionTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.ExecutionTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.ExecutionTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ExecutionTemplate describes the data an execution should have when created
    * from a template.
@@ -568,59 +600,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.ExecutionTemplate}
    */
-  public static final class Builder extends
-      com.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.ExecutionTemplate)
       com.google.cloud.run.v2.ExecutionTemplateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.ExecutionTemplateProto
+          .internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetLabels();
         case 2:
           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 1:
           return internalGetMutableLabels();
         case 2:
           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.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable
+      return com.google.cloud.run.v2.ExecutionTemplateProto
+          .internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.ExecutionTemplate.class, com.google.cloud.run.v2.ExecutionTemplate.Builder.class);
+              com.google.cloud.run.v2.ExecutionTemplate.class,
+              com.google.cloud.run.v2.ExecutionTemplate.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.ExecutionTemplate.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -640,9 +669,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.ExecutionTemplateProto.internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.ExecutionTemplateProto
+          .internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor;
     }
 
     @java.lang.Override
@@ -661,7 +690,8 @@ public com.google.cloud.run.v2.ExecutionTemplate build() {
 
     @java.lang.Override
     public com.google.cloud.run.v2.ExecutionTemplate buildPartial() {
-      com.google.cloud.run.v2.ExecutionTemplate result = new com.google.cloud.run.v2.ExecutionTemplate(this);
+      com.google.cloud.run.v2.ExecutionTemplate result =
+          new com.google.cloud.run.v2.ExecutionTemplate(this);
       int from_bitField0_ = bitField0_;
       result.labels_ = internalGetLabels();
       result.labels_.makeImmutable();
@@ -682,38 +712,39 @@ public com.google.cloud.run.v2.ExecutionTemplate buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ExecutionTemplate) {
-        return mergeFrom((com.google.cloud.run.v2.ExecutionTemplate)other);
+        return mergeFrom((com.google.cloud.run.v2.ExecutionTemplate) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -722,10 +753,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.run.v2.ExecutionTemplate other) {
       if (other == com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance()) return this;
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       if (other.getParallelism() != 0) {
         setParallelism(other.getParallelism());
       }
@@ -761,45 +790,53 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              break;
-            } // case 10
-            case 18: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              break;
-            } // case 18
-            case 24: {
-              parallelism_ = input.readInt32();
-
-              break;
-            } // case 24
-            case 32: {
-              taskCount_ = input.readInt32();
-
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getTemplateFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                break;
+              } // case 18
+            case 24:
+              {
+                parallelism_ = input.readInt32();
+
+                break;
+              } // case 24
+            case 32:
+              {
+                taskCount_ = input.readInt32();
+
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -809,24 +846,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    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();
@@ -838,28 +875,30 @@ public int getLabelsCount() {
       return internalGetLabels().getMap().size();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 1; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * KRM-style labels for the resource.
      * 
@@ -867,11 +906,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 1; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * KRM-style labels for the resource.
      * 
@@ -879,16 +919,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 1; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style labels for the resource.
      * 
@@ -896,12 +937,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 1; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -909,83 +949,82 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 1; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 1; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 1; */ - - 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(); @@ -997,28 +1036,30 @@ public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 2; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -1026,11 +1067,12 @@ public java.util.Map getAnnotations() { * map<string, string> annotations = 2; */ @java.lang.Override - public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -1038,16 +1080,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 2; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -1055,12 +1098,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 2; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1068,69 +1110,68 @@ 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 = 2; */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 2; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 2; */ - - 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 int parallelism_ ; + private int parallelism_; /** + * + * *
      * Specifies the maximum desired number of tasks the execution should run at
      * given time. Must be <= task_count.
@@ -1142,6 +1183,7 @@ public Builder putAllAnnotations(
      * 
* * int32 parallelism = 3; + * * @return The parallelism. */ @java.lang.Override @@ -1149,6 +1191,8 @@ public int getParallelism() { return parallelism_; } /** + * + * *
      * Specifies the maximum desired number of tasks the execution should run at
      * given time. Must be <= task_count.
@@ -1160,16 +1204,19 @@ public int getParallelism() {
      * 
* * int32 parallelism = 3; + * * @param value The parallelism to set. * @return This builder for chaining. */ public Builder setParallelism(int value) { - + parallelism_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the maximum desired number of tasks the execution should run at
      * given time. Must be <= task_count.
@@ -1181,17 +1228,20 @@ public Builder setParallelism(int value) {
      * 
* * int32 parallelism = 3; + * * @return This builder for chaining. */ public Builder clearParallelism() { - + parallelism_ = 0; onChanged(); return this; } - private int taskCount_ ; + private int taskCount_; /** + * + * *
      * Specifies the desired number of tasks the execution should run.
      * Setting to 1 means that parallelism is limited to 1 and the success of
@@ -1201,6 +1251,7 @@ public Builder clearParallelism() {
      * 
* * int32 task_count = 4; + * * @return The taskCount. */ @java.lang.Override @@ -1208,6 +1259,8 @@ public int getTaskCount() { return taskCount_; } /** + * + * *
      * Specifies the desired number of tasks the execution should run.
      * Setting to 1 means that parallelism is limited to 1 and the success of
@@ -1217,16 +1270,19 @@ public int getTaskCount() {
      * 
* * int32 task_count = 4; + * * @param value The taskCount to set. * @return This builder for chaining. */ public Builder setTaskCount(int value) { - + taskCount_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the desired number of tasks the execution should run.
      * Setting to 1 means that parallelism is limited to 1 and the success of
@@ -1236,10 +1292,11 @@ public Builder setTaskCount(int value) {
      * 
* * int32 task_count = 4; + * * @return This builder for chaining. */ public Builder clearTaskCount() { - + taskCount_ = 0; onChanged(); return this; @@ -1247,39 +1304,58 @@ public Builder clearTaskCount() { private com.google.cloud.run.v2.TaskTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder> templateBuilder_; + com.google.cloud.run.v2.TaskTemplate, + com.google.cloud.run.v2.TaskTemplate.Builder, + com.google.cloud.run.v2.TaskTemplateOrBuilder> + templateBuilder_; /** + * + * *
      * Required. Describes the task(s) that will be created when executing an execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ public boolean hasTemplate() { return templateBuilder_ != null || template_ != null; } /** + * + * *
      * Required. Describes the task(s) that will be created when executing an execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ public com.google.cloud.run.v2.TaskTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() + : template_; } else { return templateBuilder_.getMessage(); } } /** + * + * *
      * Required. Describes the task(s) that will be created when executing an execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTemplate(com.google.cloud.run.v2.TaskTemplate value) { if (templateBuilder_ == null) { @@ -1295,14 +1371,17 @@ public Builder setTemplate(com.google.cloud.run.v2.TaskTemplate value) { return this; } /** + * + * *
      * Required. Describes the task(s) that will be created when executing an execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTemplate( - com.google.cloud.run.v2.TaskTemplate.Builder builderForValue) { + public Builder setTemplate(com.google.cloud.run.v2.TaskTemplate.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); @@ -1313,17 +1392,23 @@ public Builder setTemplate( return this; } /** + * + * *
      * Required. Describes the task(s) that will be created when executing an execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeTemplate(com.google.cloud.run.v2.TaskTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.run.v2.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.TaskTemplate.newBuilder(template_) + .mergeFrom(value) + .buildPartial(); } else { template_ = value; } @@ -1335,11 +1420,15 @@ public Builder mergeTemplate(com.google.cloud.run.v2.TaskTemplate value) { return this; } /** + * + * *
      * Required. Describes the task(s) that will be created when executing an execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -1353,55 +1442,71 @@ public Builder clearTemplate() { return this; } /** + * + * *
      * Required. Describes the task(s) that will be created when executing an execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.TaskTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Describes the task(s) that will be created when executing an execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null ? - com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.TaskTemplate.getDefaultInstance() + : template_; } } /** + * + * *
      * Required. Describes the task(s) that will be created when executing an execution.
      * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder> + com.google.cloud.run.v2.TaskTemplate, + com.google.cloud.run.v2.TaskTemplate.Builder, + com.google.cloud.run.v2.TaskTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.TaskTemplate, com.google.cloud.run.v2.TaskTemplate.Builder, com.google.cloud.run.v2.TaskTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); + templateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskTemplate, + com.google.cloud.run.v2.TaskTemplate.Builder, + com.google.cloud.run.v2.TaskTemplateOrBuilder>( + getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1411,12 +1516,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ExecutionTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ExecutionTemplate) private static final com.google.cloud.run.v2.ExecutionTemplate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ExecutionTemplate(); } @@ -1425,27 +1530,27 @@ public static com.google.cloud.run.v2.ExecutionTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1460,6 +1565,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ExecutionTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java similarity index 68% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java index 192cda995deb..3a77bccf3a86 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.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/execution_template.proto package com.google.cloud.run.v2; -public interface ExecutionTemplateOrBuilder extends +public interface ExecutionTemplateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ExecutionTemplate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -16,30 +34,31 @@ public interface ExecutionTemplateOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 1; */ - 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 = 1; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -48,22 +67,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 1; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -72,30 +93,31 @@ java.lang.String getLabelsOrThrow( */ int getAnnotationsCount(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 2; */ - 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 = 2; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -104,22 +126,24 @@ boolean containsAnnotations( */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 2; */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Specifies the maximum desired number of tasks the execution should run at
    * given time. Must be <= task_count.
@@ -131,11 +155,14 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * int32 parallelism = 3; + * * @return The parallelism. */ int getParallelism(); /** + * + * *
    * Specifies the desired number of tasks the execution should run.
    * Setting to 1 means that parallelism is limited to 1 and the success of
@@ -145,34 +172,46 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * int32 task_count = 4; + * * @return The taskCount. */ int getTaskCount(); /** + * + * *
    * Required. Describes the task(s) that will be created when executing an execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ boolean hasTemplate(); /** + * + * *
    * Required. Describes the task(s) that will be created when executing an execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ com.google.cloud.run.v2.TaskTemplate getTemplate(); /** + * + * *
    * Required. Describes the task(s) that will be created when executing an execution.
    * 
* - * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.TaskTemplate template = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.run.v2.TaskTemplateOrBuilder getTemplateOrBuilder(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java new file mode 100644 index 000000000000..a1643de63edf --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/execution_template.proto + +package com.google.cloud.run.v2; + +public final class ExecutionTemplateProto { + private ExecutionTemplateProto() {} + + 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_ExecutionTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ExecutionTemplate_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/execution_template" + + ".proto\022\023google.cloud.run.v2\032\037google/api/" + + "field_behavior.proto\032\'google/cloud/run/v" + + "2/task_template.proto\"\353\002\n\021ExecutionTempl" + + "ate\022B\n\006labels\030\001 \003(\01322.google.cloud.run.v" + + "2.ExecutionTemplate.LabelsEntry\022L\n\013annot" + + "ations\030\002 \003(\01327.google.cloud.run.v2.Execu" + + "tionTemplate.AnnotationsEntry\022\023\n\013paralle" + + "lism\030\003 \001(\005\022\022\n\ntask_count\030\004 \001(\005\0228\n\010templa" + + "te\030\005 \001(\0132!.google.cloud.run.v2.TaskTempl" + + "ateB\003\340A\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bk\n\027com.googl" + + "e.cloud.run.v2B\026ExecutionTemplateProtoP\001" + + "Z6google.golang.org/genproto/googleapis/" + + "cloud/run/v2;runb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.run.v2.TaskTemplateProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor, + new java.lang.String[] { + "Labels", "Annotations", "Parallelism", "TaskCount", "Template", + }); + internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.run.v2.TaskTemplateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java similarity index 62% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java index e0f277a71ca5..bc809c1d7aa0 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequest.java @@ -1,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/execution.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for obtaining a Execution by its full name.
  * 
* * Protobuf type {@code google.cloud.run.v2.GetExecutionRequest} */ -public final class GetExecutionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.GetExecutionRequest) GetExecutionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetExecutionRequest.newBuilder() to construct. private GetExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetExecutionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetExecutionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetExecutionRequest.class, com.google.cloud.run.v2.GetExecutionRequest.Builder.class); + com.google.cloud.run.v2.GetExecutionRequest.class, + com.google.cloud.run.v2.GetExecutionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full name of the Execution.
    * Format:
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
    * 
* - * 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 @@ -66,31 +90,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 Execution.
    * Format:
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
    * 
* - * 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 { @@ -99,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +137,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_); } @@ -135,15 +161,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.GetExecutionRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.GetExecutionRequest other = (com.google.cloud.run.v2.GetExecutionRequest) obj; + com.google.cloud.run.v2.GetExecutionRequest other = + (com.google.cloud.run.v2.GetExecutionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,130 +188,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( com.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.GetExecutionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetExecutionRequest parseFrom( - byte[] data, - com.google.protobuf.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.GetExecutionRequest 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.GetExecutionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.GetExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.GetExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.GetExecutionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.GetExecutionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.GetExecutionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.GetExecutionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Execution by its full name.
    * 
* * Protobuf type {@code google.cloud.run.v2.GetExecutionRequest} */ - public static final class Builder extends - com.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.GetExecutionRequest) com.google.cloud.run.v2.GetExecutionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetExecutionRequest.class, com.google.cloud.run.v2.GetExecutionRequest.Builder.class); + com.google.cloud.run.v2.GetExecutionRequest.class, + com.google.cloud.run.v2.GetExecutionRequest.Builder.class); } // Construct using com.google.cloud.run.v2.GetExecutionRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -295,9 +327,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor; } @java.lang.Override @@ -316,7 +348,8 @@ public com.google.cloud.run.v2.GetExecutionRequest build() { @java.lang.Override public com.google.cloud.run.v2.GetExecutionRequest buildPartial() { - com.google.cloud.run.v2.GetExecutionRequest result = new com.google.cloud.run.v2.GetExecutionRequest(this); + com.google.cloud.run.v2.GetExecutionRequest result = + new com.google.cloud.run.v2.GetExecutionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,38 +359,39 @@ public com.google.cloud.run.v2.GetExecutionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.GetExecutionRequest) { - return mergeFrom((com.google.cloud.run.v2.GetExecutionRequest)other); + return mergeFrom((com.google.cloud.run.v2.GetExecutionRequest) other); } else { super.mergeFrom(other); return this; @@ -396,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,20 +455,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the Execution.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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; @@ -441,22 +481,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Execution.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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 { @@ -464,67 +507,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Execution.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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 Execution.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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 Execution.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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); } @@ -534,12 +590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.GetExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.GetExecutionRequest) private static final com.google.cloud.run.v2.GetExecutionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.GetExecutionRequest(); } @@ -548,27 +604,27 @@ public static com.google.cloud.run.v2.GetExecutionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +639,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..ced215d3f290 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.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/execution.proto + +package com.google.cloud.run.v2; + +public interface GetExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The full name of the Execution.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * + * 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 Execution.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
+   * 
+ * + * + * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java similarity index 62% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java index 282927f979c4..c82537e8e8c5 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/job.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for obtaining a Job by its full name.
  * 
* * Protobuf type {@code google.cloud.run.v2.GetJobRequest} */ -public final class GetJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.GetJobRequest) GetJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetJobRequest.newBuilder() to construct. private GetJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_GetJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_GetJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetJobRequest.class, com.google.cloud.run.v2.GetJobRequest.Builder.class); + com.google.cloud.run.v2.GetJobRequest.class, + com.google.cloud.run.v2.GetJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full name of the Job.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 @@ -65,30 +89,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 Job.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,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_); } @@ -133,15 +159,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.GetJobRequest)) { return super.equals(obj); } com.google.cloud.run.v2.GetJobRequest other = (com.google.cloud.run.v2.GetJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,130 +185,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.GetJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.GetJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetJobRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.GetJobRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetJobRequest parseFrom( com.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.GetJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetJobRequest parseFrom( - byte[] data, - com.google.protobuf.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.GetJobRequest 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.GetJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.GetJobRequest 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.GetJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.GetJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.GetJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.GetJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Job by its full name.
    * 
* * Protobuf type {@code google.cloud.run.v2.GetJobRequest} */ - public static final class Builder extends - com.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.GetJobRequest) com.google.cloud.run.v2.GetJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_GetJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_GetJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetJobRequest.class, com.google.cloud.run.v2.GetJobRequest.Builder.class); + com.google.cloud.run.v2.GetJobRequest.class, + com.google.cloud.run.v2.GetJobRequest.Builder.class); } // Construct using com.google.cloud.run.v2.GetJobRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_GetJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_GetJobRequest_descriptor; } @java.lang.Override @@ -314,7 +344,8 @@ public com.google.cloud.run.v2.GetJobRequest build() { @java.lang.Override public com.google.cloud.run.v2.GetJobRequest buildPartial() { - com.google.cloud.run.v2.GetJobRequest result = new com.google.cloud.run.v2.GetJobRequest(this); + com.google.cloud.run.v2.GetJobRequest result = + new com.google.cloud.run.v2.GetJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +355,39 @@ public com.google.cloud.run.v2.GetJobRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.GetJobRequest) { - return mergeFrom((com.google.cloud.run.v2.GetJobRequest)other); + return mergeFrom((com.google.cloud.run.v2.GetJobRequest) other); } else { super.mergeFrom(other); return this; @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +451,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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; @@ -438,21 +476,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 { @@ -460,64 +501,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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); } @@ -527,12 +581,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.GetJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.GetJobRequest) private static final com.google.cloud.run.v2.GetJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.GetJobRequest(); } @@ -541,27 +595,27 @@ public static com.google.cloud.run.v2.GetJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +630,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java new file mode 100644 index 000000000000..78d2469ac30d --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.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/job.proto + +package com.google.cloud.run.v2; + +public interface GetJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The full name of the Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * + * 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 Job.
+   * Format: projects/{project}/locations/{location}/jobs/{job}
+   * 
+ * + * + * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java similarity index 62% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java index e219296b3134..aa5e6237300a 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequest.java @@ -1,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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; } - 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 @@ -66,31 +90,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 { @@ -99,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +137,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_); } @@ -135,15 +161,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,130 +188,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -295,9 +327,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 @@ -316,7 +348,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; @@ -326,38 +359,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; @@ -396,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,20 +455,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; @@ -441,22 +481,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 { @@ -464,67 +507,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); } @@ -534,12 +590,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(); } @@ -548,27 +604,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +639,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetRevisionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..370fcb971c76 --- /dev/null +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java similarity index 62% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java index b5826df5198d..86bb5c6ee107 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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; } - 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/{project}/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 @@ -65,30 +89,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/{project}/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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,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_); } @@ -133,15 +159,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,130 +186,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,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 @@ -314,7 +346,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; @@ -324,38 +357,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; @@ -394,17 +428,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +453,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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; @@ -438,21 +478,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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 { @@ -460,64 +503,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Service.
      * Format: projects/{project}/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/{project}/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/{project}/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); } @@ -527,12 +583,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(); } @@ -541,27 +597,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +632,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java new file mode 100644 index 000000000000..86a7618df64f --- /dev/null +++ b/java-run/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/{project}/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/{project}/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java similarity index 63% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java index e602db5e7f6b..818c01e8ef26 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequest.java @@ -1,63 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/task.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for obtaining a Task by its full name.
  * 
* * Protobuf type {@code google.cloud.run.v2.GetTaskRequest} */ -public final class GetTaskRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetTaskRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.GetTaskRequest) GetTaskRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetTaskRequest.newBuilder() to construct. private GetTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetTaskRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetTaskRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_GetTaskRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_GetTaskRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetTaskRequest.class, com.google.cloud.run.v2.GetTaskRequest.Builder.class); + com.google.cloud.run.v2.GetTaskRequest.class, + com.google.cloud.run.v2.GetTaskRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full name of the Task.
    * Format:
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
    * 
* - * 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 @@ -66,31 +90,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 Task.
    * Format:
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
    * 
* - * 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 { @@ -99,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +137,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_); } @@ -135,15 +161,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.GetTaskRequest)) { return super.equals(obj); } com.google.cloud.run.v2.GetTaskRequest other = (com.google.cloud.run.v2.GetTaskRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,130 +187,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.GetTaskRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.GetTaskRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetTaskRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( com.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.GetTaskRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.GetTaskRequest parseFrom( - byte[] data, - com.google.protobuf.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.GetTaskRequest 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.GetTaskRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.GetTaskRequest 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.GetTaskRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.GetTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.GetTaskRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.GetTaskRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Task by its full name.
    * 
* * Protobuf type {@code google.cloud.run.v2.GetTaskRequest} */ - public static final class Builder extends - com.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.GetTaskRequest) com.google.cloud.run.v2.GetTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_GetTaskRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_GetTaskRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.GetTaskRequest.class, com.google.cloud.run.v2.GetTaskRequest.Builder.class); + com.google.cloud.run.v2.GetTaskRequest.class, + com.google.cloud.run.v2.GetTaskRequest.Builder.class); } // Construct using com.google.cloud.run.v2.GetTaskRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -295,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_GetTaskRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_GetTaskRequest_descriptor; } @java.lang.Override @@ -316,7 +347,8 @@ public com.google.cloud.run.v2.GetTaskRequest build() { @java.lang.Override public com.google.cloud.run.v2.GetTaskRequest buildPartial() { - com.google.cloud.run.v2.GetTaskRequest result = new com.google.cloud.run.v2.GetTaskRequest(this); + com.google.cloud.run.v2.GetTaskRequest result = + new com.google.cloud.run.v2.GetTaskRequest(this); result.name_ = name_; onBuilt(); return result; @@ -326,38 +358,39 @@ public com.google.cloud.run.v2.GetTaskRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.GetTaskRequest) { - return mergeFrom((com.google.cloud.run.v2.GetTaskRequest)other); + return mergeFrom((com.google.cloud.run.v2.GetTaskRequest) other); } else { super.mergeFrom(other); return this; @@ -396,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,20 +454,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the Task.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
      * 
* - * 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; @@ -441,22 +480,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Task.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
      * 
* - * 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 { @@ -464,67 +506,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Task.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
      * 
* - * 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 Task.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
      * 
* - * 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 Task.
      * Format:
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
      * 
* - * 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); } @@ -534,12 +589,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.GetTaskRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.GetTaskRequest) private static final com.google.cloud.run.v2.GetTaskRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.GetTaskRequest(); } @@ -548,27 +603,27 @@ public static com.google.cloud.run.v2.GetTaskRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTaskRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +638,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.GetTaskRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java new file mode 100644 index 000000000000..be81363612a2 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.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/task.proto + +package com.google.cloud.run.v2; + +public interface GetTaskRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetTaskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The full name of the Task.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+   * 
+ * + * + * 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 Task.
+   * Format:
+   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
+   * 
+ * + * + * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java similarity index 72% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java index 9d9d56e577e7..f3fcff443c36 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.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; /** + * + * *
  * HTTPGetAction describes an action based on HTTP Get requests.
  * 
* * Protobuf type {@code google.cloud.run.v2.HTTPGetAction} */ -public final class HTTPGetAction extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HTTPGetAction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.HTTPGetAction) HTTPGetActionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HTTPGetAction.newBuilder() to construct. private HTTPGetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HTTPGetAction() { path_ = ""; httpHeaders_ = java.util.Collections.emptyList(); @@ -26,37 +44,41 @@ private HTTPGetAction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HTTPGetAction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.HTTPGetAction.class, com.google.cloud.run.v2.HTTPGetAction.Builder.class); + com.google.cloud.run.v2.HTTPGetAction.class, + com.google.cloud.run.v2.HTTPGetAction.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** + * + * *
    * Path to access on the HTTP server. Defaults to '/'.
    * 
* * string path = 1; + * * @return The path. */ @java.lang.Override @@ -65,29 +87,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; } } /** + * + * *
    * Path to access on the HTTP server. Defaults to '/'.
    * 
* * string path = 1; + * * @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 { @@ -98,6 +120,8 @@ public java.lang.String getPath() { public static final int HTTP_HEADERS_FIELD_NUMBER = 4; private java.util.List httpHeaders_; /** + * + * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -109,6 +133,8 @@ public java.util.List getHttpHeadersList() { return httpHeaders_; } /** + * + * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -116,11 +142,13 @@ public java.util.List getHttpHeadersList() { * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ @java.lang.Override - public java.util.List + public java.util.List getHttpHeadersOrBuilderList() { return httpHeaders_; } /** + * + * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -132,6 +160,8 @@ public int getHttpHeadersCount() { return httpHeaders_.size(); } /** + * + * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -143,6 +173,8 @@ public com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index) { return httpHeaders_.get(index); } /** + * + * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -150,12 +182,12 @@ public com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index) { * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ @java.lang.Override - public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder( - int index) { + public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index) { return httpHeaders_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -188,8 +219,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } for (int i = 0; i < httpHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, httpHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, httpHeaders_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -199,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.HTTPGetAction)) { return super.equals(obj); } com.google.cloud.run.v2.HTTPGetAction other = (com.google.cloud.run.v2.HTTPGetAction) obj; - if (!getPath() - .equals(other.getPath())) return false; - if (!getHttpHeadersList() - .equals(other.getHttpHeadersList())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getHttpHeadersList().equals(other.getHttpHeadersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,130 +260,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.HTTPGetAction parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.HTTPGetAction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.HTTPGetAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.HTTPGetAction parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.HTTPGetAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.HTTPGetAction parseFrom( com.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.HTTPGetAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.HTTPGetAction parseFrom( - byte[] data, - com.google.protobuf.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.HTTPGetAction 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.HTTPGetAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.HTTPGetAction 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.HTTPGetAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.HTTPGetAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.HTTPGetAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.HTTPGetAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * HTTPGetAction describes an action based on HTTP Get requests.
    * 
* * Protobuf type {@code google.cloud.run.v2.HTTPGetAction} */ - public static final class Builder extends - com.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.HTTPGetAction) com.google.cloud.run.v2.HTTPGetActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.HTTPGetAction.class, com.google.cloud.run.v2.HTTPGetAction.Builder.class); + com.google.cloud.run.v2.HTTPGetAction.class, + com.google.cloud.run.v2.HTTPGetAction.Builder.class); } // Construct using com.google.cloud.run.v2.HTTPGetAction.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -372,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_HTTPGetAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; } @java.lang.Override @@ -393,7 +426,8 @@ public com.google.cloud.run.v2.HTTPGetAction build() { @java.lang.Override public com.google.cloud.run.v2.HTTPGetAction buildPartial() { - com.google.cloud.run.v2.HTTPGetAction result = new com.google.cloud.run.v2.HTTPGetAction(this); + com.google.cloud.run.v2.HTTPGetAction result = + new com.google.cloud.run.v2.HTTPGetAction(this); int from_bitField0_ = bitField0_; result.path_ = path_; if (httpHeadersBuilder_ == null) { @@ -413,38 +447,39 @@ public com.google.cloud.run.v2.HTTPGetAction buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.HTTPGetAction) { - return mergeFrom((com.google.cloud.run.v2.HTTPGetAction)other); + return mergeFrom((com.google.cloud.run.v2.HTTPGetAction) other); } else { super.mergeFrom(other); return this; @@ -475,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.HTTPGetAction other) { httpHeadersBuilder_ = null; httpHeaders_ = other.httpHeaders_; bitField0_ = (bitField0_ & ~0x00000001); - httpHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHttpHeadersFieldBuilder() : null; + httpHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHttpHeadersFieldBuilder() + : null; } else { httpHeadersBuilder_.addAllMessages(other.httpHeaders_); } @@ -509,30 +545,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - path_ = input.readStringRequireUtf8(); + case 10: + { + path_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 34: { - com.google.cloud.run.v2.HTTPHeader m = - input.readMessage( - com.google.cloud.run.v2.HTTPHeader.parser(), - extensionRegistry); - if (httpHeadersBuilder_ == null) { - ensureHttpHeadersIsMutable(); - httpHeaders_.add(m); - } else { - httpHeadersBuilder_.addMessage(m); - } - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 34: + { + com.google.cloud.run.v2.HTTPHeader m = + input.readMessage( + com.google.cloud.run.v2.HTTPHeader.parser(), extensionRegistry); + if (httpHeadersBuilder_ == null) { + ensureHttpHeadersIsMutable(); + httpHeaders_.add(m); + } else { + httpHeadersBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -542,22 +580,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object path_ = ""; /** + * + * *
      * Path to access on the HTTP server. Defaults to '/'.
      * 
* * string path = 1; + * * @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; @@ -566,20 +607,21 @@ public java.lang.String getPath() { } } /** + * + * *
      * Path to access on the HTTP server. Defaults to '/'.
      * 
* * string path = 1; + * * @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 { @@ -587,72 +629,85 @@ public java.lang.String getPath() { } } /** + * + * *
      * Path to access on the HTTP server. Defaults to '/'.
      * 
* * string path = 1; + * * @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; } /** + * + * *
      * Path to access on the HTTP server. Defaults to '/'.
      * 
* * string path = 1; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** + * + * *
      * Path to access on the HTTP server. Defaults to '/'.
      * 
* * string path = 1; + * * @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; } private java.util.List httpHeaders_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureHttpHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { httpHeaders_ = new java.util.ArrayList(httpHeaders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.HTTPHeader, com.google.cloud.run.v2.HTTPHeader.Builder, com.google.cloud.run.v2.HTTPHeaderOrBuilder> httpHeadersBuilder_; + com.google.cloud.run.v2.HTTPHeader, + com.google.cloud.run.v2.HTTPHeader.Builder, + com.google.cloud.run.v2.HTTPHeaderOrBuilder> + httpHeadersBuilder_; /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -667,6 +722,8 @@ public java.util.List getHttpHeadersList() { } } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -681,6 +738,8 @@ public int getHttpHeadersCount() { } } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -695,14 +754,15 @@ public com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index) { } } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public Builder setHttpHeaders( - int index, com.google.cloud.run.v2.HTTPHeader value) { + public Builder setHttpHeaders(int index, com.google.cloud.run.v2.HTTPHeader value) { if (httpHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -716,6 +776,8 @@ public Builder setHttpHeaders( return this; } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -734,6 +796,8 @@ public Builder setHttpHeaders( return this; } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -754,14 +818,15 @@ public Builder addHttpHeaders(com.google.cloud.run.v2.HTTPHeader value) { return this; } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public Builder addHttpHeaders( - int index, com.google.cloud.run.v2.HTTPHeader value) { + public Builder addHttpHeaders(int index, com.google.cloud.run.v2.HTTPHeader value) { if (httpHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -775,14 +840,15 @@ public Builder addHttpHeaders( return this; } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public Builder addHttpHeaders( - com.google.cloud.run.v2.HTTPHeader.Builder builderForValue) { + public Builder addHttpHeaders(com.google.cloud.run.v2.HTTPHeader.Builder builderForValue) { if (httpHeadersBuilder_ == null) { ensureHttpHeadersIsMutable(); httpHeaders_.add(builderForValue.build()); @@ -793,6 +859,8 @@ public Builder addHttpHeaders( return this; } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -811,6 +879,8 @@ public Builder addHttpHeaders( return this; } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -821,8 +891,7 @@ public Builder addAllHttpHeaders( java.lang.Iterable values) { if (httpHeadersBuilder_ == null) { ensureHttpHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, httpHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, httpHeaders_); onChanged(); } else { httpHeadersBuilder_.addAllMessages(values); @@ -830,6 +899,8 @@ public Builder addAllHttpHeaders( return this; } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -847,6 +918,8 @@ public Builder clearHttpHeaders() { return this; } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -864,39 +937,44 @@ public Builder removeHttpHeaders(int index) { return this; } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public com.google.cloud.run.v2.HTTPHeader.Builder getHttpHeadersBuilder( - int index) { + public com.google.cloud.run.v2.HTTPHeader.Builder getHttpHeadersBuilder(int index) { return getHttpHeadersFieldBuilder().getBuilder(index); } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder( - int index) { + public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index) { if (httpHeadersBuilder_ == null) { - return httpHeaders_.get(index); } else { + return httpHeaders_.get(index); + } else { return httpHeadersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public java.util.List - getHttpHeadersOrBuilderList() { + public java.util.List + getHttpHeadersOrBuilderList() { if (httpHeadersBuilder_ != null) { return httpHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -904,6 +982,8 @@ public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder( } } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
@@ -911,49 +991,54 @@ public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder( * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ public com.google.cloud.run.v2.HTTPHeader.Builder addHttpHeadersBuilder() { - return getHttpHeadersFieldBuilder().addBuilder( - com.google.cloud.run.v2.HTTPHeader.getDefaultInstance()); + return getHttpHeadersFieldBuilder() + .addBuilder(com.google.cloud.run.v2.HTTPHeader.getDefaultInstance()); } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public com.google.cloud.run.v2.HTTPHeader.Builder addHttpHeadersBuilder( - int index) { - return getHttpHeadersFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.HTTPHeader.getDefaultInstance()); + public com.google.cloud.run.v2.HTTPHeader.Builder addHttpHeadersBuilder(int index) { + return getHttpHeadersFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.HTTPHeader.getDefaultInstance()); } /** + * + * *
      * Custom headers to set in the request. HTTP allows repeated headers.
      * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - public java.util.List - getHttpHeadersBuilderList() { + public java.util.List getHttpHeadersBuilderList() { return getHttpHeadersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.HTTPHeader, com.google.cloud.run.v2.HTTPHeader.Builder, com.google.cloud.run.v2.HTTPHeaderOrBuilder> + com.google.cloud.run.v2.HTTPHeader, + com.google.cloud.run.v2.HTTPHeader.Builder, + com.google.cloud.run.v2.HTTPHeaderOrBuilder> getHttpHeadersFieldBuilder() { if (httpHeadersBuilder_ == null) { - httpHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.HTTPHeader, com.google.cloud.run.v2.HTTPHeader.Builder, com.google.cloud.run.v2.HTTPHeaderOrBuilder>( - httpHeaders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + httpHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.HTTPHeader, + com.google.cloud.run.v2.HTTPHeader.Builder, + com.google.cloud.run.v2.HTTPHeaderOrBuilder>( + httpHeaders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); httpHeaders_ = null; } return httpHeadersBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -963,12 +1048,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.HTTPGetAction) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.HTTPGetAction) private static final com.google.cloud.run.v2.HTTPGetAction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.HTTPGetAction(); } @@ -977,27 +1062,27 @@ public static com.google.cloud.run.v2.HTTPGetAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HTTPGetAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HTTPGetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1012,6 +1097,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.HTTPGetAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java similarity index 67% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java index d7515019153e..187f6e93c659 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java @@ -1,42 +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/k8s.min.proto package com.google.cloud.run.v2; -public interface HTTPGetActionOrBuilder extends +public interface HTTPGetActionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.HTTPGetAction) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Path to access on the HTTP server. Defaults to '/'.
    * 
* * string path = 1; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
    * Path to access on the HTTP server. Defaults to '/'.
    * 
* * string path = 1; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); /** + * + * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - java.util.List - getHttpHeadersList(); + java.util.List getHttpHeadersList(); /** + * + * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -45,6 +69,8 @@ public interface HTTPGetActionOrBuilder extends */ com.google.cloud.run.v2.HTTPHeader getHttpHeaders(int index); /** + * + * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
@@ -53,21 +79,24 @@ public interface HTTPGetActionOrBuilder extends */ int getHttpHeadersCount(); /** + * + * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - java.util.List + java.util.List getHttpHeadersOrBuilderList(); /** + * + * *
    * Custom headers to set in the request. HTTP allows repeated headers.
    * 
* * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ - com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder( - int index); + com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index); } diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java similarity index 66% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java index 033bcee25fae..b62b8d661d20 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeader.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; /** + * + * *
  * HTTPHeader describes a custom header to be used in HTTP probes
  * 
* * Protobuf type {@code google.cloud.run.v2.HTTPHeader} */ -public final class HTTPHeader extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HTTPHeader extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.HTTPHeader) HTTPHeaderOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HTTPHeader.newBuilder() to construct. private HTTPHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HTTPHeader() { name_ = ""; value_ = ""; @@ -26,37 +44,41 @@ private HTTPHeader() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HTTPHeader(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPHeader_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_HTTPHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.HTTPHeader.class, com.google.cloud.run.v2.HTTPHeader.Builder.class); + com.google.cloud.run.v2.HTTPHeader.class, + com.google.cloud.run.v2.HTTPHeader.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The header field name
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The header field 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 { @@ -98,11 +120,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
    * The header field value
    * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -111,29 +136,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
    * The header field value
    * 
* * 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 = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -142,6 +167,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,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_); } @@ -184,17 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.HTTPHeader)) { return super.equals(obj); } com.google.cloud.run.v2.HTTPHeader other = (com.google.cloud.run.v2.HTTPHeader) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (!getName().equals(other.getName())) return false; + if (!getValue().equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,130 +238,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.HTTPHeader parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.HTTPHeader parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.HTTPHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.HTTPHeader parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.HTTPHeader parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.HTTPHeader parseFrom( com.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.HTTPHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.HTTPHeader parseFrom( - byte[] data, - com.google.protobuf.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.HTTPHeader 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.HTTPHeader parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.HTTPHeader 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.HTTPHeader parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.HTTPHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.HTTPHeader parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.HTTPHeader prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * HTTPHeader describes a custom header to be used in HTTP probes
    * 
* * Protobuf type {@code google.cloud.run.v2.HTTPHeader} */ - public static final class Builder extends - com.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.HTTPHeader) com.google.cloud.run.v2.HTTPHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPHeader_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_HTTPHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.HTTPHeader.class, com.google.cloud.run.v2.HTTPHeader.Builder.class); + com.google.cloud.run.v2.HTTPHeader.class, + com.google.cloud.run.v2.HTTPHeader.Builder.class); } // Construct using com.google.cloud.run.v2.HTTPHeader.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +378,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_HTTPHeader_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_HTTPHeader_descriptor; } @java.lang.Override @@ -382,38 +410,39 @@ public com.google.cloud.run.v2.HTTPHeader buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.HTTPHeader) { - return mergeFrom((com.google.cloud.run.v2.HTTPHeader)other); + return mergeFrom((com.google.cloud.run.v2.HTTPHeader) other); } else { super.mergeFrom(other); return this; @@ -456,22 +485,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - value_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,18 +516,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The header field 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; @@ -504,20 +538,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The header field 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 { @@ -525,54 +560,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The header field 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. The header field name
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The header field 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; @@ -580,18 +622,20 @@ public Builder setNameBytes( private java.lang.Object value_ = ""; /** + * + * *
      * The header field value
      * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -600,20 +644,21 @@ public java.lang.String getValue() { } } /** + * + * *
      * The header field value
      * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -621,61 +666,68 @@ public java.lang.String getValue() { } } /** + * + * *
      * The header field value
      * 
* * 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(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
      * The header field value
      * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
      * The header field value
      * 
* * 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); + value_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +737,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.HTTPHeader) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.HTTPHeader) private static final com.google.cloud.run.v2.HTTPHeader DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.HTTPHeader(); } @@ -699,27 +751,27 @@ public static com.google.cloud.run.v2.HTTPHeader getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HTTPHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HTTPHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,6 +786,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.HTTPHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java similarity index 54% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java index f420ce363129..8ac65748acd2 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPHeaderOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 HTTPHeaderOrBuilder extends +public interface HTTPHeaderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.HTTPHeader) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The header field name
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The header field name
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The header field value
    * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
    * The header field value
    * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java similarity index 68% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java index 5b0728ca1432..36c0d0bf2c68 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/IngressTraffic.java +++ b/java-run/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/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java similarity index 70% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java index 4fa01271a87d..740f72879d95 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.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/job.proto package com.google.cloud.run.v2; /** + * + * *
  * Job represents the configuration of a single job. A job an immutable resource
  * that references a container image which is run to completion.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.Job}
  */
-public final class Job extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Job extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Job)
     JobOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Job.newBuilder() to construct.
   private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Job() {
     name_ = "";
     uid_ = "";
@@ -34,39 +52,37 @@ private Job() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Job();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_Job_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.JobProto.internal_static_google_cloud_run_v2_Job_fieldAccessorTable
+    return com.google.cloud.run.v2.JobProto
+        .internal_static_google_cloud_run_v2_Job_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.run.v2.Job.class, com.google.cloud.run.v2.Job.Builder.class);
   }
@@ -74,6 +90,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 Job.
    * Format:
@@ -81,6 +99,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -89,14 +108,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 Job.
    * Format:
@@ -104,16 +124,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 { @@ -124,12 +143,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 Execution. 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 @@ -138,30 +160,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 Execution. 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 { @@ -172,12 +194,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 @@ -186,24 +211,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.JobProto.internal_static_google_cloud_run_v2_Job_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.JobProto + .internal_static_google_cloud_run_v2_Job_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_; } @@ -212,6 +236,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
@@ -226,22 +252,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -257,11 +283,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
@@ -277,16 +304,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -302,12 +329,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -315,24 +341,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.JobProto.internal_static_google_cloud_run_v2_Job_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.JobProto
+                .internal_static_google_cloud_run_v2_Job_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_;
   }
@@ -341,6 +367,8 @@ public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource. Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
@@ -353,22 +381,22 @@ public int getAnnotationsCount() {
    *
    * map<string, string> annotations = 5;
    */
-
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource. Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
@@ -382,11 +410,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. Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
@@ -400,16 +429,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-
   public java.lang.String getAnnotationsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource. Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
@@ -423,12 +453,11 @@ public java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 5;
    */
   @java.lang.Override
-
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -438,11 +467,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 @@ -450,11 +483,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 @@ -462,11 +499,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() { @@ -476,11 +516,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 @@ -488,11 +532,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 @@ -500,11 +548,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() { @@ -514,11 +565,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The deletion time.
    * 
* - * .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 @@ -526,11 +581,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The deletion time.
    * 
* - * .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 @@ -538,11 +597,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 = 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() { @@ -552,12 +614,16 @@ 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.
    * 
* - * .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 @@ -565,12 +631,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 = 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 @@ -578,12 +648,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 = 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() { @@ -593,11 +666,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int CREATOR_FIELD_NUMBER = 10; private volatile java.lang.Object creator_; /** + * + * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ @java.lang.Override @@ -606,29 +682,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 = 10 [(.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 { @@ -639,11 +715,14 @@ public java.lang.String getCreator() { public static final int LAST_MODIFIER_FIELD_NUMBER = 11; private volatile java.lang.Object lastModifier_; /** + * + * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifier. */ @java.lang.Override @@ -652,29 +731,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 = 11 [(.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 { @@ -685,11 +764,14 @@ public java.lang.String getLastModifier() { public static final int CLIENT_FIELD_NUMBER = 12; private volatile java.lang.Object client_; /** + * + * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 12; + * * @return The client. */ @java.lang.Override @@ -698,29 +780,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 = 12; + * * @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 { @@ -731,11 +813,14 @@ public java.lang.String getClient() { public static final int CLIENT_VERSION_FIELD_NUMBER = 13; private volatile java.lang.Object clientVersion_; /** + * + * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 13; + * * @return The clientVersion. */ @java.lang.Override @@ -744,29 +829,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 = 13; + * * @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 { @@ -777,6 +862,8 @@ public java.lang.String getClientVersion() { public static final int LAUNCH_STAGE_FIELD_NUMBER = 14; private int launchStage_; /** + * + * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -785,12 +872,16 @@ public java.lang.String getClientVersion() {
    * 
* * .google.api.LaunchStage launch_stage = 14; + * * @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).
@@ -799,9 +890,11 @@ public java.lang.String getClientVersion() {
    * 
* * .google.api.LaunchStage launch_stage = 14; + * * @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; @@ -810,11 +903,14 @@ public java.lang.String getClientVersion() { public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 15; private com.google.cloud.run.v2.BinaryAuthorization binaryAuthorization_; /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + * * @return Whether the binaryAuthorization field is set. */ @java.lang.Override @@ -822,18 +918,25 @@ public boolean hasBinaryAuthorization() { return binaryAuthorization_ != null; } /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + * * @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.
    * 
@@ -848,11 +951,16 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati public static final int TEMPLATE_FIELD_NUMBER = 16; private com.google.cloud.run.v2.ExecutionTemplate template_; /** + * + * *
    * Required. The template used to create executions for this Job.
    * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ @java.lang.Override @@ -860,23 +968,34 @@ public boolean hasTemplate() { return template_ != null; } /** + * + * *
    * Required. The template used to create executions for this Job.
    * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ @java.lang.Override public com.google.cloud.run.v2.ExecutionTemplate getTemplate() { - return template_ == null ? com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance() + : template_; } /** + * + * *
    * Required. The template used to create executions for this Job.
    * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.run.v2.ExecutionTemplateOrBuilder getTemplateOrBuilder() { @@ -886,12 +1005,15 @@ public com.google.cloud.run.v2.ExecutionTemplateOrBuilder getTemplateOrBuilder() public static final int OBSERVED_GENERATION_FIELD_NUMBER = 17; private long observedGeneration_; /** + * + * *
    * Output only. The generation of this Job. See comments in `reconciling` for additional
    * information on reconciliation process in Cloud Run.
    * 
* * int64 observed_generation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ @java.lang.Override @@ -902,12 +1024,17 @@ public long getObservedGeneration() { public static final int TERMINAL_CONDITION_FIELD_NUMBER = 18; private com.google.cloud.run.v2.Condition terminalCondition_; /** + * + * *
    * Output only. The Condition of this Job, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the terminalCondition field is set. */ @java.lang.Override @@ -915,25 +1042,36 @@ public boolean hasTerminalCondition() { return terminalCondition_ != null; } /** + * + * *
    * Output only. The Condition of this Job, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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 Job, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder() { @@ -943,6 +1081,8 @@ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder( public static final int CONDITIONS_FIELD_NUMBER = 19; private java.util.List conditions_; /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Job does not reach its
@@ -950,13 +1090,17 @@ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -964,14 +1108,18 @@ public java.util.List getConditionsList() {
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -979,13 +1127,17 @@ public java.util.List getConditionsList() {
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -993,13 +1145,17 @@ public int getConditionsCount() {
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -1007,22 +1163,26 @@ public com.google.cloud.run.v2.Condition getConditions(int index) {
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 EXECUTION_COUNT_FIELD_NUMBER = 20; private int executionCount_; /** + * + * *
    * Output only. Number of executions created for this job.
    * 
* * int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The executionCount. */ @java.lang.Override @@ -1033,11 +1193,16 @@ public int getExecutionCount() { public static final int LATEST_CREATED_EXECUTION_FIELD_NUMBER = 22; private com.google.cloud.run.v2.ExecutionReference latestCreatedExecution_; /** + * + * *
    * Output only. Name of the last created execution.
    * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the latestCreatedExecution field is set. */ @java.lang.Override @@ -1045,23 +1210,34 @@ public boolean hasLatestCreatedExecution() { return latestCreatedExecution_ != null; } /** + * + * *
    * Output only. Name of the last created execution.
    * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The latestCreatedExecution. */ @java.lang.Override public com.google.cloud.run.v2.ExecutionReference getLatestCreatedExecution() { - return latestCreatedExecution_ == null ? com.google.cloud.run.v2.ExecutionReference.getDefaultInstance() : latestCreatedExecution_; + return latestCreatedExecution_ == null + ? com.google.cloud.run.v2.ExecutionReference.getDefaultInstance() + : latestCreatedExecution_; } /** + * + * *
    * Output only. Name of the last created execution.
    * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.run.v2.ExecutionReferenceOrBuilder getLatestCreatedExecutionOrBuilder() { @@ -1071,6 +1247,8 @@ public com.google.cloud.run.v2.ExecutionReferenceOrBuilder getLatestCreatedExecu public static final int RECONCILING_FIELD_NUMBER = 23; private boolean reconciling_; /** + * + * *
    * Output only. Returns true if the Job is currently being acted upon by the system to
    * bring it into the desired state.
@@ -1093,6 +1271,7 @@ public com.google.cloud.run.v2.ExecutionReferenceOrBuilder getLatestCreatedExecu
    * 
* * bool reconciling = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1103,12 +1282,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 @@ -1117,30 +1299,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 { @@ -1149,6 +1331,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1160,8 +1343,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_); } @@ -1171,18 +1353,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()); } @@ -1253,44 +1427,39 @@ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, creator_); @@ -1305,40 +1474,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, clientVersion_); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, launchStage_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, launchStage_); } if (binaryAuthorization_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getBinaryAuthorization()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, getBinaryAuthorization()); } if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getTemplate()); } if (observedGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(17, observedGeneration_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(17, observedGeneration_); } if (terminalCondition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getTerminalCondition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getTerminalCondition()); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, conditions_.get(i)); } if (executionCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(20, executionCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(20, executionCount_); } if (latestCreatedExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getLatestCreatedExecution()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(22, getLatestCreatedExecution()); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(23, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); @@ -1351,82 +1513,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.Job)) { return super.equals(obj); } com.google.cloud.run.v2.Job other = (com.google.cloud.run.v2.Job) 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 (!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 (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 (getObservedGeneration() - != other.getObservedGeneration()) return false; + if (getObservedGeneration() != other.getObservedGeneration()) return false; if (hasTerminalCondition() != other.hasTerminalCondition()) return false; if (hasTerminalCondition()) { - if (!getTerminalCondition() - .equals(other.getTerminalCondition())) return false; + if (!getTerminalCondition().equals(other.getTerminalCondition())) return false; } - if (!getConditionsList() - .equals(other.getConditionsList())) return false; - if (getExecutionCount() - != other.getExecutionCount()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getExecutionCount() != other.getExecutionCount()) return false; if (hasLatestCreatedExecution() != other.hasLatestCreatedExecution()) return false; if (hasLatestCreatedExecution()) { - if (!getLatestCreatedExecution() - .equals(other.getLatestCreatedExecution())) return false; + if (!getLatestCreatedExecution().equals(other.getLatestCreatedExecution())) return false; } - if (getReconciling() - != other.getReconciling()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1443,8 +1583,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(); @@ -1488,8 +1627,7 @@ public int hashCode() { hash = (53 * hash) + getTemplate().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(); @@ -1505,8 +1643,7 @@ public int hashCode() { hash = (53 * hash) + getLatestCreatedExecution().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) + getUnknownFields().hashCode(); @@ -1514,97 +1651,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Job parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Job parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Job parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Job parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.Job parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Job parseFrom( com.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.Job parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Job parseFrom( - byte[] data, - com.google.protobuf.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.Job 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.Job parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.Job 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.Job parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.Job parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.cloud.run.v2.Job 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.Job parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.Job prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Job represents the configuration of a single job. A job an immutable resource
    * that references a container image which is run to completion.
@@ -1612,59 +1755,54 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.Job}
    */
-  public static final class Builder extends
-      com.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.Job)
       com.google.cloud.run.v2.JobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_Job_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.JobProto.internal_static_google_cloud_run_v2_Job_fieldAccessorTable
+      return com.google.cloud.run.v2.JobProto
+          .internal_static_google_cloud_run_v2_Job_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.cloud.run.v2.Job.class, com.google.cloud.run.v2.Job.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.Job.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1753,8 +1891,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_Job_descriptor;
     }
 
@@ -1849,38 +1986,39 @@ public com.google.cloud.run.v2.Job buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.Job) {
-        return mergeFrom((com.google.cloud.run.v2.Job)other);
+        return mergeFrom((com.google.cloud.run.v2.Job) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1900,10 +2038,8 @@ public Builder mergeFrom(com.google.cloud.run.v2.Job 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());
       }
@@ -1965,9 +2101,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Job other) {
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -2012,170 +2149,187 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              uid_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            case 24: {
-              generation_ = input.readInt64();
-
-              break;
-            } // case 24
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              break;
-            } // case 34
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getExpireTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 74
-            case 82: {
-              creator_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 82
-            case 90: {
-              lastModifier_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 90
-            case 98: {
-              client_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                uid_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            case 24:
+              {
+                generation_ = input.readInt64();
+
+                break;
+              } // case 24
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 74
+            case 82:
+              {
+                creator_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 82
+            case 90:
+              {
+                lastModifier_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 90
+            case 98:
+              {
+                client_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 98
+            case 106:
+              {
+                clientVersion_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 106
+            case 112:
+              {
+                launchStage_ = input.readEnum();
+
+                break;
+              } // case 112
+            case 122:
+              {
+                input.readMessage(
+                    getBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 122
+            case 130:
+              {
+                input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 130
+            case 136:
+              {
+                observedGeneration_ = input.readInt64();
+
+                break;
+              } // case 136
+            case 146:
+              {
+                input.readMessage(
+                    getTerminalConditionFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 146
+            case 154:
+              {
+                com.google.cloud.run.v2.Condition m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 154
+            case 160:
+              {
+                executionCount_ = input.readInt32();
+
+                break;
+              } // case 160
+            case 178:
+              {
+                input.readMessage(
+                    getLatestCreatedExecutionFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 178
+            case 184:
+              {
+                reconciling_ = input.readBool();
+
+                break;
+              } // case 184
+            case 794:
+              {
+                etag_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 794
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+          } // switch (tag)
+        } // while (!done)
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.unwrapIOException();
+      } finally {
+        onChanged();
+      } // finally
+      return this;
+    }
 
-              break;
-            } // case 98
-            case 106: {
-              clientVersion_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 106
-            case 112: {
-              launchStage_ = input.readEnum();
-
-              break;
-            } // case 112
-            case 122: {
-              input.readMessage(
-                  getBinaryAuthorizationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 122
-            case 130: {
-              input.readMessage(
-                  getTemplateFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 130
-            case 136: {
-              observedGeneration_ = input.readInt64();
-
-              break;
-            } // case 136
-            case 146: {
-              input.readMessage(
-                  getTerminalConditionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 146
-            case 154: {
-              com.google.cloud.run.v2.Condition m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.Condition.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 154
-            case 160: {
-              executionCount_ = input.readInt32();
-
-              break;
-            } // case 160
-            case 178: {
-              input.readMessage(
-                  getLatestCreatedExecutionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 178
-            case 184: {
-              reconciling_ = input.readBool();
-
-              break;
-            } // case 184
-            case 794: {
-              etag_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 794
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
-          } // switch (tag)
-        } // while (!done)
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.unwrapIOException();
-      } finally {
-        onChanged();
-      } // finally
-      return this;
-    }
-    private int bitField0_;
+    private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The fully qualified name of this Job.
      * Format:
@@ -2183,13 +2337,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; @@ -2198,6 +2352,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The fully qualified name of this Job.
      * Format:
@@ -2205,15 +2361,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 { @@ -2221,6 +2376,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The fully qualified name of this Job.
      * Format:
@@ -2228,20 +2385,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 Job.
      * Format:
@@ -2249,15 +2408,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 Job.
      * Format:
@@ -2265,16 +2427,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; @@ -2282,19 +2444,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server assigned unique identifier for the Execution. 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; @@ -2303,21 +2467,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the Execution. 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 { @@ -2325,70 +2490,80 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the Execution. 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 Execution. 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 Execution. 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 @@ -2396,53 +2571,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(); @@ -2454,6 +2634,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
@@ -2468,22 +2650,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2499,11 +2681,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
@@ -2519,16 +2702,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2544,12 +2728,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2557,11 +2740,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
@@ -2576,23 +2760,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2607,19 +2789,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2634,30 +2817,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();
@@ -2669,6 +2851,8 @@ public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
+     *
+     *
      * 
      * KRM-style annotations for the resource. Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
@@ -2681,22 +2865,22 @@ public int getAnnotationsCount() {
      *
      * map<string, string> annotations = 5;
      */
-
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style annotations for the resource. Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
@@ -2710,11 +2894,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. Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
@@ -2728,16 +2913,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-
     public java.lang.String getAnnotationsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * KRM-style annotations for the resource. Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
@@ -2751,12 +2937,11 @@ public java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 5;
      */
     @java.lang.Override
-
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2764,11 +2949,12 @@ public java.lang.String getAnnotationsOrThrow(
     }
 
     public Builder clearAnnotations() {
-      internalGetMutableAnnotations().getMutableMap()
-          .clear();
+      internalGetMutableAnnotations().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * KRM-style annotations for the resource. Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
@@ -2781,23 +2967,21 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 5;
      */
-
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style annotations for the resource. Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
@@ -2810,19 +2994,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 5;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * KRM-style annotations for the resource. Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
@@ -2835,49 +3020,65 @@ public Builder putAnnotations(
      *
      * 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) { @@ -2893,14 +3094,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(); @@ -2911,17 +3115,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; } @@ -2933,11 +3141,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) { @@ -2951,48 +3163,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_; @@ -3000,39 +3228,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) { @@ -3048,14 +3295,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(); @@ -3066,17 +3316,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; } @@ -3088,11 +3342,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) { @@ -3106,48 +3364,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_; @@ -3155,39 +3429,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 = 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. The deletion time.
      * 
* - * .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. The deletion time.
      * 
* - * .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) { @@ -3203,14 +3496,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .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(); @@ -3221,17 +3517,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .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; } @@ -3243,11 +3543,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .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) { @@ -3261,48 +3565,64 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The deletion time.
      * 
* - * .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. The deletion time.
      * 
* - * .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. The deletion time.
      * 
* - * .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_; @@ -3310,42 +3630,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 = 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.
      * 
* - * .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.
      * 
* - * .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) { @@ -3361,15 +3700,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 = 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(); @@ -3380,18 +3722,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 = 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; } @@ -3403,12 +3749,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 = 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) { @@ -3422,51 +3772,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 = 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.
      * 
* - * .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.
      * 
* - * .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_; @@ -3474,18 +3840,20 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object creator_ = ""; /** + * + * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 10 [(.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; @@ -3494,20 +3862,21 @@ public java.lang.String getCreator() { } } /** + * + * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 10 [(.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 { @@ -3515,54 +3884,61 @@ public java.lang.String getCreator() { } } /** + * + * *
      * Output only. Email address of the authenticated creator.
      * 
* * string creator = 10 [(.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 = 10 [(.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 = 10 [(.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; @@ -3570,18 +3946,20 @@ public Builder setCreatorBytes( private java.lang.Object lastModifier_ = ""; /** + * + * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 11 [(.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; @@ -3590,20 +3968,21 @@ public java.lang.String getLastModifier() { } } /** + * + * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 11 [(.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 { @@ -3611,54 +3990,61 @@ public java.lang.String getLastModifier() { } } /** + * + * *
      * Output only. Email address of the last authenticated modifier.
      * 
* * string last_modifier = 11 [(.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 = 11 [(.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 = 11 [(.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; @@ -3666,18 +4052,20 @@ public Builder setLastModifierBytes( private java.lang.Object client_ = ""; /** + * + * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 12; + * * @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; @@ -3686,20 +4074,21 @@ public java.lang.String getClient() { } } /** + * + * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 12; + * * @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 { @@ -3707,54 +4096,61 @@ public java.lang.String getClient() { } } /** + * + * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 12; + * * @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 = 12; + * * @return This builder for chaining. */ public Builder clearClient() { - + client_ = getDefaultInstance().getClient(); onChanged(); return this; } /** + * + * *
      * Arbitrary identifier for the API client.
      * 
* * string client = 12; + * * @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; @@ -3762,18 +4158,20 @@ public Builder setClientBytes( private java.lang.Object clientVersion_ = ""; /** + * + * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 13; + * * @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; @@ -3782,20 +4180,21 @@ public java.lang.String getClientVersion() { } } /** + * + * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 13; + * * @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 { @@ -3803,54 +4202,61 @@ public java.lang.String getClientVersion() { } } /** + * + * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 13; + * * @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 = 13; + * * @return This builder for chaining. */ public Builder clearClientVersion() { - + clientVersion_ = getDefaultInstance().getClientVersion(); onChanged(); return this; } /** + * + * *
      * Arbitrary version identifier for the API client.
      * 
* * string client_version = 13; + * * @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; @@ -3858,6 +4264,8 @@ public Builder setClientVersionBytes( private int launchStage_ = 0; /** + * + * *
      * The launch stage as defined by [Google Cloud Platform
      * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -3866,12 +4274,16 @@ public Builder setClientVersionBytes(
      * 
* * .google.api.LaunchStage launch_stage = 14; + * * @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).
@@ -3880,16 +4292,19 @@ public Builder setClientVersionBytes(
      * 
* * .google.api.LaunchStage launch_stage = 14; + * * @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).
@@ -3898,6 +4313,7 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 14; + * * @return The launchStage. */ @java.lang.Override @@ -3907,6 +4323,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).
@@ -3915,6 +4333,7 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 14; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -3922,12 +4341,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).
@@ -3936,10 +4357,11 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) {
      * 
* * .google.api.LaunchStage launch_stage = 14; + * * @return This builder for chaining. */ public Builder clearLaunchStage() { - + launchStage_ = 0; onChanged(); return this; @@ -3947,34 +4369,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 = 15; + * * @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 = 15; + * * @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.
      * 
@@ -3995,6 +4430,8 @@ public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizatio return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4013,6 +4450,8 @@ public Builder setBinaryAuthorization( return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4023,7 +4462,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; } @@ -4035,6 +4476,8 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4053,6 +4496,8 @@ public Builder clearBinaryAuthorization() { return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4060,11 +4505,13 @@ public Builder clearBinaryAuthorization() { * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; */ public com.google.cloud.run.v2.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { - + onChanged(); return getBinaryAuthorizationFieldBuilder().getBuilder(); } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4075,11 +4522,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.
      * 
@@ -4087,14 +4537,17 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; */ 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_; @@ -4102,39 +4555,58 @@ public com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizati private com.google.cloud.run.v2.ExecutionTemplate template_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.ExecutionTemplate, com.google.cloud.run.v2.ExecutionTemplate.Builder, com.google.cloud.run.v2.ExecutionTemplateOrBuilder> templateBuilder_; + com.google.cloud.run.v2.ExecutionTemplate, + com.google.cloud.run.v2.ExecutionTemplate.Builder, + com.google.cloud.run.v2.ExecutionTemplateOrBuilder> + templateBuilder_; /** + * + * *
      * Required. The template used to create executions for this Job.
      * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.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 executions for this Job.
      * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ public com.google.cloud.run.v2.ExecutionTemplate getTemplate() { if (templateBuilder_ == null) { - return template_ == null ? com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance() + : template_; } else { return templateBuilder_.getMessage(); } } /** + * + * *
      * Required. The template used to create executions for this Job.
      * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTemplate(com.google.cloud.run.v2.ExecutionTemplate value) { if (templateBuilder_ == null) { @@ -4150,14 +4622,17 @@ public Builder setTemplate(com.google.cloud.run.v2.ExecutionTemplate value) { return this; } /** + * + * *
      * Required. The template used to create executions for this Job.
      * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTemplate( - com.google.cloud.run.v2.ExecutionTemplate.Builder builderForValue) { + public Builder setTemplate(com.google.cloud.run.v2.ExecutionTemplate.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); @@ -4168,17 +4643,23 @@ public Builder setTemplate( return this; } /** + * + * *
      * Required. The template used to create executions for this Job.
      * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeTemplate(com.google.cloud.run.v2.ExecutionTemplate value) { if (templateBuilder_ == null) { if (template_ != null) { template_ = - com.google.cloud.run.v2.ExecutionTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.ExecutionTemplate.newBuilder(template_) + .mergeFrom(value) + .buildPartial(); } else { template_ = value; } @@ -4190,11 +4671,15 @@ public Builder mergeTemplate(com.google.cloud.run.v2.ExecutionTemplate value) { return this; } /** + * + * *
      * Required. The template used to create executions for this Job.
      * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTemplate() { if (templateBuilder_ == null) { @@ -4208,61 +4693,80 @@ public Builder clearTemplate() { return this; } /** + * + * *
      * Required. The template used to create executions for this Job.
      * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.ExecutionTemplate.Builder getTemplateBuilder() { - + onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The template used to create executions for this Job.
      * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.ExecutionTemplateOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { - return template_ == null ? - com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance() : template_; + return template_ == null + ? com.google.cloud.run.v2.ExecutionTemplate.getDefaultInstance() + : template_; } } /** + * + * *
      * Required. The template used to create executions for this Job.
      * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.ExecutionTemplate, com.google.cloud.run.v2.ExecutionTemplate.Builder, com.google.cloud.run.v2.ExecutionTemplateOrBuilder> + com.google.cloud.run.v2.ExecutionTemplate, + com.google.cloud.run.v2.ExecutionTemplate.Builder, + com.google.cloud.run.v2.ExecutionTemplateOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.ExecutionTemplate, com.google.cloud.run.v2.ExecutionTemplate.Builder, com.google.cloud.run.v2.ExecutionTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); + templateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.ExecutionTemplate, + com.google.cloud.run.v2.ExecutionTemplate.Builder, + com.google.cloud.run.v2.ExecutionTemplateOrBuilder>( + getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } - private long observedGeneration_ ; + private long observedGeneration_; /** + * + * *
      * Output only. The generation of this Job. See comments in `reconciling` for additional
      * information on reconciliation process in Cloud Run.
      * 
* * int64 observed_generation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ @java.lang.Override @@ -4270,32 +4774,38 @@ public long getObservedGeneration() { return observedGeneration_; } /** + * + * *
      * Output only. The generation of this Job. See comments in `reconciling` for additional
      * information on reconciliation process in Cloud Run.
      * 
* * int64 observed_generation = 17 [(.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 Job. See comments in `reconciling` for additional
      * information on reconciliation process in Cloud Run.
      * 
* * int64 observed_generation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearObservedGeneration() { - + observedGeneration_ = 0L; onChanged(); return this; @@ -4303,42 +4813,61 @@ 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 Job, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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 Job, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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 Job, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition value) { if (terminalConditionBuilder_ == null) { @@ -4354,15 +4883,18 @@ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition value) { return this; } /** + * + * *
      * Output only. The Condition of this Job, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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(); @@ -4373,18 +4905,24 @@ public Builder setTerminalCondition( return this; } /** + * + * *
      * Output only. The Condition of this Job, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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; } @@ -4396,12 +4934,16 @@ public Builder mergeTerminalCondition(com.google.cloud.run.v2.Condition value) { return this; } /** + * + * *
      * Output only. The Condition of this Job, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTerminalCondition() { if (terminalConditionBuilder_ == null) { @@ -4415,69 +4957,91 @@ public Builder clearTerminalCondition() { return this; } /** + * + * *
      * Output only. The Condition of this Job, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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 Job, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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 Job, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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_ & 0x00000004) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000004; - } + } } 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 Job does not reach its
@@ -4485,7 +5049,9 @@ private void ensureConditionsIsMutable() {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -4495,6 +5061,8 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Job does not reach its
@@ -4502,7 +5070,9 @@ public java.util.List getConditionsList() {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -4512,6 +5082,8 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Job does not reach its
@@ -4519,7 +5091,9 @@ public int getConditionsCount() {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.Condition getConditions(int index) { if (conditionsBuilder_ == null) { @@ -4529,6 +5103,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 Job does not reach its
@@ -4536,10 +5112,11 @@ public com.google.cloud.run.v2.Condition getConditions(int index) {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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(); @@ -4553,6 +5130,8 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Job does not reach its
@@ -4560,7 +5139,9 @@ public Builder setConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -4574,6 +5155,8 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Job does not reach its
@@ -4581,7 +5164,9 @@ public Builder setConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { @@ -4597,6 +5182,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 Job does not reach its
@@ -4604,10 +5191,11 @@ public Builder addConditions(com.google.cloud.run.v2.Condition value) {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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(); @@ -4621,6 +5209,8 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Job does not reach its
@@ -4628,10 +5218,11 @@ public Builder addConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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()); @@ -4642,6 +5233,8 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Job does not reach its
@@ -4649,7 +5242,9 @@ public Builder addConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -4663,6 +5258,8 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Job does not reach its
@@ -4670,14 +5267,15 @@ public Builder addConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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); @@ -4685,6 +5283,8 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Job does not reach its
@@ -4692,7 +5292,9 @@ public Builder addAllConditions(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -4705,6 +5307,8 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. The Conditions of all other associated sub-resources. They contain
      * additional diagnostics information in case the Job does not reach its
@@ -4712,7 +5316,9 @@ public Builder clearConditions() {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -4725,6 +5331,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 Job does not reach its
@@ -4732,13 +5340,16 @@ public Builder removeConditions(int index) {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -4746,16 +5357,20 @@ public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -4763,10 +5378,12 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -4774,6 +5391,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 Job does not reach its
@@ -4781,13 +5400,17 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -4795,14 +5418,17 @@ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder() {
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -4810,34 +5436,41 @@ public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder(
      * reconciliation process in Cloud Run.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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_ & 0x00000004) != 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_ & 0x00000004) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } - private int executionCount_ ; + private int executionCount_; /** + * + * *
      * Output only. Number of executions created for this job.
      * 
* * int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The executionCount. */ @java.lang.Override @@ -4845,30 +5478,36 @@ public int getExecutionCount() { return executionCount_; } /** + * + * *
      * Output only. Number of executions created for this job.
      * 
* * int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The executionCount to set. * @return This builder for chaining. */ public Builder setExecutionCount(int value) { - + executionCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Number of executions created for this job.
      * 
* * int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearExecutionCount() { - + executionCount_ = 0; onChanged(); return this; @@ -4876,39 +5515,58 @@ public Builder clearExecutionCount() { private com.google.cloud.run.v2.ExecutionReference latestCreatedExecution_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.ExecutionReference, com.google.cloud.run.v2.ExecutionReference.Builder, com.google.cloud.run.v2.ExecutionReferenceOrBuilder> latestCreatedExecutionBuilder_; + com.google.cloud.run.v2.ExecutionReference, + com.google.cloud.run.v2.ExecutionReference.Builder, + com.google.cloud.run.v2.ExecutionReferenceOrBuilder> + latestCreatedExecutionBuilder_; /** + * + * *
      * Output only. Name of the last created execution.
      * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the latestCreatedExecution field is set. */ public boolean hasLatestCreatedExecution() { return latestCreatedExecutionBuilder_ != null || latestCreatedExecution_ != null; } /** + * + * *
      * Output only. Name of the last created execution.
      * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The latestCreatedExecution. */ public com.google.cloud.run.v2.ExecutionReference getLatestCreatedExecution() { if (latestCreatedExecutionBuilder_ == null) { - return latestCreatedExecution_ == null ? com.google.cloud.run.v2.ExecutionReference.getDefaultInstance() : latestCreatedExecution_; + return latestCreatedExecution_ == null + ? com.google.cloud.run.v2.ExecutionReference.getDefaultInstance() + : latestCreatedExecution_; } else { return latestCreatedExecutionBuilder_.getMessage(); } } /** + * + * *
      * Output only. Name of the last created execution.
      * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLatestCreatedExecution(com.google.cloud.run.v2.ExecutionReference value) { if (latestCreatedExecutionBuilder_ == null) { @@ -4924,11 +5582,15 @@ public Builder setLatestCreatedExecution(com.google.cloud.run.v2.ExecutionRefere return this; } /** + * + * *
      * Output only. Name of the last created execution.
      * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLatestCreatedExecution( com.google.cloud.run.v2.ExecutionReference.Builder builderForValue) { @@ -4942,17 +5604,23 @@ public Builder setLatestCreatedExecution( return this; } /** + * + * *
      * Output only. Name of the last created execution.
      * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeLatestCreatedExecution(com.google.cloud.run.v2.ExecutionReference value) { if (latestCreatedExecutionBuilder_ == null) { if (latestCreatedExecution_ != null) { latestCreatedExecution_ = - com.google.cloud.run.v2.ExecutionReference.newBuilder(latestCreatedExecution_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.ExecutionReference.newBuilder(latestCreatedExecution_) + .mergeFrom(value) + .buildPartial(); } else { latestCreatedExecution_ = value; } @@ -4964,11 +5632,15 @@ public Builder mergeLatestCreatedExecution(com.google.cloud.run.v2.ExecutionRefe return this; } /** + * + * *
      * Output only. Name of the last created execution.
      * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLatestCreatedExecution() { if (latestCreatedExecutionBuilder_ == null) { @@ -4982,55 +5654,74 @@ public Builder clearLatestCreatedExecution() { return this; } /** + * + * *
      * Output only. Name of the last created execution.
      * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.ExecutionReference.Builder getLatestCreatedExecutionBuilder() { - + onChanged(); return getLatestCreatedExecutionFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Name of the last created execution.
      * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.run.v2.ExecutionReferenceOrBuilder getLatestCreatedExecutionOrBuilder() { + public com.google.cloud.run.v2.ExecutionReferenceOrBuilder + getLatestCreatedExecutionOrBuilder() { if (latestCreatedExecutionBuilder_ != null) { return latestCreatedExecutionBuilder_.getMessageOrBuilder(); } else { - return latestCreatedExecution_ == null ? - com.google.cloud.run.v2.ExecutionReference.getDefaultInstance() : latestCreatedExecution_; + return latestCreatedExecution_ == null + ? com.google.cloud.run.v2.ExecutionReference.getDefaultInstance() + : latestCreatedExecution_; } } /** + * + * *
      * Output only. Name of the last created execution.
      * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.ExecutionReference, com.google.cloud.run.v2.ExecutionReference.Builder, com.google.cloud.run.v2.ExecutionReferenceOrBuilder> + com.google.cloud.run.v2.ExecutionReference, + com.google.cloud.run.v2.ExecutionReference.Builder, + com.google.cloud.run.v2.ExecutionReferenceOrBuilder> getLatestCreatedExecutionFieldBuilder() { if (latestCreatedExecutionBuilder_ == null) { - latestCreatedExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.ExecutionReference, com.google.cloud.run.v2.ExecutionReference.Builder, com.google.cloud.run.v2.ExecutionReferenceOrBuilder>( - getLatestCreatedExecution(), - getParentForChildren(), - isClean()); + latestCreatedExecutionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.ExecutionReference, + com.google.cloud.run.v2.ExecutionReference.Builder, + com.google.cloud.run.v2.ExecutionReferenceOrBuilder>( + getLatestCreatedExecution(), getParentForChildren(), isClean()); latestCreatedExecution_ = null; } return latestCreatedExecutionBuilder_; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Returns true if the Job is currently being acted upon by the system to
      * bring it into the desired state.
@@ -5053,6 +5744,7 @@ public com.google.cloud.run.v2.ExecutionReferenceOrBuilder getLatestCreatedExecu
      * 
* * bool reconciling = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -5060,6 +5752,8 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Returns true if the Job is currently being acted upon by the system to
      * bring it into the desired state.
@@ -5082,16 +5776,19 @@ public boolean getReconciling() {
      * 
* * bool reconciling = 23 [(.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 Job is currently being acted upon by the system to
      * bring it into the desired state.
@@ -5114,10 +5811,11 @@ public Builder setReconciling(boolean value) {
      * 
* * bool reconciling = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { - + reconciling_ = false; onChanged(); return this; @@ -5125,19 +5823,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; @@ -5146,21 +5846,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 { @@ -5168,64 +5869,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); } @@ -5235,12 +5943,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Job) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Job) private static final com.google.cloud.run.v2.Job DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Job(); } @@ -5249,27 +5957,27 @@ public static com.google.cloud.run.v2.Job getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Job parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Job parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5284,6 +5992,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Job getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java similarity index 80% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java index 6ebe8741ea62..64c976a746ae 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.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/job.proto package com.google.cloud.run.v2; -public interface JobOrBuilder extends +public interface JobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Job) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The fully qualified name of this Job.
    * Format:
@@ -15,10 +33,13 @@ public interface JobOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The fully qualified name of this Job.
    * Format:
@@ -26,45 +47,55 @@ public interface JobOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Server assigned unique identifier for the Execution. 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 Execution. 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
@@ -81,6 +112,8 @@ public interface JobOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -95,15 +128,13 @@ public interface JobOrBuilder 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
@@ -118,9 +149,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
@@ -137,11 +169,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -156,11 +190,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. Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
@@ -175,6 +209,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource. Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
@@ -187,15 +223,13 @@ java.lang.String getLabelsOrThrow(
    *
    * 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. Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
@@ -208,9 +242,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 5;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource. Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
@@ -225,11 +260,13 @@ boolean containsAnnotations(
    */
 
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource. Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
@@ -242,202 +279,266 @@ java.lang.String getAnnotationsOrDefault(
    *
    * 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. The deletion time.
    * 
* - * .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. The deletion time.
    * 
* - * .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. The deletion time.
    * 
* - * .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.
    * 
* - * .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.
    * 
* - * .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.
    * 
* - * .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(); /** + * + * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ java.lang.String getCreator(); /** + * + * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 10 [(.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 = 11 [(.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 = 11 [(.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 = 12; + * * @return The client. */ java.lang.String getClient(); /** + * + * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 12; + * * @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 = 13; + * * @return The clientVersion. */ java.lang.String getClientVersion(); /** + * + * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 13; + * * @return The bytes for clientVersion. */ - com.google.protobuf.ByteString - getClientVersionBytes(); + com.google.protobuf.ByteString getClientVersionBytes(); /** + * + * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -446,10 +547,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 14; + * * @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).
@@ -458,29 +562,38 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 14; + * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + * * @return Whether the binaryAuthorization field is set. */ boolean hasBinaryAuthorization(); /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 15; + * * @return The binaryAuthorization. */ com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization(); /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
@@ -490,74 +603,107 @@ java.lang.String getAnnotationsOrThrow( com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); /** + * + * *
    * Required. The template used to create executions for this Job.
    * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ boolean hasTemplate(); /** + * + * *
    * Required. The template used to create executions for this Job.
    * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ com.google.cloud.run.v2.ExecutionTemplate getTemplate(); /** + * + * *
    * Required. The template used to create executions for this Job.
    * 
* - * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.ExecutionTemplate template = 16 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.run.v2.ExecutionTemplateOrBuilder getTemplateOrBuilder(); /** + * + * *
    * Output only. The generation of this Job. See comments in `reconciling` for additional
    * information on reconciliation process in Cloud Run.
    * 
* * int64 observed_generation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ long getObservedGeneration(); /** + * + * *
    * Output only. The Condition of this Job, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the terminalCondition field is set. */ boolean hasTerminalCondition(); /** + * + * *
    * Output only. The Condition of this Job, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The terminalCondition. */ com.google.cloud.run.v2.Condition getTerminalCondition(); /** + * + * *
    * Output only. The Condition of this Job, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 18 [(.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 Job does not reach its
@@ -565,11 +711,14 @@ java.lang.String getAnnotationsOrThrow(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -577,10 +726,14 @@ java.lang.String getAnnotationsOrThrow(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -588,10 +741,14 @@ java.lang.String getAnnotationsOrThrow(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -599,11 +756,14 @@ java.lang.String getAnnotationsOrThrow(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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 Job does not reach its
@@ -611,49 +771,69 @@ java.lang.String getAnnotationsOrThrow(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 19 [(.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. Number of executions created for this job.
    * 
* * int32 execution_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The executionCount. */ int getExecutionCount(); /** + * + * *
    * Output only. Name of the last created execution.
    * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the latestCreatedExecution field is set. */ boolean hasLatestCreatedExecution(); /** + * + * *
    * Output only. Name of the last created execution.
    * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The latestCreatedExecution. */ com.google.cloud.run.v2.ExecutionReference getLatestCreatedExecution(); /** + * + * *
    * Output only. Name of the last created execution.
    * 
* - * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.ExecutionReference latest_created_execution = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.ExecutionReferenceOrBuilder getLatestCreatedExecutionOrBuilder(); /** + * + * *
    * Output only. Returns true if the Job is currently being acted upon by the system to
    * bring it into the desired state.
@@ -676,29 +856,35 @@ com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * bool reconciling = 23 [(.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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java new file mode 100644 index 000000000000..8c6298825459 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java @@ -0,0 +1,341 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/job.proto + +package com.google.cloud.run.v2; + +public final class JobProto { + private JobProto() {} + + 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_CreateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_GetJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RunJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Job_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Job_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Job_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Job_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ExecutionReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ExecutionReference_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\035google/cloud/run/v2/job.proto\022\023google." + + "cloud.run.v2\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\035google/api/launch_" + + "stage.proto\032\031google/api/resource.proto\032#" + + "google/cloud/run/v2/condition.proto\032,goo" + + "gle/cloud/run/v2/execution_template.prot" + + "o\032)google/cloud/run/v2/vendor_settings.p" + + "roto\032\036google/iam/v1/iam_policy.proto\032\032go" + + "ogle/iam/v1/policy.proto\032#google/longrun" + + "ning/operations.proto\032\037google/protobuf/t" + + "imestamp.proto\"\232\001\n\020CreateJobRequest\022.\n\006p" + + "arent\030\001 \001(\tB\036\340A\002\372A\030\022\026run.googleapis.com/" + + "Job\022*\n\003job\030\002 \001(\0132\030.google.cloud.run.v2.J" + + "obB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022\025\n\rvalidate" + + "_only\030\004 \001(\010\"=\n\rGetJobRequest\022,\n\004name\030\001 \001" + + "(\tB\036\340A\002\372A\030\n\026run.googleapis.com/Job\"l\n\020Up" + + "dateJobRequest\022*\n\003job\030\001 \001(\0132\030.google.clo" + + "ud.run.v2.JobB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" + + "\010\022\025\n\rallow_missing\030\004 \001(\010\"~\n\017ListJobsRequ" + + "est\022.\n\006parent\030\001 \001(\tB\036\340A\002\372A\030\022\026run.googlea" + + "pis.com/Job\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\"S\n\020List" + + "JobsResponse\022&\n\004jobs\030\001 \003(\0132\030.google.clou" + + "d.run.v2.Job\022\027\n\017next_page_token\030\002 \001(\t\"e\n" + + "\020DeleteJobRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + + "\026run.googleapis.com/Job\022\025\n\rvalidate_only" + + "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"b\n\rRunJobRequest\022,\n" + + "\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026run.googleapis.com/" + + "Job\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" + + "\"\212\t\n\003Job\022\014\n\004name\030\001 \001(\t\022\020\n\003uid\030\002 \001(\tB\003\340A\003" + + "\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0224\n\006labels\030\004 \003(" + + "\0132$.google.cloud.run.v2.Job.LabelsEntry\022" + + ">\n\013annotations\030\005 \003(\0132).google.cloud.run." + + "v2.Job.AnnotationsEntry\0224\n\013create_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\007 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013expire_time" + + "\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "\024\n\007creator\030\n \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\013" + + " \001(\tB\003\340A\003\022\016\n\006client\030\014 \001(\t\022\026\n\016client_vers" + + "ion\030\r \001(\t\022-\n\014launch_stage\030\016 \001(\0162\027.google" + + ".api.LaunchStage\022F\n\024binary_authorization" + + "\030\017 \001(\0132(.google.cloud.run.v2.BinaryAutho" + + "rization\022=\n\010template\030\020 \001(\0132&.google.clou" + + "d.run.v2.ExecutionTemplateB\003\340A\002\022 \n\023obser" + + "ved_generation\030\021 \001(\003B\003\340A\003\022?\n\022terminal_co" + + "ndition\030\022 \001(\0132\036.google.cloud.run.v2.Cond" + + "itionB\003\340A\003\0227\n\nconditions\030\023 \003(\0132\036.google." + + "cloud.run.v2.ConditionB\003\340A\003\022\034\n\017execution" + + "_count\030\024 \001(\005B\003\340A\003\022N\n\030latest_created_exec" + + "ution\030\026 \001(\0132\'.google.cloud.run.v2.Execut" + + "ionReferenceB\003\340A\003\022\030\n\013reconciling\030\027 \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\020Annotat" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001:R\352AO\n\026run.googleapis.com/Job\0222projects" + + "/{project}/locations/{location}/jobs/{jo" + + "b}R\001\001\"\253\001\n\022ExecutionReference\022/\n\004name\030\001 \001" + + "(\tB!\372A\036\n\034run.googleapis.com/Execution\022/\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\0223\n\017completion_time\030\003 \001(\0132\032.google" + + ".protobuf.Timestamp2\314\013\n\004Jobs\022\251\001\n\tCreateJ" + + "ob\022%.google.cloud.run.v2.CreateJobReques" + + "t\032\035.google.longrunning.Operation\"V\202\323\344\223\002/" + + "\"(/v2/{parent=projects/*/locations/*}/jo" + + "bs:\003job\332A\021parent,job,job_id\312A\n\n\003Job\022\003Job" + + "\022\177\n\006GetJob\022\".google.cloud.run.v2.GetJobR" + + "equest\032\030.google.cloud.run.v2.Job\"7\202\323\344\223\002*" + + "\022(/v2/{name=projects/*/locations/*/jobs/" + + "*}\332A\004name\022\222\001\n\010ListJobs\022$.google.cloud.ru" + + "n.v2.ListJobsRequest\032%.google.cloud.run." + + "v2.ListJobsResponse\"9\202\323\344\223\002*\022(/v2/{parent" + + "=projects/*/locations/*}/jobs\332A\006parent\022\237" + + "\001\n\tUpdateJob\022%.google.cloud.run.v2.Updat" + + "eJobRequest\032\035.google.longrunning.Operati" + + "on\"L\202\323\344\223\00232,/v2/{job.name=projects/*/loc" + + "ations/*/jobs/*}:\003job\332A\003job\312A\n\n\003Job\022\003Job" + + "\022\227\001\n\tDeleteJob\022%.google.cloud.run.v2.Del" + + "eteJobRequest\032\035.google.longrunning.Opera" + + "tion\"D\202\323\344\223\002**(/v2/{name=projects/*/locat" + + "ions/*/jobs/*}\332A\004name\312A\n\n\003Job\022\003Job\022\244\001\n\006R" + + "unJob\022\".google.cloud.run.v2.RunJobReques" + + "t\032\035.google.longrunning.Operation\"W\202\323\344\223\0021" + + "\",/v2/{name=projects/*/locations/*/jobs/" + + "*}:run:\001*\332A\004name\312A\026\n\tExecution\022\tExecutio" + + "n\022\214\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" + + "mPolicyRequest\032\025.google.iam.v1.Policy\"A\202" + + "\323\344\223\002;\0229/v2/{resource=projects/*/location" + + "s/*/jobs/*}:getIamPolicy\022\217\001\n\014SetIamPolic" + + "y\022\".google.iam.v1.SetIamPolicyRequest\032\025." + + "google.iam.v1.Policy\"D\202\323\344\223\002>\"9/v2/{resou" + + "rce=projects/*/locations/*/jobs/*}:setIa" + + "mPolicy:\001*\022\265\001\n\022TestIamPermissions\022(.goog" + + "le.iam.v1.TestIamPermissionsRequest\032).go" + + "ogle.iam.v1.TestIamPermissionsResponse\"J" + + "\202\323\344\223\002D\"?/v2/{resource=projects/*/locatio" + + "ns/*/jobs/*}:testIamPermissions:\001*\032F\312A\022r" + + "un.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB]\n\027com.google" + + ".cloud.run.v2B\010JobProtoP\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.ExecutionTemplateProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_CreateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_CreateJobRequest_descriptor, + new java.lang.String[] { + "Parent", "Job", "JobId", "ValidateOnly", + }); + internal_static_google_cloud_run_v2_GetJobRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor, + new java.lang.String[] { + "Job", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_run_v2_ListJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_cloud_run_v2_ListJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListJobsResponse_descriptor, + new java.lang.String[] { + "Jobs", "NextPageToken", + }); + internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_run_v2_RunJobRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RunJobRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_run_v2_Job_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_run_v2_Job_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Job_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "Generation", + "Labels", + "Annotations", + "CreateTime", + "UpdateTime", + "DeleteTime", + "ExpireTime", + "Creator", + "LastModifier", + "Client", + "ClientVersion", + "LaunchStage", + "BinaryAuthorization", + "Template", + "ObservedGeneration", + "TerminalCondition", + "Conditions", + "ExecutionCount", + "LatestCreatedExecution", + "Reconciling", + "Etag", + }); + internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Job_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Job_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_Job_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Job_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Job_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Job_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_ExecutionReference_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_run_v2_ExecutionReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ExecutionReference_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "CompletionTime", + }); + 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.ExecutionTemplateProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java new file mode 100644 index 000000000000..18a11fdfc40c --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java @@ -0,0 +1,329 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Probe_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Probe_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_HTTPHeader_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_TCPSocketAction_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\"\234\003\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\022\023\n\013working_dir\030\t \001(\t\0222\n\016liveness" + + "_probe\030\n \001(\0132\032.google.cloud.run.v2.Probe" + + "\0221\n\rstartup_probe\030\013 \001(\0132\032.google.cloud.r" + + "un.v2.Probe\"\236\001\n\024ResourceRequirements\022E\n\006" + + "limits\030\001 \003(\01325.google.cloud.run.v2.Resou" + + "rceRequirements.LimitsEntry\022\020\n\010cpu_idle\030" + + "\002 \001(\010\032-\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\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(\013" + + "2!.google.cloud.run.v2.EnvVarSourceH\000B\010\n" + + "\006values\"N\n\014EnvVarSource\022>\n\016secret_key_re" + + "f\030\001 \001(\0132&.google.cloud.run.v2.SecretKeyS" + + "elector\"\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*secret" + + "manager.googleapis.com/SecretVersion\"5\n\r" + + "ContainerPort\022\014\n\004name\030\001 \001(\t\022\026\n\016container" + + "_port\030\003 \001(\005\"9\n\013VolumeMount\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\002\022\027\n\nmount_path\030\003 \001(\tB\003\340A\002\"\252\001\n\006Volum" + + "e\022\021\n\004name\030\001 \001(\tB\003\340A\002\0229\n\006secret\030\002 \001(\0132\'.g" + + "oogle.cloud.run.v2.SecretVolumeSourceH\000\022" + + "C\n\022cloud_sql_instance\030\003 \001(\0132%.google.clo" + + "ud.run.v2.CloudSqlInstanceH\000B\r\n\013volume_t" + + "ype\"r\n\022SecretVolumeSource\022\023\n\006secret\030\001 \001(" + + "\tB\003\340A\002\0221\n\005items\030\002 \003(\0132\".google.cloud.run" + + ".v2.VersionToPath\022\024\n\014default_mode\030\003 \001(\005\"" + + "A\n\rVersionToPath\022\021\n\004path\030\001 \001(\tB\003\340A\002\022\017\n\007v" + + "ersion\030\002 \001(\t\022\014\n\004mode\030\003 \001(\005\"%\n\020CloudSqlIn" + + "stance\022\021\n\tinstances\030\001 \003(\t\"\364\001\n\005Probe\022\035\n\025i" + + "nitial_delay_seconds\030\001 \001(\005\022\027\n\017timeout_se" + + "conds\030\002 \001(\005\022\026\n\016period_seconds\030\003 \001(\005\022\031\n\021f" + + "ailure_threshold\030\004 \001(\005\0226\n\010http_get\030\005 \001(\013" + + "2\".google.cloud.run.v2.HTTPGetActionH\000\022:" + + "\n\ntcp_socket\030\006 \001(\0132$.google.cloud.run.v2" + + ".TCPSocketActionH\000B\014\n\nprobe_type\"T\n\rHTTP" + + "GetAction\022\014\n\004path\030\001 \001(\t\0225\n\014http_headers\030" + + "\004 \003(\0132\037.google.cloud.run.v2.HTTPHeader\"." + + "\n\nHTTPHeader\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\r\n\005value" + + "\030\002 \001(\t\"\037\n\017TCPSocketAction\022\014\n\004port\030\001 \001(\005B" + + "\366\003\n\027com.google.cloud.run.v2B\013K8sMinProto" + + "P\001Z6google.golang.org/genproto/googleapi" + + "s/cloud/run/v2;run\352Ax\n!cloudkms.googleap" + + "is.com/CryptoKey\022Sprojects/{project}/loc" + + "ations/{location}/keyRings/{key_ring}/cr" + + "yptoKeys/{crypto_key}\352AJ\n#secretmanager." + + "googleapis.com/Secret\022#projects/{project" + + "}/secrets/{secret}\352Ad\n*secretmanager.goo" + + "gleapis.com/SecretVersion\0226projects/{pro" + + "ject}/secrets/{secret}/versions/{version" + + "}\352Ad\n\"vpcaccess.googleapis.com/Connector" + + "\022>projects/{project}/locations/{location" + + "}/connectors/{connector}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", + "WorkingDir", + "LivenessProbe", + "StartupProbe", + }); + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor, + new java.lang.String[] { + "Limits", "CpuIdle", + }); + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor = + internal_static_google_cloud_run_v2_ResourceRequirements_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_EnvVar_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_EnvVar_descriptor, + new java.lang.String[] { + "Name", "Value", "ValueSource", "Values", + }); + internal_static_google_cloud_run_v2_EnvVarSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_EnvVarSource_descriptor, + new java.lang.String[] { + "SecretKeyRef", + }); + internal_static_google_cloud_run_v2_SecretKeySelector_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_SecretKeySelector_descriptor, + new java.lang.String[] { + "Secret", "Version", + }); + internal_static_google_cloud_run_v2_ContainerPort_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ContainerPort_descriptor, + new java.lang.String[] { + "Name", "ContainerPort", + }); + internal_static_google_cloud_run_v2_VolumeMount_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VolumeMount_descriptor, + new java.lang.String[] { + "Name", "MountPath", + }); + internal_static_google_cloud_run_v2_Volume_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_run_v2_Volume_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Volume_descriptor, + new java.lang.String[] { + "Name", "Secret", "CloudSqlInstance", "VolumeType", + }); + internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor, + new java.lang.String[] { + "Secret", "Items", "DefaultMode", + }); + internal_static_google_cloud_run_v2_VersionToPath_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VersionToPath_descriptor, + new java.lang.String[] { + "Path", "Version", "Mode", + }); + internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor, + new java.lang.String[] { + "Instances", + }); + internal_static_google_cloud_run_v2_Probe_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_run_v2_Probe_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Probe_descriptor, + new java.lang.String[] { + "InitialDelaySeconds", + "TimeoutSeconds", + "PeriodSeconds", + "FailureThreshold", + "HttpGet", + "TcpSocket", + "ProbeType", + }); + internal_static_google_cloud_run_v2_HTTPGetAction_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_HTTPGetAction_descriptor, + new java.lang.String[] { + "Path", "HttpHeaders", + }); + internal_static_google_cloud_run_v2_HTTPHeader_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_HTTPHeader_descriptor, + new java.lang.String[] { + "Name", "Value", + }); + internal_static_google_cloud_run_v2_TCPSocketAction_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_TCPSocketAction_descriptor, + new java.lang.String[] { + "Port", + }); + 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.java similarity index 68% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.java index 6742944c720f..208a4a70c96d 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequest.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/execution.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for retrieving a list of Executions.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListExecutionsRequest} */ -public final class ListExecutionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListExecutionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListExecutionsRequest) ListExecutionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListExecutionsRequest.newBuilder() to construct. private ListExecutionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListExecutionsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,39 +44,45 @@ private ListExecutionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListExecutionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListExecutionsRequest.class, com.google.cloud.run.v2.ListExecutionsRequest.Builder.class); + com.google.cloud.run.v2.ListExecutionsRequest.class, + com.google.cloud.run.v2.ListExecutionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The Execution from which the Executions should be listed.
    * To list all Executions across Jobs, use "-" instead of Job name.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 @@ -67,31 +91,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 Execution from which the Executions should be listed.
    * To list all Executions across Jobs, use "-" instead of Job name.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 { @@ -102,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of Executions to return in this call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -117,12 +146,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 ListExecutions.
    * All other parameters must match.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,30 +163,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 ListExecutions.
    * 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 { @@ -165,11 +197,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 @@ -178,6 +213,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +225,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_); } @@ -216,15 +251,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +267,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.ListExecutionsRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.ListExecutionsRequest other = (com.google.cloud.run.v2.ListExecutionsRequest) obj; + com.google.cloud.run.v2.ListExecutionsRequest other = + (com.google.cloud.run.v2.ListExecutionsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,137 +297,142 @@ 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListExecutionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( com.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.ListExecutionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListExecutionsRequest parseFrom( - byte[] data, - com.google.protobuf.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.ListExecutionsRequest 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.ListExecutionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListExecutionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ListExecutionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ListExecutionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListExecutionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.ListExecutionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.ListExecutionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Executions.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListExecutionsRequest} */ - public static final class Builder extends - com.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.ListExecutionsRequest) com.google.cloud.run.v2.ListExecutionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListExecutionsRequest.class, com.google.cloud.run.v2.ListExecutionsRequest.Builder.class); + com.google.cloud.run.v2.ListExecutionsRequest.class, + com.google.cloud.run.v2.ListExecutionsRequest.Builder.class); } // Construct using com.google.cloud.run.v2.ListExecutionsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; } @java.lang.Override @@ -434,7 +469,8 @@ public com.google.cloud.run.v2.ListExecutionsRequest build() { @java.lang.Override public com.google.cloud.run.v2.ListExecutionsRequest buildPartial() { - com.google.cloud.run.v2.ListExecutionsRequest result = new com.google.cloud.run.v2.ListExecutionsRequest(this); + com.google.cloud.run.v2.ListExecutionsRequest result = + new com.google.cloud.run.v2.ListExecutionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -447,38 +483,39 @@ public com.google.cloud.run.v2.ListExecutionsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListExecutionsRequest) { - return mergeFrom((com.google.cloud.run.v2.ListExecutionsRequest)other); + return mergeFrom((com.google.cloud.run.v2.ListExecutionsRequest) other); } else { super.mergeFrom(other); return this; @@ -527,32 +564,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - showDeleted_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + showDeleted_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,20 +607,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The Execution from which the Executions should be listed.
      * To list all Executions across Jobs, use "-" instead of Job name.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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; @@ -587,22 +633,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Execution from which the Executions should be listed.
      * To list all Executions across Jobs, use "-" instead of Job name.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 { @@ -610,72 +659,88 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Execution from which the Executions should be listed.
      * To list all Executions across Jobs, use "-" instead of Job name.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 Execution from which the Executions should be listed.
      * To list all Executions across Jobs, use "-" instead of Job name.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 Execution from which the Executions should be listed.
      * To list all Executions across Jobs, use "-" instead of Job name.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 Executions to return in this call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -683,30 +748,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of Executions 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 Executions to return in this call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -714,19 +785,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token received from a previous call to ListExecutions.
      * 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; @@ -735,21 +808,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received from a previous call to ListExecutions.
      * 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 { @@ -757,69 +831,79 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received from a previous call to ListExecutions.
      * 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 ListExecutions.
      * 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 ListExecutions.
      * 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 @@ -827,37 +911,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); } @@ -867,12 +957,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListExecutionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListExecutionsRequest) private static final com.google.cloud.run.v2.ListExecutionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListExecutionsRequest(); } @@ -881,27 +971,27 @@ public static com.google.cloud.run.v2.ListExecutionsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -916,6 +1006,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListExecutionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.java index e90da2478355..813d80c54f02 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsRequestOrBuilder.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/execution.proto package com.google.cloud.run.v2; -public interface ListExecutionsRequestOrBuilder extends +public interface ListExecutionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListExecutionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Execution from which the Executions should be listed.
    * To list all Executions across Jobs, use "-" instead of Job name.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 Execution from which the Executions should be listed.
    * To list all Executions across Jobs, use "-" instead of Job name.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 Executions to return in this call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token received from a previous call to ListExecutions.
    * 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 ListExecutions.
    * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.java similarity index 72% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.java index bfee1022793b..03ae07dcc6ac 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponse.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/execution.proto package com.google.cloud.run.v2; /** + * + * *
  * Response message containing a list of Executions.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListExecutionsResponse} */ -public final class ListExecutionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListExecutionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListExecutionsResponse) ListExecutionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListExecutionsResponse.newBuilder() to construct. private ListExecutionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListExecutionsResponse() { executions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private ListExecutionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListExecutionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListExecutionsResponse.class, com.google.cloud.run.v2.ListExecutionsResponse.Builder.class); + com.google.cloud.run.v2.ListExecutionsResponse.class, + com.google.cloud.run.v2.ListExecutionsResponse.Builder.class); } public static final int EXECUTIONS_FIELD_NUMBER = 1; private java.util.List executions_; /** + * + * *
    * The resulting list of Executions.
    * 
@@ -63,6 +84,8 @@ public java.util.List getExecutionsList() { return executions_; } /** + * + * *
    * The resulting list of Executions.
    * 
@@ -70,11 +93,13 @@ public java.util.List getExecutionsList() { * repeated .google.cloud.run.v2.Execution executions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getExecutionsOrBuilderList() { return executions_; } /** + * + * *
    * The resulting list of Executions.
    * 
@@ -86,6 +111,8 @@ public int getExecutionsCount() { return executions_.size(); } /** + * + * *
    * The resulting list of Executions.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.run.v2.Execution getExecutions(int index) { return executions_.get(index); } /** + * + * *
    * The resulting list of Executions.
    * 
@@ -104,20 +133,22 @@ public com.google.cloud.run.v2.Execution getExecutions(int index) { * repeated .google.cloud.run.v2.Execution executions = 1; */ @java.lang.Override - public com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder( - int index) { + public com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder(int index) { return executions_.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
    * ListExecutions request to continue.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,30 +157,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
    * ListExecutions 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 { @@ -158,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < executions_.size(); i++) { output.writeMessage(1, executions_.get(i)); } @@ -187,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < executions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, executions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, executions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.ListExecutionsResponse)) { return super.equals(obj); } - com.google.cloud.run.v2.ListExecutionsResponse other = (com.google.cloud.run.v2.ListExecutionsResponse) obj; + com.google.cloud.run.v2.ListExecutionsResponse other = + (com.google.cloud.run.v2.ListExecutionsResponse) obj; - if (!getExecutionsList() - .equals(other.getExecutionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getExecutionsList().equals(other.getExecutionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,130 +263,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListExecutionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( com.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.ListExecutionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListExecutionsResponse parseFrom( - byte[] data, - com.google.protobuf.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.ListExecutionsResponse 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.ListExecutionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListExecutionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ListExecutionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ListExecutionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListExecutionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.ListExecutionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.ListExecutionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Executions.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListExecutionsResponse} */ - public static final class Builder extends - com.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.ListExecutionsResponse) com.google.cloud.run.v2.ListExecutionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListExecutionsResponse.class, com.google.cloud.run.v2.ListExecutionsResponse.Builder.class); + com.google.cloud.run.v2.ListExecutionsResponse.class, + com.google.cloud.run.v2.ListExecutionsResponse.Builder.class); } // Construct using com.google.cloud.run.v2.ListExecutionsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.ExecutionProto.internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ExecutionProto + .internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; } @java.lang.Override @@ -395,7 +430,8 @@ public com.google.cloud.run.v2.ListExecutionsResponse build() { @java.lang.Override public com.google.cloud.run.v2.ListExecutionsResponse buildPartial() { - com.google.cloud.run.v2.ListExecutionsResponse result = new com.google.cloud.run.v2.ListExecutionsResponse(this); + com.google.cloud.run.v2.ListExecutionsResponse result = + new com.google.cloud.run.v2.ListExecutionsResponse(this); int from_bitField0_ = bitField0_; if (executionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +451,39 @@ public com.google.cloud.run.v2.ListExecutionsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListExecutionsResponse) { - return mergeFrom((com.google.cloud.run.v2.ListExecutionsResponse)other); + return mergeFrom((com.google.cloud.run.v2.ListExecutionsResponse) other); } else { super.mergeFrom(other); return this; @@ -473,9 +510,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.ListExecutionsResponse other) { executionsBuilder_ = null; executions_ = other.executions_; bitField0_ = (bitField0_ & ~0x00000001); - executionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExecutionsFieldBuilder() : null; + executionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExecutionsFieldBuilder() + : null; } else { executionsBuilder_.addAllMessages(other.executions_); } @@ -511,30 +549,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.run.v2.Execution m = - input.readMessage( - com.google.cloud.run.v2.Execution.parser(), - extensionRegistry); - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.add(m); - } else { - executionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.run.v2.Execution m = + input.readMessage( + com.google.cloud.run.v2.Execution.parser(), extensionRegistry); + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(m); + } else { + executionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,21 +584,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List executions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureExecutionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { executions_ = new java.util.ArrayList(executions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Execution, com.google.cloud.run.v2.Execution.Builder, com.google.cloud.run.v2.ExecutionOrBuilder> executionsBuilder_; + com.google.cloud.run.v2.Execution, + com.google.cloud.run.v2.Execution.Builder, + com.google.cloud.run.v2.ExecutionOrBuilder> + executionsBuilder_; /** + * + * *
      * The resulting list of Executions.
      * 
@@ -573,6 +620,8 @@ public java.util.List getExecutionsList() { } } /** + * + * *
      * The resulting list of Executions.
      * 
@@ -587,6 +636,8 @@ public int getExecutionsCount() { } } /** + * + * *
      * The resulting list of Executions.
      * 
@@ -601,14 +652,15 @@ public com.google.cloud.run.v2.Execution getExecutions(int index) { } } /** + * + * *
      * The resulting list of Executions.
      * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - public Builder setExecutions( - int index, com.google.cloud.run.v2.Execution value) { + public Builder setExecutions(int index, com.google.cloud.run.v2.Execution value) { if (executionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -622,6 +674,8 @@ public Builder setExecutions( return this; } /** + * + * *
      * The resulting list of Executions.
      * 
@@ -640,6 +694,8 @@ public Builder setExecutions( return this; } /** + * + * *
      * The resulting list of Executions.
      * 
@@ -660,14 +716,15 @@ public Builder addExecutions(com.google.cloud.run.v2.Execution value) { return this; } /** + * + * *
      * The resulting list of Executions.
      * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - public Builder addExecutions( - int index, com.google.cloud.run.v2.Execution value) { + public Builder addExecutions(int index, com.google.cloud.run.v2.Execution value) { if (executionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -681,14 +738,15 @@ public Builder addExecutions( return this; } /** + * + * *
      * The resulting list of Executions.
      * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - public Builder addExecutions( - com.google.cloud.run.v2.Execution.Builder builderForValue) { + public Builder addExecutions(com.google.cloud.run.v2.Execution.Builder builderForValue) { if (executionsBuilder_ == null) { ensureExecutionsIsMutable(); executions_.add(builderForValue.build()); @@ -699,6 +757,8 @@ public Builder addExecutions( return this; } /** + * + * *
      * The resulting list of Executions.
      * 
@@ -717,6 +777,8 @@ public Builder addExecutions( return this; } /** + * + * *
      * The resulting list of Executions.
      * 
@@ -727,8 +789,7 @@ public Builder addAllExecutions( java.lang.Iterable values) { if (executionsBuilder_ == null) { ensureExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, executions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executions_); onChanged(); } else { executionsBuilder_.addAllMessages(values); @@ -736,6 +797,8 @@ public Builder addAllExecutions( return this; } /** + * + * *
      * The resulting list of Executions.
      * 
@@ -753,6 +816,8 @@ public Builder clearExecutions() { return this; } /** + * + * *
      * The resulting list of Executions.
      * 
@@ -770,39 +835,44 @@ public Builder removeExecutions(int index) { return this; } /** + * + * *
      * The resulting list of Executions.
      * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - public com.google.cloud.run.v2.Execution.Builder getExecutionsBuilder( - int index) { + public com.google.cloud.run.v2.Execution.Builder getExecutionsBuilder(int index) { return getExecutionsFieldBuilder().getBuilder(index); } /** + * + * *
      * The resulting list of Executions.
      * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - public com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder( - int index) { + public com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder(int index) { if (executionsBuilder_ == null) { - return executions_.get(index); } else { + return executions_.get(index); + } else { return executionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The resulting list of Executions.
      * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - public java.util.List - getExecutionsOrBuilderList() { + public java.util.List + getExecutionsOrBuilderList() { if (executionsBuilder_ != null) { return executionsBuilder_.getMessageOrBuilderList(); } else { @@ -810,6 +880,8 @@ public com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder( } } /** + * + * *
      * The resulting list of Executions.
      * 
@@ -817,42 +889,47 @@ public com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder( * repeated .google.cloud.run.v2.Execution executions = 1; */ public com.google.cloud.run.v2.Execution.Builder addExecutionsBuilder() { - return getExecutionsFieldBuilder().addBuilder( - com.google.cloud.run.v2.Execution.getDefaultInstance()); + return getExecutionsFieldBuilder() + .addBuilder(com.google.cloud.run.v2.Execution.getDefaultInstance()); } /** + * + * *
      * The resulting list of Executions.
      * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - public com.google.cloud.run.v2.Execution.Builder addExecutionsBuilder( - int index) { - return getExecutionsFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Execution.getDefaultInstance()); + public com.google.cloud.run.v2.Execution.Builder addExecutionsBuilder(int index) { + return getExecutionsFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Execution.getDefaultInstance()); } /** + * + * *
      * The resulting list of Executions.
      * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - public java.util.List - getExecutionsBuilderList() { + public java.util.List getExecutionsBuilderList() { return getExecutionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Execution, com.google.cloud.run.v2.Execution.Builder, com.google.cloud.run.v2.ExecutionOrBuilder> + com.google.cloud.run.v2.Execution, + com.google.cloud.run.v2.Execution.Builder, + com.google.cloud.run.v2.ExecutionOrBuilder> getExecutionsFieldBuilder() { if (executionsBuilder_ == null) { - executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Execution, com.google.cloud.run.v2.Execution.Builder, com.google.cloud.run.v2.ExecutionOrBuilder>( - executions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + executionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Execution, + com.google.cloud.run.v2.Execution.Builder, + com.google.cloud.run.v2.ExecutionOrBuilder>( + executions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); executions_ = null; } return executionsBuilder_; @@ -860,19 +937,21 @@ public com.google.cloud.run.v2.Execution.Builder addExecutionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListExecutions 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; @@ -881,21 +960,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListExecutions 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 { @@ -903,64 +983,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListExecutions 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
      * ListExecutions 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
      * ListExecutions 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); } @@ -970,12 +1057,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListExecutionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListExecutionsResponse) private static final com.google.cloud.run.v2.ListExecutionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListExecutionsResponse(); } @@ -984,27 +1071,27 @@ public static com.google.cloud.run.v2.ListExecutionsResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1106,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListExecutionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.java index c954beed298a..31fea6256bb6 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListExecutionsResponseOrBuilder.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/execution.proto package com.google.cloud.run.v2; -public interface ListExecutionsResponseOrBuilder extends +public interface ListExecutionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListExecutionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resulting list of Executions.
    * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - java.util.List - getExecutionsList(); + java.util.List getExecutionsList(); /** + * + * *
    * The resulting list of Executions.
    * 
@@ -25,6 +44,8 @@ public interface ListExecutionsResponseOrBuilder extends */ com.google.cloud.run.v2.Execution getExecutions(int index); /** + * + * *
    * The resulting list of Executions.
    * 
@@ -33,43 +54,50 @@ public interface ListExecutionsResponseOrBuilder extends */ int getExecutionsCount(); /** + * + * *
    * The resulting list of Executions.
    * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - java.util.List - getExecutionsOrBuilderList(); + java.util.List getExecutionsOrBuilderList(); /** + * + * *
    * The resulting list of Executions.
    * 
* * repeated .google.cloud.run.v2.Execution executions = 1; */ - com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder( - int index); + com.google.cloud.run.v2.ExecutionOrBuilder getExecutionsOrBuilder(int index); /** + * + * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListExecutions 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
    * ListExecutions 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.java similarity index 67% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.java index 3bd1f7b32bb4..5e31540f8410 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequest.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/job.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for retrieving a list of Jobs.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListJobsRequest} */ -public final class ListJobsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListJobsRequest) ListJobsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListJobsRequest.newBuilder() to construct. private ListJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListJobsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +44,44 @@ private ListJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListJobsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListJobsRequest.class, com.google.cloud.run.v2.ListJobsRequest.Builder.class); + com.google.cloud.run.v2.ListJobsRequest.class, + com.google.cloud.run.v2.ListJobsRequest.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.
    * Format: projects/{project}/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 @@ -66,30 +90,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 to list resources on.
    * Format: projects/{project}/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 { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of Jobs to return in this call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,12 +144,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 ListJobs.
    * All other parameters must match.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -129,30 +161,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 ListJobs.
    * 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 { @@ -163,11 +195,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 @@ -176,6 +211,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,8 +223,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_); } @@ -214,15 +249,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -232,21 +265,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.ListJobsRequest)) { return super.equals(obj); } com.google.cloud.run.v2.ListJobsRequest other = (com.google.cloud.run.v2.ListJobsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,137 +294,142 @@ 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.ListJobsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListJobsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListJobsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( com.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.ListJobsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListJobsRequest parseFrom( - byte[] data, - com.google.protobuf.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.ListJobsRequest 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.ListJobsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListJobsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ListJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ListJobsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListJobsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.ListJobsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.ListJobsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Jobs.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListJobsRequest} */ - public static final class Builder extends - com.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.ListJobsRequest) com.google.cloud.run.v2.ListJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListJobsRequest.class, com.google.cloud.run.v2.ListJobsRequest.Builder.class); + com.google.cloud.run.v2.ListJobsRequest.class, + com.google.cloud.run.v2.ListJobsRequest.Builder.class); } // Construct using com.google.cloud.run.v2.ListJobsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +445,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; } @java.lang.Override @@ -432,7 +466,8 @@ public com.google.cloud.run.v2.ListJobsRequest build() { @java.lang.Override public com.google.cloud.run.v2.ListJobsRequest buildPartial() { - com.google.cloud.run.v2.ListJobsRequest result = new com.google.cloud.run.v2.ListJobsRequest(this); + com.google.cloud.run.v2.ListJobsRequest result = + new com.google.cloud.run.v2.ListJobsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -445,38 +480,39 @@ public com.google.cloud.run.v2.ListJobsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListJobsRequest) { - return mergeFrom((com.google.cloud.run.v2.ListJobsRequest)other); + return mergeFrom((com.google.cloud.run.v2.ListJobsRequest) other); } else { super.mergeFrom(other); return this; @@ -525,32 +561,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - showDeleted_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + showDeleted_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -563,19 +604,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The location and project to list resources on.
      * Format: projects/{project}/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; @@ -584,21 +629,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location and project to list resources on.
      * Format: projects/{project}/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 { @@ -606,69 +654,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The location and project to list resources on.
      * Format: projects/{project}/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.
      * Format: projects/{project}/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.
      * Format: projects/{project}/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 Jobs to return in this call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -676,30 +740,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of Jobs 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 Jobs to return in this call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -707,19 +777,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token received from a previous call to ListJobs.
      * 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; @@ -728,21 +800,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received from a previous call to ListJobs.
      * 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 { @@ -750,69 +823,79 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received from a previous call to ListJobs.
      * 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 ListJobs.
      * 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 ListJobs.
      * 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 @@ -820,37 +903,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); } @@ -860,12 +949,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListJobsRequest) private static final com.google.cloud.run.v2.ListJobsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListJobsRequest(); } @@ -874,27 +963,27 @@ public static com.google.cloud.run.v2.ListJobsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -909,6 +998,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListJobsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java index 8b217abfb724..f0c11bcabdec 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsRequestOrBuilder.java @@ -1,72 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/job.proto package com.google.cloud.run.v2; -public interface ListJobsRequestOrBuilder extends +public interface ListJobsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListJobsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The location and project to list resources on.
    * Format: projects/{project}/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.
    * Format: projects/{project}/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 Jobs to return in this call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token received from a previous call to ListJobs.
    * 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 ListJobs.
    * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.java similarity index 70% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.java index 5f9d5a9420a8..0dd735ab4411 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponse.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/job.proto package com.google.cloud.run.v2; /** + * + * *
  * Response message containing a list of Jobs.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListJobsResponse} */ -public final class ListJobsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListJobsResponse) ListJobsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListJobsResponse.newBuilder() to construct. private ListJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListJobsResponse() { jobs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private ListJobsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListJobsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListJobsResponse.class, com.google.cloud.run.v2.ListJobsResponse.Builder.class); + com.google.cloud.run.v2.ListJobsResponse.class, + com.google.cloud.run.v2.ListJobsResponse.Builder.class); } public static final int JOBS_FIELD_NUMBER = 1; private java.util.List jobs_; /** + * + * *
    * The resulting list of Jobs.
    * 
@@ -63,6 +84,8 @@ public java.util.List getJobsList() { return jobs_; } /** + * + * *
    * The resulting list of Jobs.
    * 
@@ -70,11 +93,12 @@ public java.util.List getJobsList() { * repeated .google.cloud.run.v2.Job jobs = 1; */ @java.lang.Override - public java.util.List - getJobsOrBuilderList() { + public java.util.List getJobsOrBuilderList() { return jobs_; } /** + * + * *
    * The resulting list of Jobs.
    * 
@@ -86,6 +110,8 @@ public int getJobsCount() { return jobs_.size(); } /** + * + * *
    * The resulting list of Jobs.
    * 
@@ -97,6 +123,8 @@ public com.google.cloud.run.v2.Job getJobs(int index) { return jobs_.get(index); } /** + * + * *
    * The resulting list of Jobs.
    * 
@@ -104,20 +132,22 @@ public com.google.cloud.run.v2.Job getJobs(int index) { * repeated .google.cloud.run.v2.Job jobs = 1; */ @java.lang.Override - public com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder( - int index) { + public com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder(int index) { return jobs_.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
    * ListJobs request to continue.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,30 +156,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
    * ListJobs 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 { @@ -158,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +200,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 < jobs_.size(); i++) { output.writeMessage(1, jobs_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < jobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, jobs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +230,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.ListJobsResponse)) { return super.equals(obj); } com.google.cloud.run.v2.ListJobsResponse other = (com.google.cloud.run.v2.ListJobsResponse) obj; - if (!getJobsList() - .equals(other.getJobsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getJobsList().equals(other.getJobsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,130 +261,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ListJobsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListJobsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListJobsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( com.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.ListJobsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListJobsResponse parseFrom( - byte[] data, - com.google.protobuf.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.ListJobsResponse 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.ListJobsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListJobsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ListJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ListJobsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListJobsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.ListJobsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.ListJobsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Jobs.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListJobsResponse} */ - public static final class Builder extends - com.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.ListJobsResponse) com.google.cloud.run.v2.ListJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListJobsResponse.class, com.google.cloud.run.v2.ListJobsResponse.Builder.class); + com.google.cloud.run.v2.ListJobsResponse.class, + com.google.cloud.run.v2.ListJobsResponse.Builder.class); } // Construct using com.google.cloud.run.v2.ListJobsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; } @java.lang.Override @@ -395,7 +428,8 @@ public com.google.cloud.run.v2.ListJobsResponse build() { @java.lang.Override public com.google.cloud.run.v2.ListJobsResponse buildPartial() { - com.google.cloud.run.v2.ListJobsResponse result = new com.google.cloud.run.v2.ListJobsResponse(this); + com.google.cloud.run.v2.ListJobsResponse result = + new com.google.cloud.run.v2.ListJobsResponse(this); int from_bitField0_ = bitField0_; if (jobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +449,39 @@ public com.google.cloud.run.v2.ListJobsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListJobsResponse) { - return mergeFrom((com.google.cloud.run.v2.ListJobsResponse)other); + return mergeFrom((com.google.cloud.run.v2.ListJobsResponse) other); } else { super.mergeFrom(other); return this; @@ -473,9 +508,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.ListJobsResponse other) { jobsBuilder_ = null; jobs_ = other.jobs_; bitField0_ = (bitField0_ & ~0x00000001); - jobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getJobsFieldBuilder() : null; + jobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobsFieldBuilder() + : null; } else { jobsBuilder_.addAllMessages(other.jobs_); } @@ -511,30 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.run.v2.Job m = - input.readMessage( - com.google.cloud.run.v2.Job.parser(), - extensionRegistry); - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(m); - } else { - jobsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.run.v2.Job m = + input.readMessage(com.google.cloud.run.v2.Job.parser(), extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,21 +581,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List jobs_ = - java.util.Collections.emptyList(); + private java.util.List jobs_ = java.util.Collections.emptyList(); + private void ensureJobsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { jobs_ = new java.util.ArrayList(jobs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> jobsBuilder_; + com.google.cloud.run.v2.Job, + com.google.cloud.run.v2.Job.Builder, + com.google.cloud.run.v2.JobOrBuilder> + jobsBuilder_; /** + * + * *
      * The resulting list of Jobs.
      * 
@@ -573,6 +616,8 @@ public java.util.List getJobsList() { } } /** + * + * *
      * The resulting list of Jobs.
      * 
@@ -587,6 +632,8 @@ public int getJobsCount() { } } /** + * + * *
      * The resulting list of Jobs.
      * 
@@ -601,14 +648,15 @@ public com.google.cloud.run.v2.Job getJobs(int index) { } } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public Builder setJobs( - int index, com.google.cloud.run.v2.Job value) { + public Builder setJobs(int index, com.google.cloud.run.v2.Job value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -622,14 +670,15 @@ public Builder setJobs( return this; } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public Builder setJobs( - int index, com.google.cloud.run.v2.Job.Builder builderForValue) { + public Builder setJobs(int index, com.google.cloud.run.v2.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.set(index, builderForValue.build()); @@ -640,6 +689,8 @@ public Builder setJobs( return this; } /** + * + * *
      * The resulting list of Jobs.
      * 
@@ -660,14 +711,15 @@ public Builder addJobs(com.google.cloud.run.v2.Job value) { return this; } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public Builder addJobs( - int index, com.google.cloud.run.v2.Job value) { + public Builder addJobs(int index, com.google.cloud.run.v2.Job value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -681,14 +733,15 @@ public Builder addJobs( return this; } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public Builder addJobs( - com.google.cloud.run.v2.Job.Builder builderForValue) { + public Builder addJobs(com.google.cloud.run.v2.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.add(builderForValue.build()); @@ -699,14 +752,15 @@ public Builder addJobs( return this; } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public Builder addJobs( - int index, com.google.cloud.run.v2.Job.Builder builderForValue) { + public Builder addJobs(int index, com.google.cloud.run.v2.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.add(index, builderForValue.build()); @@ -717,18 +771,18 @@ public Builder addJobs( return this; } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public Builder addAllJobs( - java.lang.Iterable values) { + public Builder addAllJobs(java.lang.Iterable values) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jobs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); onChanged(); } else { jobsBuilder_.addAllMessages(values); @@ -736,6 +790,8 @@ public Builder addAllJobs( return this; } /** + * + * *
      * The resulting list of Jobs.
      * 
@@ -753,6 +809,8 @@ public Builder clearJobs() { return this; } /** + * + * *
      * The resulting list of Jobs.
      * 
@@ -770,39 +828,43 @@ public Builder removeJobs(int index) { return this; } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public com.google.cloud.run.v2.Job.Builder getJobsBuilder( - int index) { + public com.google.cloud.run.v2.Job.Builder getJobsBuilder(int index) { return getJobsFieldBuilder().getBuilder(index); } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder( - int index) { + public com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder(int index) { if (jobsBuilder_ == null) { - return jobs_.get(index); } else { + return jobs_.get(index); + } else { return jobsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public java.util.List - getJobsOrBuilderList() { + public java.util.List getJobsOrBuilderList() { if (jobsBuilder_ != null) { return jobsBuilder_.getMessageOrBuilderList(); } else { @@ -810,6 +872,8 @@ public com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder( } } /** + * + * *
      * The resulting list of Jobs.
      * 
@@ -817,42 +881,46 @@ public com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder( * repeated .google.cloud.run.v2.Job jobs = 1; */ public com.google.cloud.run.v2.Job.Builder addJobsBuilder() { - return getJobsFieldBuilder().addBuilder( - com.google.cloud.run.v2.Job.getDefaultInstance()); + return getJobsFieldBuilder().addBuilder(com.google.cloud.run.v2.Job.getDefaultInstance()); } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public com.google.cloud.run.v2.Job.Builder addJobsBuilder( - int index) { - return getJobsFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Job.getDefaultInstance()); + public com.google.cloud.run.v2.Job.Builder addJobsBuilder(int index) { + return getJobsFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Job.getDefaultInstance()); } /** + * + * *
      * The resulting list of Jobs.
      * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - public java.util.List - getJobsBuilderList() { + public java.util.List getJobsBuilderList() { return getJobsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> + com.google.cloud.run.v2.Job, + com.google.cloud.run.v2.Job.Builder, + com.google.cloud.run.v2.JobOrBuilder> getJobsFieldBuilder() { if (jobsBuilder_ == null) { - jobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder>( - jobs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + jobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Job, + com.google.cloud.run.v2.Job.Builder, + com.google.cloud.run.v2.JobOrBuilder>( + jobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); jobs_ = null; } return jobsBuilder_; @@ -860,19 +928,21 @@ public com.google.cloud.run.v2.Job.Builder addJobsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListJobs 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; @@ -881,21 +951,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListJobs 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 { @@ -903,64 +974,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListJobs 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
      * ListJobs 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
      * ListJobs 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); } @@ -970,12 +1048,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListJobsResponse) private static final com.google.cloud.run.v2.ListJobsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListJobsResponse(); } @@ -984,27 +1062,27 @@ public static com.google.cloud.run.v2.ListJobsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1097,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListJobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.java index 186279206191..6663dd3b74b3 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListJobsResponseOrBuilder.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/job.proto package com.google.cloud.run.v2; -public interface ListJobsResponseOrBuilder extends +public interface ListJobsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListJobsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resulting list of Jobs.
    * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - java.util.List - getJobsList(); + java.util.List getJobsList(); /** + * + * *
    * The resulting list of Jobs.
    * 
@@ -25,6 +44,8 @@ public interface ListJobsResponseOrBuilder extends */ com.google.cloud.run.v2.Job getJobs(int index); /** + * + * *
    * The resulting list of Jobs.
    * 
@@ -33,43 +54,50 @@ public interface ListJobsResponseOrBuilder extends */ int getJobsCount(); /** + * + * *
    * The resulting list of Jobs.
    * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - java.util.List - getJobsOrBuilderList(); + java.util.List getJobsOrBuilderList(); /** + * + * *
    * The resulting list of Jobs.
    * 
* * repeated .google.cloud.run.v2.Job jobs = 1; */ - com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder( - int index); + com.google.cloud.run.v2.JobOrBuilder getJobsOrBuilder(int index); /** + * + * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListJobs 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
    * ListJobs 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java similarity index 68% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java index c141bde33d3a..eff2477626d8 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequest.java +++ b/java-run/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,32 +44,35 @@ 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; } - 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.
@@ -59,7 +80,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -68,14 +92,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.
@@ -83,17 +108,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 { @@ -104,11 +130,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 @@ -119,12 +148,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 @@ -133,30 +165,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 { @@ -167,11 +199,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 @@ -180,6 +215,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +227,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_); } @@ -218,15 +253,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -236,21 +269,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,137 +299,142 @@ 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) + getUnknownFields().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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +450,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 @@ -436,7 +471,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_; @@ -449,38 +485,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; @@ -529,32 +566,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - showDeleted_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + showDeleted_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,6 +609,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.
@@ -574,14 +618,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; @@ -590,6 +636,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.
@@ -597,16 +645,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 { @@ -614,6 +663,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.
@@ -621,21 +672,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.
@@ -643,16 +698,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.
@@ -660,29 +720,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 @@ -690,30 +755,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; @@ -721,19 +792,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; @@ -742,21 +815,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 { @@ -764,69 +838,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 @@ -834,37 +918,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); } @@ -874,12 +964,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(); } @@ -888,27 +978,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,6 +1013,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListRevisionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java index f2754c908199..43da0fd74680 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsRequestOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java similarity index 72% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java index 46d413427ef4..2884356be5c7 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponse.java +++ b/java-run/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,32 +44,35 @@ 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; } - 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.
    * 
@@ -63,6 +84,8 @@ public java.util.List getRevisionsList() { return revisions_; } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -70,11 +93,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.
    * 
@@ -86,6 +111,8 @@ public int getRevisionsCount() { return revisions_.size(); } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.run.v2.Revision getRevisions(int index) { return revisions_.get(index); } /** + * + * *
    * The resulting list of Revisions.
    * 
@@ -104,20 +133,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 @@ -126,30 +157,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 { @@ -158,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < revisions_.size(); i++) { output.writeMessage(1, revisions_.get(i)); } @@ -187,8 +218,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_); @@ -201,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,130 +263,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +409,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 @@ -395,7 +430,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)) { @@ -415,38 +451,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; @@ -473,9 +510,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_); } @@ -511,30 +549,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.run.v2.Revision m = - input.readMessage( - com.google.cloud.run.v2.Revision.parser(), - extensionRegistry); - if (revisionsBuilder_ == null) { - ensureRevisionsIsMutable(); - revisions_.add(m); - } else { - revisionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.run.v2.Revision m = + input.readMessage(com.google.cloud.run.v2.Revision.parser(), extensionRegistry); + if (revisionsBuilder_ == null) { + ensureRevisionsIsMutable(); + revisions_.add(m); + } else { + revisionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,21 +583,28 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -573,6 +619,8 @@ public java.util.List getRevisionsList() { } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -587,6 +635,8 @@ public int getRevisionsCount() { } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -601,14 +651,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(); @@ -622,6 +673,8 @@ public Builder setRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -640,6 +693,8 @@ public Builder setRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -660,14 +715,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(); @@ -681,14 +737,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()); @@ -699,6 +756,8 @@ public Builder addRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -717,6 +776,8 @@ public Builder addRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -727,8 +788,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); @@ -736,6 +796,8 @@ public Builder addAllRevisions( return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -753,6 +815,8 @@ public Builder clearRevisions() { return this; } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -770,39 +834,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 { @@ -810,6 +879,8 @@ public com.google.cloud.run.v2.RevisionOrBuilder getRevisionsOrBuilder( } } /** + * + * *
      * The resulting list of Revisions.
      * 
@@ -817,42 +888,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_; @@ -860,19 +936,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; @@ -881,21 +959,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 { @@ -903,64 +982,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); } @@ -970,12 +1056,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(); } @@ -984,27 +1070,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1105,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListRevisionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java index 6755d07f2ede..989c91f8e20b 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListRevisionsResponseOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java similarity index 67% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java index dbc875ac2736..4f0bdf7fc1a0 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequest.java +++ b/java-run/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,39 +44,45 @@ 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; } - 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/{project}/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 @@ -67,31 +91,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/{project}/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 { @@ -102,11 +128,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 @@ -117,12 +146,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 @@ -131,30 +163,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 { @@ -165,11 +197,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 @@ -178,6 +213,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +225,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_); } @@ -216,15 +251,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +267,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,137 +297,142 @@ 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) + getUnknownFields().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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +448,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 @@ -434,7 +469,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_; @@ -447,38 +483,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; @@ -527,32 +564,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - showDeleted_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + showDeleted_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,20 +607,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/{project}/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; @@ -587,22 +633,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/{project}/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 { @@ -610,72 +659,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/{project}/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/{project}/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/{project}/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 @@ -683,30 +748,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; @@ -714,19 +785,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; @@ -735,21 +808,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 { @@ -757,69 +831,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 @@ -827,37 +911,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); } @@ -867,12 +957,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(); } @@ -881,27 +971,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -916,6 +1006,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListServicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java index 8382bb62032c..e70688df53d7 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesRequestOrBuilder.java +++ b/java-run/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/{project}/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/{project}/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java similarity index 71% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java index 0b68370d69dc..2e3725f9ab79 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java +++ b/java-run/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,32 +44,35 @@ 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; } - 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.
    * 
@@ -63,6 +84,8 @@ public java.util.List getServicesList() { return services_; } /** + * + * *
    * The resulting list of Services.
    * 
@@ -70,11 +93,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.
    * 
@@ -86,6 +111,8 @@ public int getServicesCount() { return services_.size(); } /** + * + * *
    * The resulting list of Services.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.run.v2.Service getServices(int index) { return services_.get(index); } /** + * + * *
    * The resulting list of Services.
    * 
@@ -104,20 +133,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 @@ -126,30 +157,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 { @@ -158,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < services_.size(); i++) { output.writeMessage(1, services_.get(i)); } @@ -187,8 +218,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_); @@ -201,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,130 +263,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +409,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 @@ -395,7 +430,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)) { @@ -415,38 +451,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; @@ -473,9 +510,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_); } @@ -511,30 +549,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.run.v2.Service m = - input.readMessage( - com.google.cloud.run.v2.Service.parser(), - extensionRegistry); - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(m); - } else { - servicesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.run.v2.Service m = + input.readMessage(com.google.cloud.run.v2.Service.parser(), extensionRegistry); + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(m); + } else { + servicesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,21 +583,28 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -573,6 +619,8 @@ public java.util.List getServicesList() { } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -587,6 +635,8 @@ public int getServicesCount() { } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -601,14 +651,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(); @@ -622,14 +673,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()); @@ -640,6 +692,8 @@ public Builder setServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -660,14 +714,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(); @@ -681,14 +736,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()); @@ -699,14 +755,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()); @@ -717,6 +774,8 @@ public Builder addServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -727,8 +786,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); @@ -736,6 +794,8 @@ public Builder addAllServices( return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -753,6 +813,8 @@ public Builder clearServices() { return this; } /** + * + * *
      * The resulting list of Services.
      * 
@@ -770,39 +832,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 { @@ -810,6 +877,8 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServicesOrBuilder( } } /** + * + * *
      * The resulting list of Services.
      * 
@@ -817,42 +886,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_; @@ -860,19 +934,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; @@ -881,21 +957,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 { @@ -903,64 +980,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); } @@ -970,12 +1054,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(); } @@ -984,27 +1068,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1103,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListServicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java index 9c9c363a2032..af2c849ac8fc 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.java similarity index 68% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.java index 4f177b27f8be..a21654c8865c 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequest.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/task.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for retrieving a list of Tasks.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListTasksRequest} */ -public final class ListTasksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTasksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListTasksRequest) ListTasksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTasksRequest.newBuilder() to construct. private ListTasksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTasksRequest() { parent_ = ""; pageToken_ = ""; @@ -26,32 +44,35 @@ private ListTasksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTasksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListTasksRequest.class, com.google.cloud.run.v2.ListTasksRequest.Builder.class); + com.google.cloud.run.v2.ListTasksRequest.class, + com.google.cloud.run.v2.ListTasksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The Execution from which the Tasks should be listed.
    * To list all Tasks across Executions of a Job, use "-" instead of Execution
@@ -59,7 +80,10 @@ protected java.lang.Object newInstance(
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
    * 
* - * 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 @@ -68,14 +92,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 Execution from which the Tasks should be listed.
    * To list all Tasks across Executions of a Job, use "-" instead of Execution
@@ -83,17 +108,18 @@ public java.lang.String getParent() {
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
    * 
* - * 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 { @@ -104,11 +130,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of Tasks to return in this call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -119,12 +148,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 ListTasks.
    * All other parameters must match.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -133,30 +165,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 ListTasks.
    * 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 { @@ -167,11 +199,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 @@ -180,6 +215,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +227,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_); } @@ -218,15 +253,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -236,21 +269,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.ListTasksRequest)) { return super.equals(obj); } com.google.cloud.run.v2.ListTasksRequest other = (com.google.cloud.run.v2.ListTasksRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,137 +298,142 @@ 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.ListTasksRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListTasksRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListTasksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( com.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.ListTasksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListTasksRequest parseFrom( - byte[] data, - com.google.protobuf.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.ListTasksRequest 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.ListTasksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListTasksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ListTasksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ListTasksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListTasksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.ListTasksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.ListTasksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Tasks.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListTasksRequest} */ - public static final class Builder extends - com.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.ListTasksRequest) com.google.cloud.run.v2.ListTasksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListTasksRequest.class, com.google.cloud.run.v2.ListTasksRequest.Builder.class); + com.google.cloud.run.v2.ListTasksRequest.class, + com.google.cloud.run.v2.ListTasksRequest.Builder.class); } // Construct using com.google.cloud.run.v2.ListTasksRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; } @java.lang.Override @@ -436,7 +470,8 @@ public com.google.cloud.run.v2.ListTasksRequest build() { @java.lang.Override public com.google.cloud.run.v2.ListTasksRequest buildPartial() { - com.google.cloud.run.v2.ListTasksRequest result = new com.google.cloud.run.v2.ListTasksRequest(this); + com.google.cloud.run.v2.ListTasksRequest result = + new com.google.cloud.run.v2.ListTasksRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -449,38 +484,39 @@ public com.google.cloud.run.v2.ListTasksRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListTasksRequest) { - return mergeFrom((com.google.cloud.run.v2.ListTasksRequest)other); + return mergeFrom((com.google.cloud.run.v2.ListTasksRequest) other); } else { super.mergeFrom(other); return this; @@ -529,32 +565,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - showDeleted_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + showDeleted_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,6 +608,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The Execution from which the Tasks should be listed.
      * To list all Tasks across Executions of a Job, use "-" instead of Execution
@@ -574,14 +617,16 @@ public Builder mergeFrom(
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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; @@ -590,6 +635,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Execution from which the Tasks should be listed.
      * To list all Tasks across Executions of a Job, use "-" instead of Execution
@@ -597,16 +644,17 @@ public java.lang.String getParent() {
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -614,6 +662,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The Execution from which the Tasks should be listed.
      * To list all Tasks across Executions of a Job, use "-" instead of Execution
@@ -621,21 +671,25 @@ public java.lang.String getParent() {
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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 Execution from which the Tasks should be listed.
      * To list all Tasks across Executions of a Job, use "-" instead of Execution
@@ -643,16 +697,21 @@ public Builder setParent(
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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 Execution from which the Tasks should be listed.
      * To list all Tasks across Executions of a Job, use "-" instead of Execution
@@ -660,29 +719,34 @@ public Builder clearParent() {
      * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
      * 
* - * 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 Tasks to return in this call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -690,30 +754,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of Tasks 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 Tasks to return in this call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -721,19 +791,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token received from a previous call to ListTasks.
      * 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; @@ -742,21 +814,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received from a previous call to ListTasks.
      * 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 { @@ -764,69 +837,79 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token received from a previous call to ListTasks.
      * 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 ListTasks.
      * 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 ListTasks.
      * 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 @@ -834,37 +917,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); } @@ -874,12 +963,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListTasksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListTasksRequest) private static final com.google.cloud.run.v2.ListTasksRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListTasksRequest(); } @@ -888,27 +977,27 @@ public static com.google.cloud.run.v2.ListTasksRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTasksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTasksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,6 +1012,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListTasksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.java index 3c10e76e4ffa..1fbb9728d4ed 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksRequestOrBuilder.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/task.proto package com.google.cloud.run.v2; -public interface ListTasksRequestOrBuilder extends +public interface ListTasksRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListTasksRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Execution from which the Tasks should be listed.
    * To list all Tasks across Executions of a Job, use "-" instead of Execution
@@ -15,11 +33,16 @@ public interface ListTasksRequestOrBuilder extends
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
    * 
* - * 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 Execution from which the Tasks should be listed.
    * To list all Tasks across Executions of a Job, use "-" instead of Execution
@@ -27,50 +50,63 @@ public interface ListTasksRequestOrBuilder extends
    * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
    * 
* - * 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 Tasks to return in this call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token received from a previous call to ListTasks.
    * 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 ListTasks.
    * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.java similarity index 70% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.java index 34860fbe876c..0a2a106742c5 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponse.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/task.proto package com.google.cloud.run.v2; /** + * + * *
  * Response message containing a list of Tasks.
  * 
* * Protobuf type {@code google.cloud.run.v2.ListTasksResponse} */ -public final class ListTasksResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTasksResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.ListTasksResponse) ListTasksResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTasksResponse.newBuilder() to construct. private ListTasksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTasksResponse() { tasks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private ListTasksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTasksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListTasksResponse.class, com.google.cloud.run.v2.ListTasksResponse.Builder.class); + com.google.cloud.run.v2.ListTasksResponse.class, + com.google.cloud.run.v2.ListTasksResponse.Builder.class); } public static final int TASKS_FIELD_NUMBER = 1; private java.util.List tasks_; /** + * + * *
    * The resulting list of Tasks.
    * 
@@ -63,6 +84,8 @@ public java.util.List getTasksList() { return tasks_; } /** + * + * *
    * The resulting list of Tasks.
    * 
@@ -70,11 +93,12 @@ public java.util.List getTasksList() { * repeated .google.cloud.run.v2.Task tasks = 1; */ @java.lang.Override - public java.util.List - getTasksOrBuilderList() { + public java.util.List getTasksOrBuilderList() { return tasks_; } /** + * + * *
    * The resulting list of Tasks.
    * 
@@ -86,6 +110,8 @@ public int getTasksCount() { return tasks_.size(); } /** + * + * *
    * The resulting list of Tasks.
    * 
@@ -97,6 +123,8 @@ public com.google.cloud.run.v2.Task getTasks(int index) { return tasks_.get(index); } /** + * + * *
    * The resulting list of Tasks.
    * 
@@ -104,20 +132,22 @@ public com.google.cloud.run.v2.Task getTasks(int index) { * repeated .google.cloud.run.v2.Task tasks = 1; */ @java.lang.Override - public com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder( - int index) { + public com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder(int index) { return tasks_.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
    * ListTasks request to continue.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,30 +156,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
    * ListTasks 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 { @@ -158,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +200,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 < tasks_.size(); i++) { output.writeMessage(1, tasks_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tasks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tasks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +230,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.ListTasksResponse)) { return super.equals(obj); } - com.google.cloud.run.v2.ListTasksResponse other = (com.google.cloud.run.v2.ListTasksResponse) obj; + com.google.cloud.run.v2.ListTasksResponse other = + (com.google.cloud.run.v2.ListTasksResponse) obj; - if (!getTasksList() - .equals(other.getTasksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getTasksList().equals(other.getTasksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,130 +262,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.ListTasksResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.ListTasksResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListTasksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( com.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.ListTasksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.ListTasksResponse parseFrom( - byte[] data, - com.google.protobuf.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.ListTasksResponse 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.ListTasksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListTasksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.ListTasksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.ListTasksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ListTasksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.ListTasksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.ListTasksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Tasks.
    * 
* * Protobuf type {@code google.cloud.run.v2.ListTasksResponse} */ - public static final class Builder extends - com.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.ListTasksResponse) com.google.cloud.run.v2.ListTasksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.ListTasksResponse.class, com.google.cloud.run.v2.ListTasksResponse.Builder.class); + com.google.cloud.run.v2.ListTasksResponse.class, + com.google.cloud.run.v2.ListTasksResponse.Builder.class); } // Construct using com.google.cloud.run.v2.ListTasksResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; } @java.lang.Override @@ -395,7 +429,8 @@ public com.google.cloud.run.v2.ListTasksResponse build() { @java.lang.Override public com.google.cloud.run.v2.ListTasksResponse buildPartial() { - com.google.cloud.run.v2.ListTasksResponse result = new com.google.cloud.run.v2.ListTasksResponse(this); + com.google.cloud.run.v2.ListTasksResponse result = + new com.google.cloud.run.v2.ListTasksResponse(this); int from_bitField0_ = bitField0_; if (tasksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +450,39 @@ public com.google.cloud.run.v2.ListTasksResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListTasksResponse) { - return mergeFrom((com.google.cloud.run.v2.ListTasksResponse)other); + return mergeFrom((com.google.cloud.run.v2.ListTasksResponse) other); } else { super.mergeFrom(other); return this; @@ -473,9 +509,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.ListTasksResponse other) { tasksBuilder_ = null; tasks_ = other.tasks_; bitField0_ = (bitField0_ & ~0x00000001); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTasksFieldBuilder() + : null; } else { tasksBuilder_.addAllMessages(other.tasks_); } @@ -511,30 +548,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.run.v2.Task m = - input.readMessage( - com.google.cloud.run.v2.Task.parser(), - extensionRegistry); - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(m); - } else { - tasksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.run.v2.Task m = + input.readMessage(com.google.cloud.run.v2.Task.parser(), extensionRegistry); + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(m); + } else { + tasksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,21 +582,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List tasks_ = - java.util.Collections.emptyList(); + private java.util.List tasks_ = java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tasks_ = new java.util.ArrayList(tasks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Task, com.google.cloud.run.v2.Task.Builder, com.google.cloud.run.v2.TaskOrBuilder> tasksBuilder_; + com.google.cloud.run.v2.Task, + com.google.cloud.run.v2.Task.Builder, + com.google.cloud.run.v2.TaskOrBuilder> + tasksBuilder_; /** + * + * *
      * The resulting list of Tasks.
      * 
@@ -573,6 +617,8 @@ public java.util.List getTasksList() { } } /** + * + * *
      * The resulting list of Tasks.
      * 
@@ -587,6 +633,8 @@ public int getTasksCount() { } } /** + * + * *
      * The resulting list of Tasks.
      * 
@@ -601,14 +649,15 @@ public com.google.cloud.run.v2.Task getTasks(int index) { } } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public Builder setTasks( - int index, com.google.cloud.run.v2.Task value) { + public Builder setTasks(int index, com.google.cloud.run.v2.Task value) { if (tasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -622,14 +671,15 @@ public Builder setTasks( return this; } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public Builder setTasks( - int index, com.google.cloud.run.v2.Task.Builder builderForValue) { + public Builder setTasks(int index, com.google.cloud.run.v2.Task.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.set(index, builderForValue.build()); @@ -640,6 +690,8 @@ public Builder setTasks( return this; } /** + * + * *
      * The resulting list of Tasks.
      * 
@@ -660,14 +712,15 @@ public Builder addTasks(com.google.cloud.run.v2.Task value) { return this; } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public Builder addTasks( - int index, com.google.cloud.run.v2.Task value) { + public Builder addTasks(int index, com.google.cloud.run.v2.Task value) { if (tasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -681,14 +734,15 @@ public Builder addTasks( return this; } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public Builder addTasks( - com.google.cloud.run.v2.Task.Builder builderForValue) { + public Builder addTasks(com.google.cloud.run.v2.Task.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.add(builderForValue.build()); @@ -699,14 +753,15 @@ public Builder addTasks( return this; } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public Builder addTasks( - int index, com.google.cloud.run.v2.Task.Builder builderForValue) { + public Builder addTasks(int index, com.google.cloud.run.v2.Task.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.add(index, builderForValue.build()); @@ -717,18 +772,18 @@ public Builder addTasks( return this; } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public Builder addAllTasks( - java.lang.Iterable values) { + public Builder addAllTasks(java.lang.Iterable values) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tasks_); onChanged(); } else { tasksBuilder_.addAllMessages(values); @@ -736,6 +791,8 @@ public Builder addAllTasks( return this; } /** + * + * *
      * The resulting list of Tasks.
      * 
@@ -753,6 +810,8 @@ public Builder clearTasks() { return this; } /** + * + * *
      * The resulting list of Tasks.
      * 
@@ -770,39 +829,43 @@ public Builder removeTasks(int index) { return this; } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public com.google.cloud.run.v2.Task.Builder getTasksBuilder( - int index) { + public com.google.cloud.run.v2.Task.Builder getTasksBuilder(int index) { return getTasksFieldBuilder().getBuilder(index); } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder( - int index) { + public com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder(int index) { if (tasksBuilder_ == null) { - return tasks_.get(index); } else { + return tasks_.get(index); + } else { return tasksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public java.util.List - getTasksOrBuilderList() { + public java.util.List getTasksOrBuilderList() { if (tasksBuilder_ != null) { return tasksBuilder_.getMessageOrBuilderList(); } else { @@ -810,6 +873,8 @@ public com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder( } } /** + * + * *
      * The resulting list of Tasks.
      * 
@@ -817,42 +882,46 @@ public com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder( * repeated .google.cloud.run.v2.Task tasks = 1; */ public com.google.cloud.run.v2.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - com.google.cloud.run.v2.Task.getDefaultInstance()); + return getTasksFieldBuilder().addBuilder(com.google.cloud.run.v2.Task.getDefaultInstance()); } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public com.google.cloud.run.v2.Task.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Task.getDefaultInstance()); + public com.google.cloud.run.v2.Task.Builder addTasksBuilder(int index) { + return getTasksFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Task.getDefaultInstance()); } /** + * + * *
      * The resulting list of Tasks.
      * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - public java.util.List - getTasksBuilderList() { + public java.util.List getTasksBuilderList() { return getTasksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Task, com.google.cloud.run.v2.Task.Builder, com.google.cloud.run.v2.TaskOrBuilder> + com.google.cloud.run.v2.Task, + com.google.cloud.run.v2.Task.Builder, + com.google.cloud.run.v2.TaskOrBuilder> getTasksFieldBuilder() { if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Task, com.google.cloud.run.v2.Task.Builder, com.google.cloud.run.v2.TaskOrBuilder>( - tasks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + tasksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Task, + com.google.cloud.run.v2.Task.Builder, + com.google.cloud.run.v2.TaskOrBuilder>( + tasks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); tasks_ = null; } return tasksBuilder_; @@ -860,19 +929,21 @@ public com.google.cloud.run.v2.Task.Builder addTasksBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListTasks 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; @@ -881,21 +952,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListTasks 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 { @@ -903,64 +975,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token indicating there are more items than page_size. Use it in the next
      * ListTasks 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
      * ListTasks 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
      * ListTasks 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); } @@ -970,12 +1049,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.ListTasksResponse) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.ListTasksResponse) private static final com.google.cloud.run.v2.ListTasksResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.ListTasksResponse(); } @@ -984,27 +1063,27 @@ public static com.google.cloud.run.v2.ListTasksResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTasksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTasksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1098,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ListTasksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.java index 7ab3aea84d69..400af862b4a6 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListTasksResponseOrBuilder.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/task.proto package com.google.cloud.run.v2; -public interface ListTasksResponseOrBuilder extends +public interface ListTasksResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ListTasksResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resulting list of Tasks.
    * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - java.util.List - getTasksList(); + java.util.List getTasksList(); /** + * + * *
    * The resulting list of Tasks.
    * 
@@ -25,6 +44,8 @@ public interface ListTasksResponseOrBuilder extends */ com.google.cloud.run.v2.Task getTasks(int index); /** + * + * *
    * The resulting list of Tasks.
    * 
@@ -33,43 +54,50 @@ public interface ListTasksResponseOrBuilder extends */ int getTasksCount(); /** + * + * *
    * The resulting list of Tasks.
    * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - java.util.List - getTasksOrBuilderList(); + java.util.List getTasksOrBuilderList(); /** + * + * *
    * The resulting list of Tasks.
    * 
* * repeated .google.cloud.run.v2.Task tasks = 1; */ - com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder( - int index); + com.google.cloud.run.v2.TaskOrBuilder getTasksOrBuilder(int index); /** + * + * *
    * A token indicating there are more items than page_size. Use it in the next
    * ListTasks 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
    * ListTasks 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java similarity index 75% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java index 341f1d5c898a..63e96b8b35af 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.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; /** + * + * *
  * Probe describes a health check to be performed against a container to
  * determine whether it is alive or ready to receive traffic.
@@ -11,52 +28,54 @@
  *
  * Protobuf type {@code google.cloud.run.v2.Probe}
  */
-public final class Probe extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Probe extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Probe)
     ProbeOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Probe.newBuilder() to construct.
   private Probe(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Probe() {
-  }
+
+  private Probe() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Probe();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Probe_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Probe_fieldAccessorTable
+    return com.google.cloud.run.v2.K8sMinProto
+        .internal_static_google_cloud_run_v2_Probe_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.run.v2.Probe.class, com.google.cloud.run.v2.Probe.Builder.class);
   }
 
   private int probeTypeCase_ = 0;
   private java.lang.Object probeType_;
+
   public enum ProbeTypeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     HTTP_GET(5),
     TCP_SOCKET(6),
     PROBETYPE_NOT_SET(0);
     private final int value;
+
     private ProbeTypeCase(int value) {
       this.value = value;
     }
@@ -72,26 +91,31 @@ public static ProbeTypeCase valueOf(int value) {
 
     public static ProbeTypeCase forNumber(int value) {
       switch (value) {
-        case 5: return HTTP_GET;
-        case 6: return TCP_SOCKET;
-        case 0: return PROBETYPE_NOT_SET;
-        default: return null;
+        case 5:
+          return HTTP_GET;
+        case 6:
+          return TCP_SOCKET;
+        case 0:
+          return PROBETYPE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ProbeTypeCase
-  getProbeTypeCase() {
-    return ProbeTypeCase.forNumber(
-        probeTypeCase_);
+  public ProbeTypeCase getProbeTypeCase() {
+    return ProbeTypeCase.forNumber(probeTypeCase_);
   }
 
   public static final int INITIAL_DELAY_SECONDS_FIELD_NUMBER = 1;
   private int initialDelaySeconds_;
   /**
+   *
+   *
    * 
    * Number of seconds after the container has started before the probe is
    * initiated.
@@ -102,6 +126,7 @@ public int getNumber() {
    * 
* * int32 initial_delay_seconds = 1; + * * @return The initialDelaySeconds. */ @java.lang.Override @@ -112,6 +137,8 @@ public int getInitialDelaySeconds() { public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 2; private int timeoutSeconds_; /** + * + * *
    * Number of seconds after which the probe times out.
    * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
@@ -121,6 +148,7 @@ public int getInitialDelaySeconds() {
    * 
* * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ @java.lang.Override @@ -131,6 +159,8 @@ public int getTimeoutSeconds() { public static final int PERIOD_SECONDS_FIELD_NUMBER = 3; private int periodSeconds_; /** + * + * *
    * How often (in seconds) to perform the probe.
    * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
@@ -139,6 +169,7 @@ public int getTimeoutSeconds() {
    * 
* * int32 period_seconds = 3; + * * @return The periodSeconds. */ @java.lang.Override @@ -149,12 +180,15 @@ public int getPeriodSeconds() { public static final int FAILURE_THRESHOLD_FIELD_NUMBER = 4; private int failureThreshold_; /** + * + * *
    * Minimum consecutive failures for the probe to be considered failed after
    * having succeeded. Defaults to 3. Minimum value is 1.
    * 
* * int32 failure_threshold = 4; + * * @return The failureThreshold. */ @java.lang.Override @@ -164,12 +198,15 @@ public int getFailureThreshold() { public static final int HTTP_GET_FIELD_NUMBER = 5; /** + * + * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * * @return Whether the httpGet field is set. */ @java.lang.Override @@ -177,22 +214,27 @@ public boolean hasHttpGet() { return probeTypeCase_ == 5; } /** + * + * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * * @return The httpGet. */ @java.lang.Override public com.google.cloud.run.v2.HTTPGetAction getHttpGet() { if (probeTypeCase_ == 5) { - return (com.google.cloud.run.v2.HTTPGetAction) probeType_; + return (com.google.cloud.run.v2.HTTPGetAction) probeType_; } return com.google.cloud.run.v2.HTTPGetAction.getDefaultInstance(); } /** + * + * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -203,19 +245,22 @@ public com.google.cloud.run.v2.HTTPGetAction getHttpGet() {
   @java.lang.Override
   public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() {
     if (probeTypeCase_ == 5) {
-       return (com.google.cloud.run.v2.HTTPGetAction) probeType_;
+      return (com.google.cloud.run.v2.HTTPGetAction) probeType_;
     }
     return com.google.cloud.run.v2.HTTPGetAction.getDefaultInstance();
   }
 
   public static final int TCP_SOCKET_FIELD_NUMBER = 6;
   /**
+   *
+   *
    * 
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * * @return Whether the tcpSocket field is set. */ @java.lang.Override @@ -223,22 +268,27 @@ public boolean hasTcpSocket() { return probeTypeCase_ == 6; } /** + * + * *
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * * @return The tcpSocket. */ @java.lang.Override public com.google.cloud.run.v2.TCPSocketAction getTcpSocket() { if (probeTypeCase_ == 6) { - return (com.google.cloud.run.v2.TCPSocketAction) probeType_; + return (com.google.cloud.run.v2.TCPSocketAction) probeType_; } return com.google.cloud.run.v2.TCPSocketAction.getDefaultInstance(); } /** + * + * *
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -249,12 +299,13 @@ public com.google.cloud.run.v2.TCPSocketAction getTcpSocket() {
   @java.lang.Override
   public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder() {
     if (probeTypeCase_ == 6) {
-       return (com.google.cloud.run.v2.TCPSocketAction) probeType_;
+      return (com.google.cloud.run.v2.TCPSocketAction) probeType_;
     }
     return com.google.cloud.run.v2.TCPSocketAction.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -266,8 +317,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 (initialDelaySeconds_ != 0) {
       output.writeInt32(1, initialDelaySeconds_);
     }
@@ -296,28 +346,26 @@ public int getSerializedSize() {
 
     size = 0;
     if (initialDelaySeconds_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(1, initialDelaySeconds_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, initialDelaySeconds_);
     }
     if (timeoutSeconds_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(2, timeoutSeconds_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, timeoutSeconds_);
     }
     if (periodSeconds_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(3, periodSeconds_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, periodSeconds_);
     }
     if (failureThreshold_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(4, failureThreshold_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, failureThreshold_);
     }
     if (probeTypeCase_ == 5) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, (com.google.cloud.run.v2.HTTPGetAction) probeType_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              5, (com.google.cloud.run.v2.HTTPGetAction) probeType_);
     }
     if (probeTypeCase_ == 6) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, (com.google.cloud.run.v2.TCPSocketAction) probeType_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              6, (com.google.cloud.run.v2.TCPSocketAction) probeType_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -327,30 +375,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.Probe)) {
       return super.equals(obj);
     }
     com.google.cloud.run.v2.Probe other = (com.google.cloud.run.v2.Probe) obj;
 
-    if (getInitialDelaySeconds()
-        != other.getInitialDelaySeconds()) return false;
-    if (getTimeoutSeconds()
-        != other.getTimeoutSeconds()) return false;
-    if (getPeriodSeconds()
-        != other.getPeriodSeconds()) return false;
-    if (getFailureThreshold()
-        != other.getFailureThreshold()) return false;
+    if (getInitialDelaySeconds() != other.getInitialDelaySeconds()) return false;
+    if (getTimeoutSeconds() != other.getTimeoutSeconds()) return false;
+    if (getPeriodSeconds() != other.getPeriodSeconds()) return false;
+    if (getFailureThreshold() != other.getFailureThreshold()) return false;
     if (!getProbeTypeCase().equals(other.getProbeTypeCase())) return false;
     switch (probeTypeCase_) {
       case 5:
-        if (!getHttpGet()
-            .equals(other.getHttpGet())) return false;
+        if (!getHttpGet().equals(other.getHttpGet())) return false;
         break;
       case 6:
-        if (!getTcpSocket()
-            .equals(other.getTcpSocket())) return false;
+        if (!getTcpSocket().equals(other.getTcpSocket())) return false;
         break;
       case 0:
       default:
@@ -391,97 +433,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.run.v2.Probe parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.run.v2.Probe parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.run.v2.Probe parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.Probe parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.run.v2.Probe parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.run.v2.Probe parseFrom(
       com.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.Probe parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.run.v2.Probe parseFrom(
-      byte[] data,
-      com.google.protobuf.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.Probe 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.Probe parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.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.Probe 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.Probe parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.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.Probe parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.cloud.run.v2.Probe 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.Probe parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public 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.Probe prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Probe describes a health check to be performed against a container to
    * determine whether it is alive or ready to receive traffic.
@@ -489,33 +537,31 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.Probe}
    */
-  public static final class Builder extends
-      com.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.Probe)
       com.google.cloud.run.v2.ProbeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Probe_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_Probe_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_Probe_fieldAccessorTable
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_Probe_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.cloud.run.v2.Probe.class, com.google.cloud.run.v2.Probe.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.Probe.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -539,9 +585,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_Probe_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.K8sMinProto
+          .internal_static_google_cloud_run_v2_Probe_descriptor;
     }
 
     @java.lang.Override
@@ -588,38 +634,39 @@ public com.google.cloud.run.v2.Probe buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.Probe) {
-        return mergeFrom((com.google.cloud.run.v2.Probe)other);
+        return mergeFrom((com.google.cloud.run.v2.Probe) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -641,17 +688,20 @@ public Builder mergeFrom(com.google.cloud.run.v2.Probe other) {
         setFailureThreshold(other.getFailureThreshold());
       }
       switch (other.getProbeTypeCase()) {
-        case HTTP_GET: {
-          mergeHttpGet(other.getHttpGet());
-          break;
-        }
-        case TCP_SOCKET: {
-          mergeTcpSocket(other.getTcpSocket());
-          break;
-        }
-        case PROBETYPE_NOT_SET: {
-          break;
-        }
+        case HTTP_GET:
+          {
+            mergeHttpGet(other.getHttpGet());
+            break;
+          }
+        case TCP_SOCKET:
+          {
+            mergeTcpSocket(other.getTcpSocket());
+            break;
+          }
+        case PROBETYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -679,46 +729,49 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              initialDelaySeconds_ = input.readInt32();
-
-              break;
-            } // case 8
-            case 16: {
-              timeoutSeconds_ = input.readInt32();
-
-              break;
-            } // case 16
-            case 24: {
-              periodSeconds_ = input.readInt32();
-
-              break;
-            } // case 24
-            case 32: {
-              failureThreshold_ = input.readInt32();
-
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getHttpGetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              probeTypeCase_ = 5;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getTcpSocketFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              probeTypeCase_ = 6;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                initialDelaySeconds_ = input.readInt32();
+
+                break;
+              } // case 8
+            case 16:
+              {
+                timeoutSeconds_ = input.readInt32();
+
+                break;
+              } // case 16
+            case 24:
+              {
+                periodSeconds_ = input.readInt32();
+
+                break;
+              } // case 24
+            case 32:
+              {
+                failureThreshold_ = input.readInt32();
+
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getHttpGetFieldBuilder().getBuilder(), extensionRegistry);
+                probeTypeCase_ = 5;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getTcpSocketFieldBuilder().getBuilder(), extensionRegistry);
+                probeTypeCase_ = 6;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -728,12 +781,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int probeTypeCase_ = 0;
     private java.lang.Object probeType_;
-    public ProbeTypeCase
-        getProbeTypeCase() {
-      return ProbeTypeCase.forNumber(
-          probeTypeCase_);
+
+    public ProbeTypeCase getProbeTypeCase() {
+      return ProbeTypeCase.forNumber(probeTypeCase_);
     }
 
     public Builder clearProbeType() {
@@ -743,9 +796,10 @@ public Builder clearProbeType() {
       return this;
     }
 
-
-    private int initialDelaySeconds_ ;
+    private int initialDelaySeconds_;
     /**
+     *
+     *
      * 
      * Number of seconds after the container has started before the probe is
      * initiated.
@@ -756,6 +810,7 @@ public Builder clearProbeType() {
      * 
* * int32 initial_delay_seconds = 1; + * * @return The initialDelaySeconds. */ @java.lang.Override @@ -763,6 +818,8 @@ public int getInitialDelaySeconds() { return initialDelaySeconds_; } /** + * + * *
      * Number of seconds after the container has started before the probe is
      * initiated.
@@ -773,16 +830,19 @@ public int getInitialDelaySeconds() {
      * 
* * int32 initial_delay_seconds = 1; + * * @param value The initialDelaySeconds to set. * @return This builder for chaining. */ public Builder setInitialDelaySeconds(int value) { - + initialDelaySeconds_ = value; onChanged(); return this; } /** + * + * *
      * Number of seconds after the container has started before the probe is
      * initiated.
@@ -793,17 +853,20 @@ public Builder setInitialDelaySeconds(int value) {
      * 
* * int32 initial_delay_seconds = 1; + * * @return This builder for chaining. */ public Builder clearInitialDelaySeconds() { - + initialDelaySeconds_ = 0; onChanged(); return this; } - private int timeoutSeconds_ ; + private int timeoutSeconds_; /** + * + * *
      * Number of seconds after which the probe times out.
      * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
@@ -813,6 +876,7 @@ public Builder clearInitialDelaySeconds() {
      * 
* * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ @java.lang.Override @@ -820,6 +884,8 @@ public int getTimeoutSeconds() { return timeoutSeconds_; } /** + * + * *
      * Number of seconds after which the probe times out.
      * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
@@ -829,16 +895,19 @@ public int getTimeoutSeconds() {
      * 
* * int32 timeout_seconds = 2; + * * @param value The timeoutSeconds to set. * @return This builder for chaining. */ public Builder setTimeoutSeconds(int value) { - + timeoutSeconds_ = value; onChanged(); return this; } /** + * + * *
      * Number of seconds after which the probe times out.
      * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
@@ -848,17 +917,20 @@ public Builder setTimeoutSeconds(int value) {
      * 
* * int32 timeout_seconds = 2; + * * @return This builder for chaining. */ public Builder clearTimeoutSeconds() { - + timeoutSeconds_ = 0; onChanged(); return this; } - private int periodSeconds_ ; + private int periodSeconds_; /** + * + * *
      * How often (in seconds) to perform the probe.
      * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
@@ -867,6 +939,7 @@ public Builder clearTimeoutSeconds() {
      * 
* * int32 period_seconds = 3; + * * @return The periodSeconds. */ @java.lang.Override @@ -874,6 +947,8 @@ public int getPeriodSeconds() { return periodSeconds_; } /** + * + * *
      * How often (in seconds) to perform the probe.
      * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
@@ -882,16 +957,19 @@ public int getPeriodSeconds() {
      * 
* * int32 period_seconds = 3; + * * @param value The periodSeconds to set. * @return This builder for chaining. */ public Builder setPeriodSeconds(int value) { - + periodSeconds_ = value; onChanged(); return this; } /** + * + * *
      * How often (in seconds) to perform the probe.
      * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
@@ -900,23 +978,27 @@ public Builder setPeriodSeconds(int value) {
      * 
* * int32 period_seconds = 3; + * * @return This builder for chaining. */ public Builder clearPeriodSeconds() { - + periodSeconds_ = 0; onChanged(); return this; } - private int failureThreshold_ ; + private int failureThreshold_; /** + * + * *
      * Minimum consecutive failures for the probe to be considered failed after
      * having succeeded. Defaults to 3. Minimum value is 1.
      * 
* * int32 failure_threshold = 4; + * * @return The failureThreshold. */ @java.lang.Override @@ -924,46 +1006,58 @@ public int getFailureThreshold() { return failureThreshold_; } /** + * + * *
      * Minimum consecutive failures for the probe to be considered failed after
      * having succeeded. Defaults to 3. Minimum value is 1.
      * 
* * int32 failure_threshold = 4; + * * @param value The failureThreshold to set. * @return This builder for chaining. */ public Builder setFailureThreshold(int value) { - + failureThreshold_ = value; onChanged(); return this; } /** + * + * *
      * Minimum consecutive failures for the probe to be considered failed after
      * having succeeded. Defaults to 3. Minimum value is 1.
      * 
* * int32 failure_threshold = 4; + * * @return This builder for chaining. */ public Builder clearFailureThreshold() { - + failureThreshold_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.HTTPGetAction, com.google.cloud.run.v2.HTTPGetAction.Builder, com.google.cloud.run.v2.HTTPGetActionOrBuilder> httpGetBuilder_; + com.google.cloud.run.v2.HTTPGetAction, + com.google.cloud.run.v2.HTTPGetAction.Builder, + com.google.cloud.run.v2.HTTPGetActionOrBuilder> + httpGetBuilder_; /** + * + * *
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
      * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * * @return Whether the httpGet field is set. */ @java.lang.Override @@ -971,12 +1065,15 @@ public boolean hasHttpGet() { return probeTypeCase_ == 5; } /** + * + * *
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
      * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * * @return The httpGet. */ @java.lang.Override @@ -994,6 +1091,8 @@ public com.google.cloud.run.v2.HTTPGetAction getHttpGet() { } } /** + * + * *
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1015,6 +1114,8 @@ public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1022,8 +1123,7 @@ public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction value) {
      *
      * .google.cloud.run.v2.HTTPGetAction http_get = 5;
      */
-    public Builder setHttpGet(
-        com.google.cloud.run.v2.HTTPGetAction.Builder builderForValue) {
+    public Builder setHttpGet(com.google.cloud.run.v2.HTTPGetAction.Builder builderForValue) {
       if (httpGetBuilder_ == null) {
         probeType_ = builderForValue.build();
         onChanged();
@@ -1034,6 +1134,8 @@ public Builder setHttpGet(
       return this;
     }
     /**
+     *
+     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1043,10 +1145,13 @@ public Builder setHttpGet(
      */
     public Builder mergeHttpGet(com.google.cloud.run.v2.HTTPGetAction value) {
       if (httpGetBuilder_ == null) {
-        if (probeTypeCase_ == 5 &&
-            probeType_ != com.google.cloud.run.v2.HTTPGetAction.getDefaultInstance()) {
-          probeType_ = com.google.cloud.run.v2.HTTPGetAction.newBuilder((com.google.cloud.run.v2.HTTPGetAction) probeType_)
-              .mergeFrom(value).buildPartial();
+        if (probeTypeCase_ == 5
+            && probeType_ != com.google.cloud.run.v2.HTTPGetAction.getDefaultInstance()) {
+          probeType_ =
+              com.google.cloud.run.v2.HTTPGetAction.newBuilder(
+                      (com.google.cloud.run.v2.HTTPGetAction) probeType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           probeType_ = value;
         }
@@ -1062,6 +1167,8 @@ public Builder mergeHttpGet(com.google.cloud.run.v2.HTTPGetAction value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1086,6 +1193,8 @@ public Builder clearHttpGet() {
       return this;
     }
     /**
+     *
+     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1097,6 +1206,8 @@ public com.google.cloud.run.v2.HTTPGetAction.Builder getHttpGetBuilder() {
       return getHttpGetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1116,6 +1227,8 @@ public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * HTTPGet specifies the http request to perform.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1124,33 +1237,45 @@ public com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder() {
      * .google.cloud.run.v2.HTTPGetAction http_get = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.HTTPGetAction, com.google.cloud.run.v2.HTTPGetAction.Builder, com.google.cloud.run.v2.HTTPGetActionOrBuilder> 
+            com.google.cloud.run.v2.HTTPGetAction,
+            com.google.cloud.run.v2.HTTPGetAction.Builder,
+            com.google.cloud.run.v2.HTTPGetActionOrBuilder>
         getHttpGetFieldBuilder() {
       if (httpGetBuilder_ == null) {
         if (!(probeTypeCase_ == 5)) {
           probeType_ = com.google.cloud.run.v2.HTTPGetAction.getDefaultInstance();
         }
-        httpGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.HTTPGetAction, com.google.cloud.run.v2.HTTPGetAction.Builder, com.google.cloud.run.v2.HTTPGetActionOrBuilder>(
+        httpGetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.HTTPGetAction,
+                com.google.cloud.run.v2.HTTPGetAction.Builder,
+                com.google.cloud.run.v2.HTTPGetActionOrBuilder>(
                 (com.google.cloud.run.v2.HTTPGetAction) probeType_,
                 getParentForChildren(),
                 isClean());
         probeType_ = null;
       }
       probeTypeCase_ = 5;
-      onChanged();;
+      onChanged();
+      ;
       return httpGetBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.TCPSocketAction, com.google.cloud.run.v2.TCPSocketAction.Builder, com.google.cloud.run.v2.TCPSocketActionOrBuilder> tcpSocketBuilder_;
+            com.google.cloud.run.v2.TCPSocketAction,
+            com.google.cloud.run.v2.TCPSocketAction.Builder,
+            com.google.cloud.run.v2.TCPSocketActionOrBuilder>
+        tcpSocketBuilder_;
     /**
+     *
+     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
      * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * * @return Whether the tcpSocket field is set. */ @java.lang.Override @@ -1158,12 +1283,15 @@ public boolean hasTcpSocket() { return probeTypeCase_ == 6; } /** + * + * *
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
      * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * * @return The tcpSocket. */ @java.lang.Override @@ -1181,6 +1309,8 @@ public com.google.cloud.run.v2.TCPSocketAction getTcpSocket() { } } /** + * + * *
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1202,6 +1332,8 @@ public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1209,8 +1341,7 @@ public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) {
      *
      * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
      */
-    public Builder setTcpSocket(
-        com.google.cloud.run.v2.TCPSocketAction.Builder builderForValue) {
+    public Builder setTcpSocket(com.google.cloud.run.v2.TCPSocketAction.Builder builderForValue) {
       if (tcpSocketBuilder_ == null) {
         probeType_ = builderForValue.build();
         onChanged();
@@ -1221,6 +1352,8 @@ public Builder setTcpSocket(
       return this;
     }
     /**
+     *
+     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1230,10 +1363,13 @@ public Builder setTcpSocket(
      */
     public Builder mergeTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) {
       if (tcpSocketBuilder_ == null) {
-        if (probeTypeCase_ == 6 &&
-            probeType_ != com.google.cloud.run.v2.TCPSocketAction.getDefaultInstance()) {
-          probeType_ = com.google.cloud.run.v2.TCPSocketAction.newBuilder((com.google.cloud.run.v2.TCPSocketAction) probeType_)
-              .mergeFrom(value).buildPartial();
+        if (probeTypeCase_ == 6
+            && probeType_ != com.google.cloud.run.v2.TCPSocketAction.getDefaultInstance()) {
+          probeType_ =
+              com.google.cloud.run.v2.TCPSocketAction.newBuilder(
+                      (com.google.cloud.run.v2.TCPSocketAction) probeType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           probeType_ = value;
         }
@@ -1249,6 +1385,8 @@ public Builder mergeTcpSocket(com.google.cloud.run.v2.TCPSocketAction value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1273,6 +1411,8 @@ public Builder clearTcpSocket() {
       return this;
     }
     /**
+     *
+     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1284,6 +1424,8 @@ public com.google.cloud.run.v2.TCPSocketAction.Builder getTcpSocketBuilder() {
       return getTcpSocketFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1303,6 +1445,8 @@ public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * TCPSocket specifies an action involving a TCP port.
      * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -1311,26 +1455,32 @@ public com.google.cloud.run.v2.TCPSocketActionOrBuilder getTcpSocketOrBuilder()
      * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.TCPSocketAction, com.google.cloud.run.v2.TCPSocketAction.Builder, com.google.cloud.run.v2.TCPSocketActionOrBuilder> 
+            com.google.cloud.run.v2.TCPSocketAction,
+            com.google.cloud.run.v2.TCPSocketAction.Builder,
+            com.google.cloud.run.v2.TCPSocketActionOrBuilder>
         getTcpSocketFieldBuilder() {
       if (tcpSocketBuilder_ == null) {
         if (!(probeTypeCase_ == 6)) {
           probeType_ = com.google.cloud.run.v2.TCPSocketAction.getDefaultInstance();
         }
-        tcpSocketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.TCPSocketAction, com.google.cloud.run.v2.TCPSocketAction.Builder, com.google.cloud.run.v2.TCPSocketActionOrBuilder>(
+        tcpSocketBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.TCPSocketAction,
+                com.google.cloud.run.v2.TCPSocketAction.Builder,
+                com.google.cloud.run.v2.TCPSocketActionOrBuilder>(
                 (com.google.cloud.run.v2.TCPSocketAction) probeType_,
                 getParentForChildren(),
                 isClean());
         probeType_ = null;
       }
       probeTypeCase_ = 6;
-      onChanged();;
+      onChanged();
+      ;
       return tcpSocketBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1340,12 +1490,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Probe)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Probe)
   private static final com.google.cloud.run.v2.Probe DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.run.v2.Probe();
   }
@@ -1354,27 +1504,27 @@ public static com.google.cloud.run.v2.Probe getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Probe parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Probe parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1389,6 +1539,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.run.v2.Probe getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java
similarity index 82%
rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java
rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java
index 69ad92b9d739..161f8b43509e 100644
--- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java
+++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.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 ProbeOrBuilder extends
+public interface ProbeOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Probe)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Number of seconds after the container has started before the probe is
    * initiated.
@@ -18,11 +36,14 @@ public interface ProbeOrBuilder extends
    * 
* * int32 initial_delay_seconds = 1; + * * @return The initialDelaySeconds. */ int getInitialDelaySeconds(); /** + * + * *
    * Number of seconds after which the probe times out.
    * Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
@@ -32,11 +53,14 @@ public interface ProbeOrBuilder extends
    * 
* * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ int getTimeoutSeconds(); /** + * + * *
    * How often (in seconds) to perform the probe.
    * Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
@@ -45,42 +69,54 @@ public interface ProbeOrBuilder extends
    * 
* * int32 period_seconds = 3; + * * @return The periodSeconds. */ int getPeriodSeconds(); /** + * + * *
    * Minimum consecutive failures for the probe to be considered failed after
    * having succeeded. Defaults to 3. Minimum value is 1.
    * 
* * int32 failure_threshold = 4; + * * @return The failureThreshold. */ int getFailureThreshold(); /** + * + * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * * @return Whether the httpGet field is set. */ boolean hasHttpGet(); /** + * + * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.HTTPGetAction http_get = 5; + * * @return The httpGet. */ com.google.cloud.run.v2.HTTPGetAction getHttpGet(); /** + * + * *
    * HTTPGet specifies the http request to perform.
    * Exactly one of HTTPGet or TCPSocket must be specified.
@@ -91,26 +127,34 @@ public interface ProbeOrBuilder extends
   com.google.cloud.run.v2.HTTPGetActionOrBuilder getHttpGetOrBuilder();
 
   /**
+   *
+   *
    * 
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * * @return Whether the tcpSocket field is set. */ boolean hasTcpSocket(); /** + * + * *
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
    * 
* * .google.cloud.run.v2.TCPSocketAction tcp_socket = 6; + * * @return The tcpSocket. */ com.google.cloud.run.v2.TCPSocketAction getTcpSocket(); /** + * + * *
    * TCPSocket specifies an action involving a TCP port.
    * Exactly one of HTTPGet or TCPSocket must be specified.
diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java
similarity index 63%
rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java
rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java
index f7c391aa6440..826e5128c9ab 100644
--- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java
+++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java
@@ -1,83 +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/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; } - 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_; } @@ -86,6 +102,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
@@ -96,22 +114,22 @@ public int getLimitsCount() {
    *
    * map<string, string> limits = 1;
    */
-
   @java.lang.Override
-  public boolean containsLimits(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLimits(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLimits().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLimitsMap()} instead.
-   */
+  /** Use {@link #getLimitsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLimits() {
     return getLimitsMap();
   }
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -123,11 +141,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
@@ -139,16 +158,16 @@ public java.util.Map getLimitsMap() {
    * map<string, string> limits = 1;
    */
   @java.lang.Override
-
-  public java.lang.String getLimitsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLimits().getMap();
+  public java.lang.String getLimitsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLimits().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -160,12 +179,11 @@ public java.lang.String getLimitsOrDefault(
    * map<string, string> limits = 1;
    */
   @java.lang.Override
-
-  public java.lang.String getLimitsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLimits().getMap();
+  public java.lang.String getLimitsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLimits().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -175,11 +193,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 @@ -188,6 +209,7 @@ public boolean getCpuIdle() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,14 +221,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_); } @@ -219,19 +236,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -241,17 +257,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,159 +283,162 @@ 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) + getUnknownFields().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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -431,9 +449,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 @@ -452,7 +470,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(); @@ -465,38 +484,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; @@ -505,8 +525,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()); } @@ -536,25 +555,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - limits__ = input.readMessage( - LimitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLimits().getMutableMap().put( - limits__.getKey(), limits__.getValue()); - break; - } // case 10 - case 16: { - cpuIdle_ = input.readBool(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry limits__ = + input.readMessage( + LimitsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLimits() + .getMutableMap() + .put(limits__.getKey(), limits__.getValue()); + break; + } // case 10 + case 16: + { + cpuIdle_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -564,24 +588,24 @@ public Builder mergeFrom( } // finally 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(); @@ -593,6 +617,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
@@ -603,22 +629,22 @@ public int getLimitsCount() {
      *
      * map<string, string> limits = 1;
      */
-
     @java.lang.Override
-    public boolean containsLimits(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLimits(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLimits().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLimitsMap()} instead.
-     */
+    /** Use {@link #getLimitsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLimits() {
       return getLimitsMap();
     }
     /**
+     *
+     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -630,11 +656,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
@@ -646,16 +673,17 @@ public java.util.Map getLimitsMap() {
      * map<string, string> limits = 1;
      */
     @java.lang.Override
-
     public java.lang.String getLimitsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLimits().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLimits().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -667,12 +695,11 @@ public java.lang.String getLimitsOrDefault(
      * map<string, string> limits = 1;
      */
     @java.lang.Override
-
-    public java.lang.String getLimitsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLimits().getMap();
+    public java.lang.String getLimitsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLimits().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -680,11 +707,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
@@ -695,23 +723,21 @@ public Builder clearLimits() {
      *
      * map<string, string> limits = 1;
      */
-
-    public Builder removeLimits(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLimits().getMutableMap()
-          .remove(key);
+    public Builder removeLimits(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLimits().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLimits() {
+    public java.util.Map getMutableLimits() {
       return internalGetMutableLimits().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -722,19 +748,20 @@ public Builder removeLimits(
      *
      * map<string, string> limits = 1;
      */
-    public Builder putLimits(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLimits(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLimits().getMutableMap()
-          .put(key, value);
+      internalGetMutableLimits().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Only memory and CPU are supported. Note: The only
      * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -745,21 +772,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 @@ -767,37 +794,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); } @@ -807,12 +840,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(); } @@ -821,27 +854,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -856,6 +889,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.ResourceRequirements getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java similarity index 72% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java index f6c05be9e553..34a5a4563c97 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/k8s.min.proto package com.google.cloud.run.v2; -public interface ResourceRequirementsOrBuilder extends +public interface ResourceRequirementsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.ResourceRequirements) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -20,6 +38,8 @@ public interface ResourceRequirementsOrBuilder extends
    */
   int getLimitsCount();
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -30,15 +50,13 @@ public interface ResourceRequirementsOrBuilder extends
    *
    * map<string, string> limits = 1;
    */
-  boolean containsLimits(
-      java.lang.String key);
-  /**
-   * Use {@link #getLimitsMap()} instead.
-   */
+  boolean containsLimits(java.lang.String key);
+  /** Use {@link #getLimitsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLimits();
+  java.util.Map getLimits();
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -49,9 +67,10 @@ boolean containsLimits(
    *
    * map<string, string> limits = 1;
    */
-  java.util.Map
-  getLimitsMap();
+  java.util.Map getLimitsMap();
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -64,11 +83,13 @@ boolean containsLimits(
    */
 
   /* nullable */
-java.lang.String getLimitsOrDefault(
+  java.lang.String getLimitsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Only memory and CPU are supported. Note: The only
    * supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
@@ -79,16 +100,17 @@ java.lang.String getLimitsOrDefault(
    *
    * map<string, string> limits = 1;
    */
-
-  java.lang.String getLimitsOrThrow(
-      java.lang.String key);
+  java.lang.String getLimitsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Determines whether CPU should be throttled or not outside of requests.
    * 
* * bool cpu_idle = 2; + * * @return The cpuIdle. */ boolean getCpuIdle(); diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java similarity index 72% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java index 0a18460d4dd7..2e2f3105e67c 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java +++ b/java-run/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,39 +56,38 @@ 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;
   }
-  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);
   }
@@ -78,11 +95,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 @@ -91,29 +111,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 { @@ -124,12 +144,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 @@ -138,30 +161,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 { @@ -172,12 +195,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 @@ -186,24 +212,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_; } @@ -212,6 +237,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
@@ -226,22 +253,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -257,11 +284,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
@@ -277,16 +305,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -302,12 +330,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -315,24 +342,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_;
   }
@@ -341,28 +368,30 @@ public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -370,11 +399,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.
    * 
@@ -382,16 +412,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -399,12 +430,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -414,11 +444,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 @@ -426,11 +460,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 @@ -438,11 +476,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() { @@ -452,11 +493,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 @@ -464,11 +509,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 @@ -476,11 +525,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() { @@ -490,12 +542,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 @@ -503,12 +559,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 @@ -516,12 +576,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() { @@ -531,13 +594,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 @@ -545,13 +612,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 @@ -559,13 +630,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() { @@ -575,6 +649,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
@@ -583,12 +659,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
@@ -597,9 +677,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; @@ -608,11 +690,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 @@ -621,29 +708,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 { @@ -654,11 +743,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 @@ -666,18 +758,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.
    * 
@@ -692,12 +791,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 @@ -705,12 +807,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 @@ -718,6 +823,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.
@@ -733,11 +840,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER = 34;
   private int maxInstanceRequestConcurrency_;
   /**
+   *
+   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 34; + * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -748,11 +858,14 @@ public int getMaxInstanceRequestConcurrency() { public static final int TIMEOUT_FIELD_NUMBER = 15; private com.google.protobuf.Duration timeout_; /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -760,11 +873,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 @@ -772,6 +888,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.
    * 
@@ -786,6 +904,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
@@ -793,6 +913,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 16; + * * @return The serviceAccount. */ @java.lang.Override @@ -801,14 +922,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
@@ -816,16 +938,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 { @@ -836,6 +957,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.
@@ -848,6 +971,8 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -856,11 +981,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.
@@ -873,6 +1000,8 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -885,6 +1014,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.
@@ -893,14 +1024,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.
    * 
@@ -912,6 +1044,8 @@ public java.util.List getVolumesList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -919,11 +1053,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.
    * 
@@ -935,6 +1071,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -946,6 +1084,8 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -953,41 +1093,51 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * repeated .google.cloud.run.v2.Volume volumes = 18; */ @java.lang.Override - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { return volumes_.get(index); } public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 20; private int executionEnvironment_; /** + * + * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override public int getExecutionEnvironmentValue() { + @java.lang.Override + public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** + * + * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The executionEnvironment. */ - @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { + @java.lang.Override + public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = + com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 21; private volatile java.lang.Object encryptionKey_; /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -995,6 +1145,7 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ @java.lang.Override @@ -1003,14 +1154,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
@@ -1018,16 +1170,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 { @@ -1038,6 +1189,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
@@ -1045,6 +1198,7 @@ public java.lang.String getEncryptionKey() {
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1055,71 +1209,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
@@ -1127,6 +1302,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 @@ -1137,11 +1313,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 @@ -1150,29 +1329,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 { @@ -1183,12 +1362,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 @@ -1197,30 +1379,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 { @@ -1229,6 +1411,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1240,8 +1423,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_); } @@ -1251,18 +1433,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()); } @@ -1299,7 +1473,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(18, volumes_.get(i)); } - if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (executionEnvironment_ + != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(20, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { @@ -1339,100 +1515,88 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, generation_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, launchStage_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, launchStage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, service_); } if (scaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getScaling()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getScaling()); } if (vpcAccess_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getVpcAccess()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVpcAccess()); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, serviceAccount_); } for (int i = 0; i < containers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, containers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, containers_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, volumes_.get(i)); } - if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(20, executionEnvironment_); + if (executionEnvironment_ + != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, encryptionKey_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(30, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, reconciling_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, conditions_.get(i)); } if (observedGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(32, observedGeneration_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(32, observedGeneration_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, logUri_); } if (maxInstanceRequestConcurrency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(34, maxInstanceRequestConcurrency_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 34, maxInstanceRequestConcurrency_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); @@ -1445,82 +1609,60 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.Revision)) { return super.equals(obj); } com.google.cloud.run.v2.Revision other = (com.google.cloud.run.v2.Revision) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getGeneration() - != other.getGeneration()) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getGeneration() != other.getGeneration()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } if (launchStage_ != other.launchStage_) return false; - if (!getService() - .equals(other.getService())) return false; + if (!getService().equals(other.getService())) return false; if (hasScaling() != other.hasScaling()) return false; if (hasScaling()) { - if (!getScaling() - .equals(other.getScaling())) return false; + if (!getScaling().equals(other.getScaling())) return false; } if (hasVpcAccess() != other.hasVpcAccess()) return false; if (hasVpcAccess()) { - if (!getVpcAccess() - .equals(other.getVpcAccess())) return false; + if (!getVpcAccess().equals(other.getVpcAccess())) return false; } - if (getMaxInstanceRequestConcurrency() - != other.getMaxInstanceRequestConcurrency()) return false; + if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency()) + return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; - } - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getContainersList() - .equals(other.getContainersList())) return false; - if (!getVolumesList() - .equals(other.getVolumesList())) return false; + if (!getTimeout().equals(other.getTimeout())) return false; + } + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getContainersList().equals(other.getContainersList())) return false; + if (!getVolumesList().equals(other.getVolumesList())) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; - if (getObservedGeneration() - != other.getObservedGeneration()) return false; - if (!getLogUri() - .equals(other.getLogUri())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getObservedGeneration() != other.getObservedGeneration()) return false; + if (!getLogUri().equals(other.getLogUri())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1537,8 +1679,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(); @@ -1596,15 +1737,13 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; hash = (53 * hash) + getEncryptionKey().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (37 * hash) + OBSERVED_GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getObservedGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration()); hash = (37 * hash) + LOG_URI_FIELD_NUMBER; hash = (53 * hash) + getLogUri().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; @@ -1614,97 +1753,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
@@ -1713,59 +1858,56 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1864,9 +2006,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
@@ -1974,38 +2116,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;
@@ -2025,10 +2168,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());
       }
@@ -2082,9 +2223,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_);
           }
@@ -2108,9 +2250,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_);
           }
@@ -2144,9 +2287,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_);
           }
@@ -2189,206 +2333,221 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                uid_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            case 24:
+              {
+                generation_ = input.readInt64();
+
+                break;
+              } // case 24
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 74
+            case 80:
+              {
+                launchStage_ = input.readEnum();
+
+                break;
+              } // case 80
+            case 90:
+              {
+                service_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(getScalingFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(getVpcAccessFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 106
+            case 122:
+              {
+                input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 122
+            case 130:
+              {
+                serviceAccount_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 130
+            case 138:
+              {
+                com.google.cloud.run.v2.Container m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.Container.parser(), extensionRegistry);
+                if (containersBuilder_ == null) {
+                  ensureContainersIsMutable();
+                  containers_.add(m);
+                } else {
+                  containersBuilder_.addMessage(m);
+                }
+                break;
+              } // case 138
+            case 146:
+              {
+                com.google.cloud.run.v2.Volume m =
+                    input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry);
+                if (volumesBuilder_ == null) {
+                  ensureVolumesIsMutable();
+                  volumes_.add(m);
+                } else {
+                  volumesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 146
+            case 160:
+              {
+                executionEnvironment_ = input.readEnum();
+
+                break;
+              } // case 160
+            case 170:
+              {
+                encryptionKey_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 170
+            case 240:
+              {
+                reconciling_ = input.readBool();
+
+                break;
+              } // case 240
+            case 250:
+              {
+                com.google.cloud.run.v2.Condition m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 250
+            case 256:
+              {
+                observedGeneration_ = input.readInt64();
+
+                break;
+              } // case 256
+            case 266:
+              {
+                logUri_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 266
+            case 272:
+              {
+                maxInstanceRequestConcurrency_ = input.readInt32();
+
+                break;
+              } // case 272
+            case 794:
+              {
+                etag_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 794
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+          } // switch (tag)
+        } // while (!done)
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.unwrapIOException();
+      } finally {
+        onChanged();
+      } // finally
+      return this;
+    }
 
-              break;
-            } // case 10
-            case 18: {
-              uid_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            case 24: {
-              generation_ = input.readInt64();
-
-              break;
-            } // case 24
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              break;
-            } // case 34
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getExpireTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 74
-            case 80: {
-              launchStage_ = input.readEnum();
-
-              break;
-            } // case 80
-            case 90: {
-              service_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getScalingFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getVpcAccessFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 106
-            case 122: {
-              input.readMessage(
-                  getTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 122
-            case 130: {
-              serviceAccount_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 130
-            case 138: {
-              com.google.cloud.run.v2.Container m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.Container.parser(),
-                      extensionRegistry);
-              if (containersBuilder_ == null) {
-                ensureContainersIsMutable();
-                containers_.add(m);
-              } else {
-                containersBuilder_.addMessage(m);
-              }
-              break;
-            } // case 138
-            case 146: {
-              com.google.cloud.run.v2.Volume m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.Volume.parser(),
-                      extensionRegistry);
-              if (volumesBuilder_ == null) {
-                ensureVolumesIsMutable();
-                volumes_.add(m);
-              } else {
-                volumesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 146
-            case 160: {
-              executionEnvironment_ = input.readEnum();
-
-              break;
-            } // case 160
-            case 170: {
-              encryptionKey_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 170
-            case 240: {
-              reconciling_ = input.readBool();
-
-              break;
-            } // case 240
-            case 250: {
-              com.google.cloud.run.v2.Condition m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.Condition.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 250
-            case 256: {
-              observedGeneration_ = input.readInt64();
-
-              break;
-            } // case 256
-            case 266: {
-              logUri_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 266
-            case 272: {
-              maxInstanceRequestConcurrency_ = input.readInt32();
-
-              break;
-            } // case 272
-            case 794: {
-              etag_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 794
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
-          } // switch (tag)
-        } // while (!done)
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.unwrapIOException();
-      } finally {
-        onChanged();
-      } // finally
-      return this;
-    }
-    private int bitField0_;
+    private 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; @@ -2397,20 +2556,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 { @@ -2418,54 +2578,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; @@ -2473,19 +2640,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; @@ -2494,21 +2663,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 { @@ -2516,70 +2686,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 @@ -2587,53 +2767,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(); @@ -2645,6 +2830,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
@@ -2659,22 +2846,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2690,11 +2877,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
@@ -2710,16 +2898,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2735,12 +2924,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2748,11 +2936,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
@@ -2767,23 +2956,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2798,19 +2985,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2825,30 +3013,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();
@@ -2860,28 +3047,30 @@ public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
+     *
+     *
      * 
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -2889,11 +3078,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.
      * 
@@ -2901,16 +3091,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -2918,12 +3109,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2931,102 +3121,118 @@ public java.lang.String getAnnotationsOrThrow( } public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3042,14 +3248,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(); @@ -3060,17 +3269,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; } @@ -3082,11 +3295,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) { @@ -3100,48 +3317,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_; @@ -3149,39 +3382,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) { @@ -3197,14 +3449,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(); @@ -3215,17 +3470,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; } @@ -3237,11 +3496,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) { @@ -3255,48 +3518,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_; @@ -3304,42 +3583,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) { @@ -3355,15 +3653,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(); @@ -3374,18 +3675,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; } @@ -3397,12 +3702,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) { @@ -3416,51 +3725,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_; @@ -3468,45 +3793,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) { @@ -3522,16 +3866,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(); @@ -3542,19 +3889,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; } @@ -3566,13 +3917,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) { @@ -3586,54 +3941,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_; @@ -3641,6 +4012,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
@@ -3649,12 +4022,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
@@ -3663,16 +4040,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
@@ -3681,6 +4061,7 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The launchStage. */ @java.lang.Override @@ -3690,6 +4071,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
@@ -3698,6 +4081,7 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 10; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -3705,12 +4089,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
@@ -3719,10 +4105,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; @@ -3730,18 +4117,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; @@ -3750,20 +4141,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 { @@ -3771,54 +4165,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; @@ -3826,34 +4233,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.
      * 
@@ -3874,14 +4294,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(); @@ -3892,6 +4313,8 @@ public Builder setScaling( return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -3902,7 +4325,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; } @@ -3914,6 +4339,8 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -3932,6 +4359,8 @@ public Builder clearScaling() { return this; } /** + * + * *
      * Scaling settings for this revision.
      * 
@@ -3939,11 +4368,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.
      * 
@@ -3954,11 +4385,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.
      * 
@@ -3966,14 +4400,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_; @@ -3981,36 +4418,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.
@@ -4032,6 +4482,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.
@@ -4039,8 +4491,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();
@@ -4051,6 +4502,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.
@@ -4062,7 +4515,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;
         }
@@ -4074,6 +4529,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.
@@ -4093,6 +4550,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.
@@ -4101,11 +4560,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.
@@ -4117,11 +4578,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.
@@ -4130,26 +4594,32 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> 
+            com.google.cloud.run.v2.VpcAccess,
+            com.google.cloud.run.v2.VpcAccess.Builder,
+            com.google.cloud.run.v2.VpcAccessOrBuilder>
         getVpcAccessFieldBuilder() {
       if (vpcAccessBuilder_ == null) {
-        vpcAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder>(
-                getVpcAccess(),
-                getParentForChildren(),
-                isClean());
+        vpcAccessBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.VpcAccess,
+                com.google.cloud.run.v2.VpcAccess.Builder,
+                com.google.cloud.run.v2.VpcAccessOrBuilder>(
+                getVpcAccess(), getParentForChildren(), isClean());
         vpcAccess_ = null;
       }
       return vpcAccessBuilder_;
     }
 
-    private int maxInstanceRequestConcurrency_ ;
+    private int maxInstanceRequestConcurrency_;
     /**
+     *
+     *
      * 
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; + * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -4157,30 +4627,36 @@ public int getMaxInstanceRequestConcurrency() { return maxInstanceRequestConcurrency_; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; + * * @param value The maxInstanceRequestConcurrency to set. * @return This builder for chaining. */ public Builder setMaxInstanceRequestConcurrency(int value) { - + maxInstanceRequestConcurrency_ = value; onChanged(); return this; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 34; + * * @return This builder for chaining. */ public Builder clearMaxInstanceRequestConcurrency() { - + maxInstanceRequestConcurrency_ = 0; onChanged(); return this; @@ -4188,24 +4664,33 @@ public Builder clearMaxInstanceRequestConcurrency() { private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeoutBuilder_; /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 15; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 15; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -4216,6 +4701,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4236,14 +4723,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(); @@ -4254,6 +4742,8 @@ public Builder setTimeout( return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4264,7 +4754,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; } @@ -4276,6 +4766,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4294,6 +4786,8 @@ public Builder clearTimeout() { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -4301,11 +4795,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.
      * 
@@ -4316,11 +4812,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.
      * 
@@ -4328,14 +4825,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_; @@ -4343,6 +4843,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
@@ -4350,13 +4852,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; @@ -4365,6 +4867,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
@@ -4372,15 +4876,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 { @@ -4388,6 +4891,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
@@ -4395,20 +4900,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
@@ -4416,15 +4923,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
@@ -4432,34 +4942,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.
@@ -4475,6 +4991,8 @@ public java.util.List getContainersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4490,6 +5008,8 @@ public int getContainersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4505,6 +5025,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4512,8 +5034,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();
@@ -4527,6 +5048,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4546,6 +5069,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4567,6 +5092,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.
@@ -4574,8 +5101,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();
@@ -4589,6 +5115,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4596,8 +5124,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());
@@ -4608,6 +5135,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4627,6 +5156,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4638,8 +5169,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);
@@ -4647,6 +5177,8 @@ public Builder addAllContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4665,6 +5197,8 @@ public Builder clearContainers() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4683,6 +5217,8 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4690,11 +5226,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.
@@ -4702,14 +5239,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.
@@ -4717,8 +5256,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 {
@@ -4726,6 +5265,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -4734,10 +5275,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.
@@ -4745,12 +5288,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.
@@ -4758,38 +5302,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.
      * 
@@ -4804,6 +5356,8 @@ public java.util.List getVolumesList() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4818,6 +5372,8 @@ public int getVolumesCount() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4832,14 +5388,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(); @@ -4853,14 +5410,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()); @@ -4871,6 +5429,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4891,14 +5451,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(); @@ -4912,14 +5473,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()); @@ -4930,14 +5492,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()); @@ -4948,6 +5511,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4958,8 +5523,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); @@ -4967,6 +5531,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4984,6 +5550,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5001,39 +5569,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 { @@ -5041,6 +5614,8 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -5048,42 +5623,47 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( * repeated .google.cloud.run.v2.Volume volumes = 18; */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder().addBuilder( - com.google.cloud.run.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder() + .addBuilder(com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( - int index) { - return getVolumesFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Volume.getDefaultInstance()); + public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { + return getVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - public java.util.List - getVolumesBuilderList() { + public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> + com.google.cloud.run.v2.Volume, + com.google.cloud.run.v2.Volume.Builder, + com.google.cloud.run.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder>( - volumes_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + volumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Volume, + com.google.cloud.run.v2.Volume.Builder, + com.google.cloud.run.v2.VolumeOrBuilder>( + volumes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; @@ -5091,51 +5671,65 @@ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( private int executionEnvironment_ = 0; /** + * + * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override public int getExecutionEnvironmentValue() { + @java.lang.Override + public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** + * + * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @param value The enum numeric value on the wire for executionEnvironment to set. * @return This builder for chaining. */ public Builder setExecutionEnvironmentValue(int value) { - + executionEnvironment_ = value; onChanged(); return this; } /** + * + * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The executionEnvironment. */ @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = + com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } /** + * + * *
      * The execution environment being used to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @param value The executionEnvironment to set. * @return This builder for chaining. */ @@ -5143,21 +5737,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; @@ -5165,6 +5762,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
@@ -5172,13 +5771,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; @@ -5187,6 +5786,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
@@ -5194,15 +5795,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 { @@ -5210,6 +5810,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
@@ -5217,20 +5819,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
@@ -5238,15 +5842,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
@@ -5254,23 +5861,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
@@ -5278,6 +5887,7 @@ public Builder setEncryptionKeyBytes(
      * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -5285,6 +5895,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
@@ -5292,16 +5904,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
@@ -5309,34 +5924,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) { @@ -5346,12 +5970,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) { @@ -5361,12 +5989,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) { @@ -5376,15 +6008,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(); @@ -5398,12 +6033,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) { @@ -5417,12 +6056,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) { @@ -5438,15 +6081,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(); @@ -5460,15 +6106,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()); @@ -5479,12 +6128,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) { @@ -5498,19 +6151,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); @@ -5518,12 +6174,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) { @@ -5536,12 +6196,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) { @@ -5554,42 +6218,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 { @@ -5597,59 +6272,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
@@ -5657,6 +6347,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 @@ -5664,6 +6355,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
@@ -5671,16 +6364,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
@@ -5688,10 +6384,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; @@ -5699,18 +6396,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; @@ -5719,20 +6418,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 { @@ -5740,54 +6440,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; @@ -5795,19 +6502,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; @@ -5816,21 +6525,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 { @@ -5838,64 +6548,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); } @@ -5905,12 +6622,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(); } @@ -5919,27 +6636,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5954,6 +6671,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Revision getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java similarity index 81% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java index 946412fb15f0..1ebeb9a331ec 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java @@ -1,66 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/revision.proto package com.google.cloud.run.v2; -public interface RevisionOrBuilder extends +public interface RevisionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Revision) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The unique name of this Revision.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server assigned unique identifier for the Revision. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
    * 
* * int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ long getGeneration(); /** + * + * *
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -77,6 +108,8 @@ public interface RevisionOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -91,15 +124,13 @@ public interface RevisionOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -114,9 +145,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -133,11 +165,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -152,11 +186,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource.
    * 
@@ -165,30 +199,31 @@ java.lang.String getLabelsOrThrow( */ int getAnnotationsCount(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -197,139 +232,185 @@ boolean containsAnnotations( */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted. It is only populated as a response to a Delete
    * request.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -338,10 +419,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** + * + * *
    * Set the launch stage to a preview stage on write to allow use of preview
    * features in that stage. On read, describes whether the resource uses
@@ -350,49 +434,67 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 10; + * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); /** + * + * *
    * Output only. The name of the parent service.
    * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ java.lang.String getService(); /** + * + * *
    * Output only. The name of the parent service.
    * 
* - * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); /** + * + * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; + * * @return Whether the scaling field is set. */ boolean hasScaling(); /** + * + * *
    * Scaling settings for this revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 12; + * * @return The scaling. */ com.google.cloud.run.v2.RevisionScaling getScaling(); /** + * + * *
    * Scaling settings for this revision.
    * 
@@ -402,26 +504,34 @@ java.lang.String getAnnotationsOrThrow( com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder(); /** + * + * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; + * * @return Whether the vpcAccess field is set. */ boolean hasVpcAccess(); /** + * + * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 13; + * * @return The vpcAccess. */ com.google.cloud.run.v2.VpcAccess getVpcAccess(); /** + * + * *
    * VPC Access configuration for this Revision. For more information, visit
    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -432,34 +542,45 @@ java.lang.String getAnnotationsOrThrow(
   com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder();
 
   /**
+   *
+   *
    * 
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 34; + * * @return The maxInstanceRequestConcurrency. */ int getMaxInstanceRequestConcurrency(); /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 15; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -469,6 +590,8 @@ java.lang.String getAnnotationsOrThrow( com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -476,10 +599,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string service_account = 16; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -487,12 +613,14 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string service_account = 16; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -500,9 +628,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  java.util.List 
-      getContainersList();
+  java.util.List getContainersList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -512,6 +641,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -521,6 +652,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getContainersCount();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -528,9 +661,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  java.util.List 
-      getContainersOrBuilderList();
+  java.util.List getContainersOrBuilderList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -538,19 +672,21 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 17;
    */
-  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
-      int index);
+  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - java.util.List - getVolumesList(); + java.util.List getVolumesList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -559,6 +695,8 @@ com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( */ com.google.cloud.run.v2.Volume getVolumes(int index); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -567,44 +705,54 @@ com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( */ int getVolumesCount(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - java.util.List - getVolumesOrBuilderList(); + java.util.List getVolumesOrBuilderList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 18; */ - com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index); + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); /** + * + * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The enum numeric value on the wire for executionEnvironment. */ int getExecutionEnvironmentValue(); /** + * + * *
    * The execution environment being used to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The executionEnvironment. */ com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment(); /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -612,10 +760,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ java.lang.String getEncryptionKey(); /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -623,12 +774,14 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 21 [(.google.api.resource_reference) = { ... } + * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString - getEncryptionKeyBytes(); + com.google.protobuf.ByteString getEncryptionKeyBytes(); /** + * + * *
    * Output only. Indicates whether the resource's reconciliation is still in progress.
    * See comments in `Service.reconciling` for additional information on
@@ -636,60 +789,80 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.Condition getConditions(int index); /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. The Condition of this Revision, containing its readiness status, and
    * detailed error information in case it did not reach a serving state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( - int index); + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index); /** + * + * *
    * Output only. The generation of this Revision currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -697,49 +870,60 @@ com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(
    * 
* * int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ long getObservedGeneration(); /** + * + * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The logUri. */ java.lang.String getLogUri(); /** + * + * *
    * Output only. The Google Console URI to obtain logs for the Revision.
    * 
* * string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for logUri. */ - com.google.protobuf.ByteString - getLogUriBytes(); + com.google.protobuf.ByteString getLogUriBytes(); /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java new file mode 100644 index 000000000000..9e62e90a7b21 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java @@ -0,0 +1,271 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/revision.proto + +package com.google.cloud.run.v2; + +public final class RevisionProto { + private RevisionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\"google/cloud/run/v2/revision.proto\022\023go" + + "ogle.cloud.run.v2\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\035google/api/la" + + "unch_stage.proto\032\031google/api/resource.pr" + + "oto\032\030google/api/routing.proto\032#google/cl" + + "oud/run/v2/condition.proto\032!google/cloud" + + "/run/v2/k8s.min.proto\032)google/cloud/run/" + + "v2/vendor_settings.proto\032#google/longrun" + + "ning/operations.proto\032\036google/protobuf/d" + + "uration.proto\032\037google/protobuf/timestamp" + + ".proto\"G\n\022GetRevisionRequest\0221\n\004name\030\001 \001" + + "(\tB#\340A\002\372A\035\n\033run.googleapis.com/Revision\"" + + "\210\001\n\024ListRevisionsRequest\0223\n\006parent\030\001 \001(\t" + + "B#\340A\002\372A\035\022\033run.googleapis.com/Revision\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" + + "show_deleted\030\004 \001(\010\"b\n\025ListRevisionsRespo" + + "nse\0220\n\trevisions\030\001 \003(\0132\035.google.cloud.ru" + + "n.v2.Revision\022\027\n\017next_page_token\030\002 \001(\t\"o" + + "\n\025DeleteRevisionRequest\0221\n\004name\030\001 \001(\tB#\340" + + "A\002\372A\035\n\033run.googleapis.com/Revision\022\025\n\rva" + + "lidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\301\n\n\010Revi" + + "sion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A" + + "\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0229\n\006labels\030\004 \003" + + "(\0132).google.cloud.run.v2.Revision.Labels" + + "Entry\022C\n\013annotations\030\005 \003(\0132..google.clou" + + "d.run.v2.Revision.AnnotationsEntry\0224\n\013cr" + + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "expire_time\030\t \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022-\n\014launch_stage\030\n \001(\0162\027.googl" + + "e.api.LaunchStage\0223\n\007service\030\013 \001(\tB\"\340A\003\372" + + "A\034\n\032run.googleapis.com/Service\0225\n\007scalin" + + "g\030\014 \001(\0132$.google.cloud.run.v2.RevisionSc" + + "aling\0222\n\nvpc_access\030\r \001(\0132\036.google.cloud" + + ".run.v2.VpcAccess\022(\n max_instance_reques" + + "t_concurrency\030\" \001(\005\022*\n\007timeout\030\017 \001(\0132\031.g" + + "oogle.protobuf.Duration\022\027\n\017service_accou" + + "nt\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google.cl" + + "oud.run.v2.Container\022,\n\007volumes\030\022 \003(\0132\033." + + "google.cloud.run.v2.Volume\022H\n\025execution_" + + "environment\030\024 \001(\0162).google.cloud.run.v2." + + "ExecutionEnvironment\022>\n\016encryption_key\030\025" + + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" + + "oKey\022\030\n\013reconciling\030\036 \001(\010B\003\340A\003\0227\n\ncondit" + + "ions\030\037 \003(\0132\036.google.cloud.run.v2.Conditi" + + "onB\003\340A\003\022 \n\023observed_generation\030 \001(\003B\003\340A" + + "\003\022\024\n\007log_uri\030! \001(\tB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340" + + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n\033run.googleap" + + "is.com/Revision\022Oprojects/{project}/loca" + + "tions/{location}/services/{service}/revi" + + "sions/{revision}R\001\0012\205\006\n\tRevisions\022\322\001\n\013Ge" + + "tRevision\022\'.google.cloud.run.v2.GetRevis" + + "ionRequest\032\035.google.cloud.run.v2.Revisio" + + "n\"{\202\323\344\223\002:\0228/v2/{name=projects/*/location" + + "s/*/services/*/revisions/*}\212\323\344\223\002.\022,\n\004nam" + + "e\022$projects/*/locations/{location=*}/**\332" + + "A\004name\022\347\001\n\rListRevisions\022).google.cloud." + + "run.v2.ListRevisionsRequest\032*.google.clo" + + "ud.run.v2.ListRevisionsResponse\"\177\202\323\344\223\002:\022" + + "8/v2/{parent=projects/*/locations/*/serv" + + "ices/*}/revisions\212\323\344\223\0020\022.\n\006parent\022$proje" + + "cts/*/locations/{location=*}/**\332A\006parent" + + "\022\360\001\n\016DeleteRevision\022*.google.cloud.run.v" + + "2.DeleteRevisionRequest\032\035.google.longrun" + + "ning.Operation\"\222\001\202\323\344\223\002:*8/v2/{name=proje" + + "cts/*/locations/*/services/*/revisions/*" + + "}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{l" + + "ocation=*}/**\332A\004name\312A\024\n\010Revision\022\010Revis" + + "ion\032F\312A\022run.googleapis.com\322A.https://www" + + ".googleapis.com/auth/cloud-platformBb\n\027c" + + "om.google.cloud.run.v2B\rRevisionProtoP\001Z" + + "6google.golang.org/genproto/googleapis/c" + + "loud/run/v2;runb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.cloud.run.v2.ConditionProto.getDescriptor(), + com.google.cloud.run.v2.K8sMinProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor, + new java.lang.String[] { + "Revisions", "NextPageToken", + }); + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_run_v2_Revision_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_Revision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "Generation", + "Labels", + "Annotations", + "CreateTime", + "UpdateTime", + "DeleteTime", + "ExpireTime", + "LaunchStage", + "Service", + "Scaling", + "VpcAccess", + "MaxInstanceRequestConcurrency", + "Timeout", + "ServiceAccount", + "Containers", + "Volumes", + "ExecutionEnvironment", + "EncryptionKey", + "Reconciling", + "Conditions", + "ObservedGeneration", + "LogUri", + "Etag", + }); + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.LaunchStageProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.K8sMinProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java similarity index 66% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java index 48a7962b0ebf..dff47a57d3f3 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScaling.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/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; } - 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 @@ -65,11 +86,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 @@ -78,6 +102,7 @@ public int getMaxInstanceCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -89,8 +114,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_); } @@ -107,12 +131,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -122,17 +144,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -153,130 +173,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -288,9 +314,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 @@ -309,7 +335,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(); @@ -320,38 +347,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; @@ -392,22 +420,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - minInstanceCount_ = input.readInt32(); - - break; - } // case 8 - case 16: { - maxInstanceCount_ = input.readInt32(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + minInstanceCount_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + maxInstanceCount_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,13 +449,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 @@ -432,42 +466,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 @@ -475,37 +518,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); } @@ -515,12 +564,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(); } @@ -529,27 +578,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -564,6 +613,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.RevisionScaling getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java similarity index 51% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java index caca17cac017..90a7a2039e0b 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionScalingOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java similarity index 72% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java index 314429ba7ae2..cb4649bac6e6 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java +++ b/java-run/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,52 +49,55 @@ 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;
   }
-  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 @@ -85,30 +106,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 { @@ -117,24 +138,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_; } @@ -143,28 +163,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -172,11 +194,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.
    * 
@@ -184,16 +207,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -201,12 +224,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -214,24 +236,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_; } @@ -240,28 +262,30 @@ public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -269,11 +293,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.
    * 
@@ -281,16 +306,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 3; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -298,12 +324,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 3; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -313,11 +338,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 @@ -325,18 +353,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.
    * 
@@ -351,12 +386,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 @@ -364,12 +402,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 @@ -377,6 +418,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.
@@ -392,11 +435,14 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   public static final int TIMEOUT_FIELD_NUMBER = 8;
   private com.google.protobuf.Duration timeout_;
   /**
+   *
+   *
    * 
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -404,11 +450,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 @@ -416,6 +465,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.
    * 
@@ -430,6 +481,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
@@ -438,6 +491,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 9; + * * @return The serviceAccount. */ @java.lang.Override @@ -446,14 +500,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
@@ -462,16 +517,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 { @@ -482,6 +536,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.
@@ -494,6 +550,8 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -502,11 +560,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.
@@ -519,6 +579,8 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -531,6 +593,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.
@@ -539,14 +603,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.
    * 
@@ -558,6 +623,8 @@ public java.util.List getVolumesList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -565,11 +632,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.
    * 
@@ -581,6 +650,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -592,6 +663,8 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -599,41 +672,51 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * repeated .google.cloud.run.v2.Volume volumes = 11; */ @java.lang.Override - public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index) { + public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { return volumes_.get(index); } public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 13; private int executionEnvironment_; /** + * + * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override public int getExecutionEnvironmentValue() { + @java.lang.Override + public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** + * + * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The executionEnvironment. */ - @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { + @java.lang.Override + public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = + com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 14; private volatile java.lang.Object encryptionKey_; /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -641,6 +724,7 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ @java.lang.Override @@ -649,14 +733,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
@@ -664,16 +749,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 { @@ -684,11 +768,14 @@ public java.lang.String getEncryptionKey() { public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER = 15; private int maxInstanceRequestConcurrency_; /** + * + * *
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 15; + * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -697,6 +784,7 @@ public int getMaxInstanceRequestConcurrency() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -708,23 +796,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()); } @@ -743,7 +822,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(11, volumes_.get(i)); } - if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (executionEnvironment_ + != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(13, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { @@ -764,59 +845,56 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, revision_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, labels__); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, annotations__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, annotations__); } if (scaling_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getScaling()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getScaling()); } if (vpcAccess_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getVpcAccess()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVpcAccess()); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); } for (int i = 0; i < containers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, containers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, containers_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, volumes_.get(i)); } - if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, executionEnvironment_); + if (executionEnvironment_ + != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, executionEnvironment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, encryptionKey_); } if (maxInstanceRequestConcurrency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(15, maxInstanceRequestConcurrency_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 15, maxInstanceRequestConcurrency_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -826,45 +904,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.RevisionTemplate)) { return super.equals(obj); } com.google.cloud.run.v2.RevisionTemplate other = (com.google.cloud.run.v2.RevisionTemplate) obj; - if (!getRevision() - .equals(other.getRevision())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; + if (!getRevision().equals(other.getRevision())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (hasScaling() != other.hasScaling()) return false; if (hasScaling()) { - if (!getScaling() - .equals(other.getScaling())) return false; + if (!getScaling().equals(other.getScaling())) return false; } if (hasVpcAccess() != other.hasVpcAccess()) return false; if (hasVpcAccess()) { - if (!getVpcAccess() - .equals(other.getVpcAccess())) return false; + if (!getVpcAccess().equals(other.getVpcAccess())) return false; } if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; - } - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getContainersList() - .equals(other.getContainersList())) return false; - if (!getVolumesList() - .equals(other.getVolumesList())) return false; + if (!getTimeout().equals(other.getTimeout())) return false; + } + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getContainersList().equals(other.getContainersList())) return false; + if (!getVolumesList().equals(other.getVolumesList())) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; - if (getMaxInstanceRequestConcurrency() - != other.getMaxInstanceRequestConcurrency()) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency()) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -919,97 +987,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.
@@ -1017,59 +1092,56 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1121,9 +1193,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
@@ -1142,7 +1214,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();
@@ -1194,38 +1267,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;
@@ -1238,10 +1312,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());
       }
@@ -1273,9 +1345,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_);
           }
@@ -1299,9 +1372,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_);
           }
@@ -1343,100 +1417,108 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              revision_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              break;
-            } // case 18
-            case 26: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getScalingFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 34
-            case 50: {
-              input.readMessage(
-                  getVpcAccessFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 50
-            case 66: {
-              input.readMessage(
-                  getTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 66
-            case 74: {
-              serviceAccount_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 74
-            case 82: {
-              com.google.cloud.run.v2.Container m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.Container.parser(),
-                      extensionRegistry);
-              if (containersBuilder_ == null) {
-                ensureContainersIsMutable();
-                containers_.add(m);
-              } else {
-                containersBuilder_.addMessage(m);
-              }
-              break;
-            } // case 82
-            case 90: {
-              com.google.cloud.run.v2.Volume m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.Volume.parser(),
-                      extensionRegistry);
-              if (volumesBuilder_ == null) {
-                ensureVolumesIsMutable();
-                volumes_.add(m);
-              } else {
-                volumesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 90
-            case 104: {
-              executionEnvironment_ = input.readEnum();
-
-              break;
-            } // case 104
-            case 114: {
-              encryptionKey_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 114
-            case 120: {
-              maxInstanceRequestConcurrency_ = input.readInt32();
-
-              break;
-            } // case 120
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                revision_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getScalingFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 34
+            case 50:
+              {
+                input.readMessage(getVpcAccessFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 50
+            case 66:
+              {
+                input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 66
+            case 74:
+              {
+                serviceAccount_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 74
+            case 82:
+              {
+                com.google.cloud.run.v2.Container m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.Container.parser(), extensionRegistry);
+                if (containersBuilder_ == null) {
+                  ensureContainersIsMutable();
+                  containers_.add(m);
+                } else {
+                  containersBuilder_.addMessage(m);
+                }
+                break;
+              } // case 82
+            case 90:
+              {
+                com.google.cloud.run.v2.Volume m =
+                    input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry);
+                if (volumesBuilder_ == null) {
+                  ensureVolumesIsMutable();
+                  volumes_.add(m);
+                } else {
+                  volumesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 90
+            case 104:
+              {
+                executionEnvironment_ = input.readEnum();
+
+                break;
+              } // case 104
+            case 114:
+              {
+                encryptionKey_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 114
+            case 120:
+              {
+                maxInstanceRequestConcurrency_ = input.readInt32();
+
+                break;
+              } // case 120
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1446,23 +1528,26 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1471,21 +1556,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 { @@ -1493,78 +1579,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(); @@ -1576,28 +1668,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * KRM-style labels for the resource.
      * 
@@ -1605,11 +1699,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.
      * 
@@ -1617,16 +1712,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style labels for the resource.
      * 
@@ -1634,12 +1730,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1647,83 +1742,82 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * KRM-style labels for the resource.
      * 
* * map<string, string> labels = 2; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged();; + internalGetMutableAnnotations() { + onChanged(); + ; if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -1735,28 +1829,30 @@ public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -1764,11 +1860,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.
      * 
@@ -1776,16 +1873,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 3; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -1793,12 +1891,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 3; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1806,97 +1903,107 @@ public java.lang.String getAnnotationsOrThrow( } public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 3; */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); return this; } private com.google.cloud.run.v2.RevisionScaling scaling_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.RevisionScaling, com.google.cloud.run.v2.RevisionScaling.Builder, com.google.cloud.run.v2.RevisionScalingOrBuilder> scalingBuilder_; + com.google.cloud.run.v2.RevisionScaling, + com.google.cloud.run.v2.RevisionScaling.Builder, + com.google.cloud.run.v2.RevisionScalingOrBuilder> + scalingBuilder_; /** + * + * *
      * Scaling settings for this Revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; + * * @return Whether the scaling field is set. */ public boolean hasScaling() { return scalingBuilder_ != null || scaling_ != null; } /** + * + * *
      * Scaling settings for this Revision.
      * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; + * * @return The scaling. */ public com.google.cloud.run.v2.RevisionScaling getScaling() { if (scalingBuilder_ == null) { - return scaling_ == null ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() : scaling_; + return scaling_ == null + ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance() + : scaling_; } else { return scalingBuilder_.getMessage(); } } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -1917,14 +2024,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(); @@ -1935,6 +2043,8 @@ public Builder setScaling( return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -1945,7 +2055,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; } @@ -1957,6 +2069,8 @@ public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) { return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -1975,6 +2089,8 @@ public Builder clearScaling() { return this; } /** + * + * *
      * Scaling settings for this Revision.
      * 
@@ -1982,11 +2098,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.
      * 
@@ -1997,11 +2115,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.
      * 
@@ -2009,14 +2130,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_; @@ -2024,36 +2148,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.
@@ -2075,6 +2212,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.
@@ -2082,8 +2221,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();
@@ -2094,6 +2232,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.
@@ -2105,7 +2245,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;
         }
@@ -2117,6 +2259,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.
@@ -2136,6 +2280,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.
@@ -2144,11 +2290,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.
@@ -2160,11 +2308,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.
@@ -2173,14 +2324,17 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder> 
+            com.google.cloud.run.v2.VpcAccess,
+            com.google.cloud.run.v2.VpcAccess.Builder,
+            com.google.cloud.run.v2.VpcAccessOrBuilder>
         getVpcAccessFieldBuilder() {
       if (vpcAccessBuilder_ == null) {
-        vpcAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.run.v2.VpcAccess, com.google.cloud.run.v2.VpcAccess.Builder, com.google.cloud.run.v2.VpcAccessOrBuilder>(
-                getVpcAccess(),
-                getParentForChildren(),
-                isClean());
+        vpcAccessBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.run.v2.VpcAccess,
+                com.google.cloud.run.v2.VpcAccess.Builder,
+                com.google.cloud.run.v2.VpcAccessOrBuilder>(
+                getVpcAccess(), getParentForChildren(), isClean());
         vpcAccess_ = null;
       }
       return vpcAccessBuilder_;
@@ -2188,24 +2342,33 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
 
     private com.google.protobuf.Duration timeout_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        timeoutBuilder_;
     /**
+     *
+     *
      * 
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 8; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
* * .google.protobuf.Duration timeout = 8; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -2216,6 +2379,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2236,14 +2401,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(); @@ -2254,6 +2420,8 @@ public Builder setTimeout( return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2264,7 +2432,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; } @@ -2276,6 +2444,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2294,6 +2464,8 @@ public Builder clearTimeout() { return this; } /** + * + * *
      * Max allowed time for an instance to respond to a request.
      * 
@@ -2301,11 +2473,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.
      * 
@@ -2316,11 +2490,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.
      * 
@@ -2328,14 +2503,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_; @@ -2343,6 +2521,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
@@ -2351,13 +2531,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; @@ -2366,6 +2546,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
@@ -2374,15 +2556,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 { @@ -2390,6 +2571,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
@@ -2398,20 +2581,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
@@ -2420,15 +2605,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
@@ -2437,34 +2625,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.
@@ -2480,6 +2674,8 @@ public java.util.List getContainersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2495,6 +2691,8 @@ public int getContainersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2510,6 +2708,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2517,8 +2717,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();
@@ -2532,6 +2731,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2551,6 +2752,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2572,6 +2775,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.
@@ -2579,8 +2784,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();
@@ -2594,6 +2798,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2601,8 +2807,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());
@@ -2613,6 +2818,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2632,6 +2839,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2643,8 +2852,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);
@@ -2652,6 +2860,8 @@ public Builder addAllContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2670,6 +2880,8 @@ public Builder clearContainers() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2688,6 +2900,8 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2695,11 +2909,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.
@@ -2707,14 +2922,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.
@@ -2722,8 +2939,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 {
@@ -2731,6 +2948,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * Revision.
@@ -2739,10 +2958,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.
@@ -2750,12 +2971,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.
@@ -2763,38 +2985,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.
      * 
@@ -2809,6 +3039,8 @@ public java.util.List getVolumesList() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2823,6 +3055,8 @@ public int getVolumesCount() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2837,14 +3071,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(); @@ -2858,14 +3093,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()); @@ -2876,6 +3112,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2896,14 +3134,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(); @@ -2917,14 +3156,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()); @@ -2935,14 +3175,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()); @@ -2953,6 +3194,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2963,8 +3206,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); @@ -2972,6 +3214,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -2989,6 +3233,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3006,39 +3252,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 { @@ -3046,6 +3297,8 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -3053,42 +3306,47 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( * repeated .google.cloud.run.v2.Volume volumes = 11; */ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() { - return getVolumesFieldBuilder().addBuilder( - com.google.cloud.run.v2.Volume.getDefaultInstance()); + return getVolumesFieldBuilder() + .addBuilder(com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( - int index) { - return getVolumesFieldBuilder().addBuilder( - index, com.google.cloud.run.v2.Volume.getDefaultInstance()); + public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) { + return getVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.run.v2.Volume.getDefaultInstance()); } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - public java.util.List - getVolumesBuilderList() { + public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder> + com.google.cloud.run.v2.Volume, + com.google.cloud.run.v2.Volume.Builder, + com.google.cloud.run.v2.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { - volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.run.v2.Volume, com.google.cloud.run.v2.Volume.Builder, com.google.cloud.run.v2.VolumeOrBuilder>( - volumes_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + volumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.run.v2.Volume, + com.google.cloud.run.v2.Volume.Builder, + com.google.cloud.run.v2.VolumeOrBuilder>( + volumes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; @@ -3096,51 +3354,65 @@ public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder( private int executionEnvironment_ = 0; /** + * + * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The enum numeric value on the wire for executionEnvironment. */ - @java.lang.Override public int getExecutionEnvironmentValue() { + @java.lang.Override + public int getExecutionEnvironmentValue() { return executionEnvironment_; } /** + * + * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @param value The enum numeric value on the wire for executionEnvironment to set. * @return This builder for chaining. */ public Builder setExecutionEnvironmentValue(int value) { - + executionEnvironment_ = value; onChanged(); return this; } /** + * + * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The executionEnvironment. */ @java.lang.Override public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.run.v2.ExecutionEnvironment result = com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); + com.google.cloud.run.v2.ExecutionEnvironment result = + com.google.cloud.run.v2.ExecutionEnvironment.valueOf(executionEnvironment_); return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result; } /** + * + * *
      * The sandbox environment to host this Revision.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @param value The executionEnvironment to set. * @return This builder for chaining. */ @@ -3148,21 +3420,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; @@ -3170,6 +3445,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
@@ -3177,13 +3454,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; @@ -3192,6 +3469,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
@@ -3199,15 +3478,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 { @@ -3215,6 +3493,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
@@ -3222,20 +3502,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
@@ -3243,15 +3525,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
@@ -3259,28 +3544,31 @@ public Builder clearEncryptionKey() {
      * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for encryptionKey to set. * @return This builder for chaining. */ - public Builder setEncryptionKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encryptionKey_ = value; onChanged(); return this; } - private int maxInstanceRequestConcurrency_ ; + private int maxInstanceRequestConcurrency_; /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; + * * @return The maxInstanceRequestConcurrency. */ @java.lang.Override @@ -3288,37 +3576,43 @@ public int getMaxInstanceRequestConcurrency() { return maxInstanceRequestConcurrency_; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; + * * @param value The maxInstanceRequestConcurrency to set. * @return This builder for chaining. */ public Builder setMaxInstanceRequestConcurrency(int value) { - + maxInstanceRequestConcurrency_ = value; onChanged(); return this; } /** + * + * *
      * Sets the maximum number of requests that each serving instance can receive.
      * 
* * int32 max_instance_request_concurrency = 15; + * * @return This builder for chaining. */ public Builder clearMaxInstanceRequestConcurrency() { - + maxInstanceRequestConcurrency_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3328,12 +3622,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(); } @@ -3342,27 +3636,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3377,6 +3671,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.RevisionTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java similarity index 80% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java index ababa87c2725..15f01a284848 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/revision_template.proto package com.google.cloud.run.v2; -public interface RevisionTemplateOrBuilder extends +public interface RevisionTemplateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.RevisionTemplate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @return The revision. */ java.lang.String getRevision(); /** + * + * *
    * The unique name for the revision. If this field is omitted, it will be
    * automatically generated based on the Service name.
    * 
* * string revision = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for revision. */ - com.google.protobuf.ByteString - getRevisionBytes(); + com.google.protobuf.ByteString getRevisionBytes(); /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -38,30 +61,31 @@ public interface RevisionTemplateOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * KRM-style labels for the resource.
    * 
@@ -70,22 +94,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * KRM-style labels for the resource.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -94,30 +120,31 @@ java.lang.String getLabelsOrThrow( */ int getAnnotationsCount(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -126,40 +153,48 @@ boolean containsAnnotations( */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 3; */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; + * * @return Whether the scaling field is set. */ boolean hasScaling(); /** + * + * *
    * Scaling settings for this Revision.
    * 
* * .google.cloud.run.v2.RevisionScaling scaling = 4; + * * @return The scaling. */ com.google.cloud.run.v2.RevisionScaling getScaling(); /** + * + * *
    * Scaling settings for this Revision.
    * 
@@ -169,26 +204,34 @@ java.lang.String getAnnotationsOrThrow( com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder(); /** + * + * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * * @return Whether the vpcAccess field is set. */ boolean hasVpcAccess(); /** + * + * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 6; + * * @return The vpcAccess. */ com.google.cloud.run.v2.VpcAccess getVpcAccess(); /** + * + * *
    * VPC Access configuration to use for this Revision. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -199,24 +242,32 @@ java.lang.String getAnnotationsOrThrow(
   com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder();
 
   /**
+   *
+   *
    * 
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
* * .google.protobuf.Duration timeout = 8; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
    * Max allowed time for an instance to respond to a request.
    * 
@@ -226,6 +277,8 @@ java.lang.String getAnnotationsOrThrow( com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -234,10 +287,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string service_account = 9; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Email address of the IAM service account associated with the revision of
    * the service. The service account represents the identity of the running
@@ -246,12 +302,14 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string service_account = 9; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -259,9 +317,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  java.util.List 
-      getContainersList();
+  java.util.List getContainersList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -271,6 +330,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -280,6 +341,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getContainersCount();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -287,9 +350,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  java.util.List 
-      getContainersOrBuilderList();
+  java.util.List getContainersOrBuilderList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * Revision.
@@ -297,19 +361,21 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 10;
    */
-  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
-      int index);
+  com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - java.util.List - getVolumesList(); + java.util.List getVolumesList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -318,6 +384,8 @@ com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( */ com.google.cloud.run.v2.Volume getVolumes(int index); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -326,44 +394,54 @@ com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( */ int getVolumesCount(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - java.util.List - getVolumesOrBuilderList(); + java.util.List getVolumesOrBuilderList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 11; */ - com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index); + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); /** + * + * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The enum numeric value on the wire for executionEnvironment. */ int getExecutionEnvironmentValue(); /** + * + * *
    * The sandbox environment to host this Revision.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 13; + * * @return The executionEnvironment. */ com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment(); /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -371,10 +449,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ java.lang.String getEncryptionKey(); /** + * + * *
    * A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
@@ -382,17 +463,20 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 14 [(.google.api.resource_reference) = { ... } + * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString - getEncryptionKeyBytes(); + com.google.protobuf.ByteString getEncryptionKeyBytes(); /** + * + * *
    * Sets the maximum number of requests that each serving instance can receive.
    * 
* * int32 max_instance_request_concurrency = 15; + * * @return The maxInstanceRequestConcurrency. */ int getMaxInstanceRequestConcurrency(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java new file mode 100644 index 000000000000..b25c31923964 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java @@ -0,0 +1,136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/revision_template.proto + +package com.google.cloud.run.v2; + +public final class RevisionTemplateProto { + private RevisionTemplateProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/run/v2/revision_template." + + "proto\022\023google.cloud.run.v2\032\031google/api/r" + + "esource.proto\032!google/cloud/run/v2/k8s.m" + + "in.proto\032)google/cloud/run/v2/vendor_set" + + "tings.proto\032\036google/protobuf/duration.pr" + + "oto\"\377\005\n\020RevisionTemplate\0222\n\010revision\030\001 \001" + + "(\tB \372A\035\n\033run.googleapis.com/Revision\022A\n\006" + + "labels\030\002 \003(\01321.google.cloud.run.v2.Revis" + + "ionTemplate.LabelsEntry\022K\n\013annotations\030\003" + + " \003(\01326.google.cloud.run.v2.RevisionTempl" + + "ate.AnnotationsEntry\0225\n\007scaling\030\004 \001(\0132$." + + "google.cloud.run.v2.RevisionScaling\0222\n\nv" + + "pc_access\030\006 \001(\0132\036.google.cloud.run.v2.Vp" + + "cAccess\022*\n\007timeout\030\010 \001(\0132\031.google.protob" + + "uf.Duration\022\027\n\017service_account\030\t \001(\t\0222\n\n" + + "containers\030\n \003(\0132\036.google.cloud.run.v2.C" + + "ontainer\022,\n\007volumes\030\013 \003(\0132\033.google.cloud" + + ".run.v2.Volume\022H\n\025execution_environment\030" + + "\r \001(\0162).google.cloud.run.v2.ExecutionEnv" + + "ironment\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\022(\n max_" + + "instance_request_concurrency\030\017 \001(\005\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001Bj\n\027com.google.cloud.run.v2" + + "B\025RevisionTemplateProtoP\001Z6google.golang" + + ".org/genproto/googleapis/cloud/run/v2;ru" + + "nb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.run.v2.K8sMinProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor, + new java.lang.String[] { + "Revision", + "Labels", + "Annotations", + "Scaling", + "VpcAccess", + "Timeout", + "ServiceAccount", + "Containers", + "Volumes", + "ExecutionEnvironment", + "EncryptionKey", + "MaxInstanceRequestConcurrency", + }); + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.run.v2.K8sMinProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.java similarity index 66% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.java index 38575aca8db6..e186e174b517 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequest.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/job.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message to create a new Execution of a Job.
  * 
* * Protobuf type {@code google.cloud.run.v2.RunJobRequest} */ -public final class RunJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.RunJobRequest) RunJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunJobRequest.newBuilder() to construct. private RunJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RunJobRequest() { name_ = ""; etag_ = ""; @@ -26,38 +44,44 @@ private RunJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_RunJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_RunJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.RunJobRequest.class, com.google.cloud.run.v2.RunJobRequest.Builder.class); + com.google.cloud.run.v2.RunJobRequest.class, + com.google.cloud.run.v2.RunJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full name of the Job.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 @@ -66,30 +90,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 Job.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 { @@ -100,12 +126,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 @@ -116,12 +145,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 @@ -130,30 +162,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 { @@ -162,6 +194,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +206,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_); } @@ -197,8 +229,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_); @@ -211,19 +242,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.RunJobRequest)) { return super.equals(obj); } com.google.cloud.run.v2.RunJobRequest other = (com.google.cloud.run.v2.RunJobRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,8 +266,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) + getUnknownFields().hashCode(); @@ -247,130 +274,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.RunJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.RunJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.RunJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RunJobRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.RunJobRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.RunJobRequest parseFrom( com.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.RunJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.RunJobRequest parseFrom( - byte[] data, - com.google.protobuf.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.RunJobRequest 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.RunJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.RunJobRequest 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.RunJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.RunJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.RunJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.RunJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 create a new Execution of a Job.
    * 
* * Protobuf type {@code google.cloud.run.v2.RunJobRequest} */ - public static final class Builder extends - com.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.RunJobRequest) com.google.cloud.run.v2.RunJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_RunJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_RunJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.RunJobRequest.class, com.google.cloud.run.v2.RunJobRequest.Builder.class); + com.google.cloud.run.v2.RunJobRequest.class, + com.google.cloud.run.v2.RunJobRequest.Builder.class); } // Construct using com.google.cloud.run.v2.RunJobRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_RunJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_RunJobRequest_descriptor; } @java.lang.Override @@ -405,7 +437,8 @@ public com.google.cloud.run.v2.RunJobRequest build() { @java.lang.Override public com.google.cloud.run.v2.RunJobRequest buildPartial() { - com.google.cloud.run.v2.RunJobRequest result = new com.google.cloud.run.v2.RunJobRequest(this); + com.google.cloud.run.v2.RunJobRequest result = + new com.google.cloud.run.v2.RunJobRequest(this); result.name_ = name_; result.validateOnly_ = validateOnly_; result.etag_ = etag_; @@ -417,38 +450,39 @@ public com.google.cloud.run.v2.RunJobRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.RunJobRequest) { - return mergeFrom((com.google.cloud.run.v2.RunJobRequest)other); + return mergeFrom((com.google.cloud.run.v2.RunJobRequest) other); } else { super.mergeFrom(other); return this; @@ -494,27 +528,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -527,19 +565,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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; @@ -548,21 +590,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 { @@ -570,70 +615,86 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 Job.
      * Format: projects/{project}/locations/{location}/jobs/{job}
      * 
* - * 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 @@ -641,32 +702,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; @@ -674,19 +741,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; @@ -695,21 +764,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 { @@ -717,64 +787,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); } @@ -784,12 +861,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.RunJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.RunJobRequest) private static final com.google.cloud.run.v2.RunJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.RunJobRequest(); } @@ -798,27 +875,27 @@ public static com.google.cloud.run.v2.RunJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +910,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.RunJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.java index 002425df9973..3bd6518e5f1c 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RunJobRequestOrBuilder.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/job.proto package com.google.cloud.run.v2; -public interface RunJobRequestOrBuilder extends +public interface RunJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.RunJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full name of the Job.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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 Job.
    * Format: projects/{project}/locations/{location}/jobs/{job}
    * 
* - * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java similarity index 66% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java index fc66d3b7b70d..ce3275006334 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelector.java +++ b/java-run/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,32 +44,35 @@ 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; } - 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.
@@ -59,7 +80,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -68,14 +92,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.
@@ -83,17 +108,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 { @@ -104,12 +130,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 @@ -118,30 +147,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 { @@ -150,6 +179,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +191,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_); } @@ -192,17 +221,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,130 +251,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +392,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 @@ -379,7 +413,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(); @@ -390,38 +425,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; @@ -464,22 +500,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - secret_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + secret_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -492,6 +531,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.
@@ -499,14 +540,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; @@ -515,6 +558,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.
@@ -522,16 +567,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 { @@ -539,6 +585,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.
@@ -546,21 +594,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.
@@ -568,16 +620,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.
@@ -585,17 +642,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; @@ -603,19 +662,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; @@ -624,21 +685,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 { @@ -646,64 +708,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); } @@ -713,12 +782,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(); } @@ -727,27 +796,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -762,6 +831,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.SecretKeySelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java similarity index 57% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java index a226a5b59381..fa3ba53dcb18 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretKeySelectorOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java similarity index 79% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java index c634677aa12e..0040d636d878 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java +++ b/java-run/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,32 +46,35 @@ 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;
   }
-  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.
@@ -62,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The secret. */ @java.lang.Override @@ -70,14 +92,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.
@@ -86,16 +109,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 { @@ -106,6 +128,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.
@@ -121,6 +145,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.
@@ -132,11 +158,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.
@@ -152,6 +180,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.
@@ -167,6 +197,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.
@@ -178,14 +210,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 0444.
@@ -205,6 +238,7 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(
    * 
* * int32 default_mode = 3; + * * @return The defaultMode. */ @java.lang.Override @@ -213,6 +247,7 @@ public int getDefaultMode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secret_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secret_); } @@ -248,12 +282,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,19 +295,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; - - if (!getSecret() - .equals(other.getSecret())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; - if (getDefaultMode() - != other.getDefaultMode()) return false; + 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,97 +330,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
@@ -399,33 +436,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +480,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
@@ -465,7 +501,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) {
@@ -486,38 +523,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;
@@ -548,9 +586,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_);
           }
@@ -585,35 +624,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              secret_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                secret_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.run.v2.VersionToPath m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.VersionToPath.parser(),
-                      extensionRegistry);
-              if (itemsBuilder_ == null) {
-                ensureItemsIsMutable();
-                items_.add(m);
-              } else {
-                itemsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 24: {
-              defaultMode_ = input.readInt32();
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.run.v2.VersionToPath m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.VersionToPath.parser(), extensionRegistry);
+                if (itemsBuilder_ == null) {
+                  ensureItemsIsMutable();
+                  items_.add(m);
+                } else {
+                  itemsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 24:
+              {
+                defaultMode_ = input.readInt32();
 
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -623,10 +665,13 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -635,13 +680,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; @@ -650,6 +695,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.
@@ -658,15 +705,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 { @@ -674,6 +720,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.
@@ -682,20 +730,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.
@@ -704,15 +754,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.
@@ -721,34 +774,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.
@@ -767,6 +826,8 @@ public java.util.List getItemsList() {
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -785,6 +846,8 @@ public int getItemsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -803,6 +866,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.
@@ -813,8 +878,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();
@@ -828,6 +892,8 @@ public Builder setItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -850,6 +916,8 @@ public Builder setItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -874,6 +942,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.
@@ -884,8 +954,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();
@@ -899,6 +968,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -909,8 +980,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());
@@ -921,6 +991,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -943,6 +1015,8 @@ public Builder addItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -957,8 +1031,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);
@@ -966,6 +1039,8 @@ public Builder addAllItems(
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -987,6 +1062,8 @@ public Builder clearItems() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If unspecified, the volume will expose a file whose name is the
      * secret, relative to VolumeMount.mount_path.
@@ -1008,6 +1085,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.
@@ -1018,11 +1097,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.
@@ -1033,14 +1113,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.
@@ -1051,8 +1133,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 {
@@ -1060,6 +1142,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.
@@ -1071,10 +1155,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.
@@ -1085,12 +1171,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.
@@ -1101,27 +1188,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 0444.
@@ -1141,6 +1232,7 @@ public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(
      * 
* * int32 default_mode = 3; + * * @return The defaultMode. */ @java.lang.Override @@ -1148,6 +1240,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 0444.
@@ -1167,16 +1261,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 0444.
@@ -1196,17 +1293,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); } @@ -1216,12 +1314,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(); } @@ -1230,27 +1328,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1265,6 +1363,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.SecretVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java similarity index 83% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java index fcaab33a1590..26630a58b7d5 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java +++ b/java-run/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 0444.
@@ -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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java similarity index 72% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java index 1de1e0fa8e22..40788ebb49b0 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java +++ b/java-run/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,39 +62,38 @@ 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;
   }
-  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);
   }
@@ -84,6 +101,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
@@ -93,6 +112,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -101,14 +121,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
@@ -118,16 +139,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 { @@ -138,12 +158,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 @@ -152,30 +175,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 { @@ -186,12 +209,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 @@ -200,30 +226,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 { @@ -234,6 +260,8 @@ public java.lang.String getUid() { public static final int GENERATION_FIELD_NUMBER = 4; private long generation_; /** + * + * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
@@ -242,6 +270,7 @@ public java.lang.String getUid() {
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ @java.lang.Override @@ -250,24 +279,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_; } @@ -276,6 +304,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -291,22 +321,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 5;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -323,11 +353,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.
@@ -344,16 +375,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 5;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -370,12 +401,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 5;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -383,24 +413,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_;
   }
@@ -409,6 +439,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
@@ -420,22 +452,22 @@ public int getAnnotationsCount() {
    *
    * map<string, string> annotations = 6;
    */
-
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -448,11 +480,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
@@ -465,16 +498,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 6;
    */
   @java.lang.Override
-
   public java.lang.String getAnnotationsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -487,12 +521,11 @@ public java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 6;
    */
   @java.lang.Override
-
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -502,11 +535,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 @@ -514,11 +551,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 @@ -526,11 +567,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() { @@ -540,11 +584,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 @@ -552,11 +600,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 @@ -564,11 +616,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() { @@ -578,11 +633,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 @@ -590,11 +649,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 @@ -602,11 +665,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() { @@ -616,12 +682,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 @@ -629,12 +699,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 @@ -642,12 +716,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() { @@ -657,11 +734,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 @@ -670,29 +750,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 { @@ -703,11 +783,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 @@ -716,29 +799,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 { @@ -749,11 +832,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 @@ -762,29 +848,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 { @@ -795,11 +881,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 @@ -808,29 +897,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 { @@ -841,6 +930,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
@@ -848,12 +939,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
@@ -861,17 +956,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).
@@ -880,12 +980,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).
@@ -894,9 +998,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; @@ -905,11 +1011,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 @@ -917,18 +1026,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.
    * 
@@ -943,11 +1059,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 @@ -955,23 +1076,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() { @@ -981,6 +1113,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
@@ -994,6 +1128,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
@@ -1003,11 +1139,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
@@ -1021,6 +1159,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
@@ -1034,6 +1174,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
@@ -1043,14 +1185,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
@@ -1060,6 +1203,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 @@ -1070,6 +1214,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
@@ -1077,7 +1223,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 @@ -1085,6 +1234,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
@@ -1092,14 +1243,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
@@ -1107,7 +1265,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() { @@ -1117,6 +1277,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
@@ -1124,13 +1286,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
@@ -1138,14 +1304,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
@@ -1153,13 +1323,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
@@ -1167,13 +1341,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
@@ -1181,24 +1359,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 @@ -1207,31 +1391,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 { @@ -1242,12 +1428,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 @@ -1256,30 +1447,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 { @@ -1290,66 +1483,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( @@ -1360,11 +1573,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 @@ -1373,29 +1589,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 { @@ -1406,6 +1622,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.
@@ -1429,6 +1647,7 @@ public java.lang.String getUri() {
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1439,12 +1658,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 @@ -1453,30 +1675,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1485,6 +1707,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1496,8 +1719,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1510,18 +1732,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()); } @@ -1546,7 +1760,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()) { @@ -1607,44 +1822,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_); @@ -1658,37 +1868,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_); @@ -1697,15 +1901,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_); @@ -1718,88 +1920,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1818,8 +1994,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(); @@ -1869,8 +2044,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(); @@ -1890,8 +2064,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) + getUnknownFields().hashCode(); @@ -1899,97 +2072,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.
@@ -2000,59 +2179,55 @@ 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);
     }
 
     // Construct using com.google.cloud.run.v2.Service.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2157,9 +2332,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
@@ -2270,38 +2445,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;
@@ -2325,10 +2501,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());
       }
@@ -2387,9 +2561,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_);
           }
@@ -2419,9 +2594,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_);
           }
@@ -2453,9 +2629,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_);
           }
@@ -2498,196 +2675,214 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              description_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            case 26: {
-              uid_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 26
-            case 32: {
-              generation_ = input.readInt64();
-
-              break;
-            } // case 32
-            case 42: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              break;
-            } // case 42
-            case 50: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getExpireTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 82
-            case 90: {
-              creator_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 90
-            case 98: {
-              lastModifier_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 98
-            case 106: {
-              client_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 106
-            case 114: {
-              clientVersion_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 114
-            case 120: {
-              ingress_ = input.readEnum();
-
-              break;
-            } // case 120
-            case 128: {
-              launchStage_ = input.readEnum();
-
-              break;
-            } // case 128
-            case 138: {
-              input.readMessage(
-                  getBinaryAuthorizationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 138
-            case 146: {
-              input.readMessage(
-                  getTemplateFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 146
-            case 154: {
-              com.google.cloud.run.v2.TrafficTarget m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.TrafficTarget.parser(),
-                      extensionRegistry);
-              if (trafficBuilder_ == null) {
-                ensureTrafficIsMutable();
-                traffic_.add(m);
-              } else {
-                trafficBuilder_.addMessage(m);
-              }
-              break;
-            } // case 154
-            case 240: {
-              observedGeneration_ = input.readInt64();
-
-              break;
-            } // case 240
-            case 250: {
-              input.readMessage(
-                  getTerminalConditionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 250
-            case 258: {
-              com.google.cloud.run.v2.Condition m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.Condition.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 258
-            case 266: {
-              latestReadyRevision_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 266
-            case 274: {
-              latestCreatedRevision_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 274
-            case 282: {
-              com.google.cloud.run.v2.TrafficTargetStatus m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.TrafficTargetStatus.parser(),
-                      extensionRegistry);
-              if (trafficStatusesBuilder_ == null) {
-                ensureTrafficStatusesIsMutable();
-                trafficStatuses_.add(m);
-              } else {
-                trafficStatusesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 282
-            case 290: {
-              uri_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 290
-            case 784: {
-              reconciling_ = input.readBool();
-
-              break;
-            } // case 784
-            case 794: {
-              etag_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 794
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                description_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            case 26:
+              {
+                uid_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+            case 32:
+              {
+                generation_ = input.readInt64();
+
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                break;
+              } // case 42
+            case 50:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 82
+            case 90:
+              {
+                creator_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 90
+            case 98:
+              {
+                lastModifier_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 98
+            case 106:
+              {
+                client_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 106
+            case 114:
+              {
+                clientVersion_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 114
+            case 120:
+              {
+                ingress_ = input.readEnum();
+
+                break;
+              } // case 120
+            case 128:
+              {
+                launchStage_ = input.readEnum();
+
+                break;
+              } // case 128
+            case 138:
+              {
+                input.readMessage(
+                    getBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 138
+            case 146:
+              {
+                input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 146
+            case 154:
+              {
+                com.google.cloud.run.v2.TrafficTarget m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.TrafficTarget.parser(), extensionRegistry);
+                if (trafficBuilder_ == null) {
+                  ensureTrafficIsMutable();
+                  traffic_.add(m);
+                } else {
+                  trafficBuilder_.addMessage(m);
+                }
+                break;
+              } // case 154
+            case 240:
+              {
+                observedGeneration_ = input.readInt64();
+
+                break;
+              } // case 240
+            case 250:
+              {
+                input.readMessage(
+                    getTerminalConditionFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 250
+            case 258:
+              {
+                com.google.cloud.run.v2.Condition m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 258
+            case 266:
+              {
+                latestReadyRevision_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 266
+            case 274:
+              {
+                latestCreatedRevision_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 274
+            case 282:
+              {
+                com.google.cloud.run.v2.TrafficTargetStatus m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.TrafficTargetStatus.parser(), extensionRegistry);
+                if (trafficStatusesBuilder_ == null) {
+                  ensureTrafficStatusesIsMutable();
+                  trafficStatuses_.add(m);
+                } else {
+                  trafficStatusesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 282
+            case 290:
+              {
+                uri_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 290
+            case 784:
+              {
+                reconciling_ = input.readBool();
+
+                break;
+              } // case 784
+            case 794:
+              {
+                etag_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 794
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2697,10 +2892,13 @@ public Builder mergeFrom(
       } // finally
       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
@@ -2710,13 +2908,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; @@ -2725,6 +2923,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
@@ -2734,15 +2934,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 { @@ -2750,6 +2949,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
@@ -2759,20 +2960,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
@@ -2782,15 +2985,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
@@ -2800,16 +3006,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; @@ -2817,19 +3023,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; @@ -2838,21 +3046,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 { @@ -2860,57 +3069,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; @@ -2918,19 +3134,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; @@ -2939,21 +3157,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 { @@ -2961,64 +3180,73 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** + * + * *
      * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
      * string and guaranteed to remain unchanged until the resource is deleted.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; } - private long generation_ ; + private long generation_; /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3027,6 +3255,7 @@ public Builder setUidBytes(
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ @java.lang.Override @@ -3034,6 +3263,8 @@ public long getGeneration() { return generation_; } /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3042,16 +3273,19 @@ public long getGeneration() {
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A number that monotonically increases every time the user
      * modifies the desired state.
@@ -3060,31 +3294,31 @@ public Builder setGeneration(long value) {
      * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 0L; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3096,6 +3330,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3111,22 +3347,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 5;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3143,11 +3379,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.
@@ -3164,16 +3401,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 5;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3190,12 +3428,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 5;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3203,11 +3440,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.
@@ -3223,23 +3461,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 5;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3255,19 +3491,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 5;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Map of string keys and values that can be used to organize and categorize
      * objects.
@@ -3283,30 +3520,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();
@@ -3318,6 +3554,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
@@ -3329,22 +3567,22 @@ public int getAnnotationsCount() {
      *
      * map<string, string> annotations = 6;
      */
-
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3357,11 +3595,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
@@ -3374,16 +3613,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 6;
      */
     @java.lang.Override
-
     public java.lang.String getAnnotationsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3396,12 +3636,11 @@ public java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 6;
      */
     @java.lang.Override
-
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3409,11 +3648,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
@@ -3425,23 +3665,21 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 6;
      */
-
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3453,19 +3691,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 6;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Unstructured key value map that may be set by external tools to store and
      * arbitrary metadata. They are not queryable and should be preserved
@@ -3477,49 +3716,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) { @@ -3535,14 +3790,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(); @@ -3553,17 +3811,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; } @@ -3575,11 +3837,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) { @@ -3593,48 +3859,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_; @@ -3642,39 +3924,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) { @@ -3690,14 +3991,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(); @@ -3708,17 +4012,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; } @@ -3730,11 +4038,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) { @@ -3748,48 +4060,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_; @@ -3797,39 +4125,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) { @@ -3845,14 +4192,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(); @@ -3863,17 +4213,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; } @@ -3885,11 +4239,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) { @@ -3903,48 +4261,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_; @@ -3952,42 +4326,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) { @@ -4003,15 +4396,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(); @@ -4022,18 +4418,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; } @@ -4045,12 +4445,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) { @@ -4064,51 +4468,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_; @@ -4116,18 +4536,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; @@ -4136,20 +4558,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 { @@ -4157,54 +4580,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; @@ -4212,18 +4642,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; @@ -4232,20 +4664,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 { @@ -4253,54 +4686,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; @@ -4308,18 +4748,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; @@ -4328,20 +4770,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 { @@ -4349,54 +4792,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; @@ -4404,18 +4854,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; @@ -4424,20 +4876,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 { @@ -4445,54 +4898,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; @@ -4500,6 +4960,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
@@ -4507,12 +4969,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
@@ -4520,16 +4986,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
@@ -4537,15 +5006,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
@@ -4553,6 +5026,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. */ @@ -4560,12 +5034,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
@@ -4573,10 +5049,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; @@ -4584,6 +5061,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).
@@ -4592,12 +5071,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).
@@ -4606,16 +5089,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).
@@ -4624,6 +5110,7 @@ public Builder setLaunchStageValue(int value) {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The launchStage. */ @java.lang.Override @@ -4633,6 +5120,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).
@@ -4641,6 +5130,7 @@ public com.google.api.LaunchStage getLaunchStage() {
      * 
* * .google.api.LaunchStage launch_stage = 16; + * * @param value The launchStage to set. * @return This builder for chaining. */ @@ -4648,12 +5138,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).
@@ -4662,10 +5154,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; @@ -4673,34 +5166,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.
      * 
@@ -4721,6 +5227,8 @@ public Builder setBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizatio return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4739,6 +5247,8 @@ public Builder setBinaryAuthorization( return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4749,7 +5259,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; } @@ -4761,6 +5273,8 @@ public Builder mergeBinaryAuthorization(com.google.cloud.run.v2.BinaryAuthorizat return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4779,6 +5293,8 @@ public Builder clearBinaryAuthorization() { return this; } /** + * + * *
      * Settings for the Binary Authorization feature.
      * 
@@ -4786,11 +5302,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.
      * 
@@ -4801,11 +5319,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.
      * 
@@ -4813,14 +5334,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_; @@ -4828,39 +5352,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) { @@ -4876,14 +5419,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(); @@ -4894,17 +5440,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; } @@ -4916,11 +5468,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) { @@ -4934,66 +5490,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
@@ -5010,6 +5588,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
@@ -5026,6 +5606,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
@@ -5042,6 +5624,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
@@ -5050,8 +5634,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();
@@ -5065,6 +5648,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
@@ -5085,6 +5670,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
@@ -5107,6 +5694,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
@@ -5115,8 +5704,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();
@@ -5130,6 +5718,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
@@ -5138,8 +5728,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());
@@ -5150,6 +5739,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
@@ -5170,6 +5761,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
@@ -5182,8 +5775,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);
@@ -5191,6 +5783,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
@@ -5210,6 +5804,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
@@ -5229,6 +5825,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
@@ -5237,11 +5835,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
@@ -5250,14 +5849,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
@@ -5266,8 +5867,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 {
@@ -5275,6 +5876,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
@@ -5284,10 +5887,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
@@ -5296,12 +5901,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
@@ -5310,27 +5916,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
@@ -5340,6 +5950,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 @@ -5347,6 +5958,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
@@ -5356,16 +5969,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
@@ -5375,10 +5991,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; @@ -5386,8 +6003,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
@@ -5395,13 +6017,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
@@ -5409,17 +6036,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
@@ -5427,7 +6061,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) { @@ -5443,6 +6079,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
@@ -5450,10 +6088,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(); @@ -5464,6 +6103,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
@@ -5471,13 +6112,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; } @@ -5489,6 +6134,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
@@ -5496,7 +6143,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) { @@ -5510,6 +6159,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
@@ -5517,14 +6168,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
@@ -5532,17 +6187,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
@@ -5550,35 +6210,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
@@ -5586,7 +6257,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) { @@ -5596,6 +6269,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
@@ -5603,7 +6278,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) { @@ -5613,6 +6290,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
@@ -5620,7 +6299,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) { @@ -5630,6 +6311,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
@@ -5637,10 +6320,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(); @@ -5654,6 +6338,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
@@ -5661,7 +6347,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) { @@ -5675,6 +6363,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
@@ -5682,7 +6372,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) { @@ -5698,6 +6390,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
@@ -5705,10 +6399,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(); @@ -5722,6 +6417,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
@@ -5729,10 +6426,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()); @@ -5743,6 +6441,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
@@ -5750,7 +6450,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) { @@ -5764,6 +6466,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
@@ -5771,14 +6475,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); @@ -5786,6 +6491,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
@@ -5793,7 +6500,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) { @@ -5806,6 +6515,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
@@ -5813,7 +6524,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) { @@ -5826,6 +6539,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
@@ -5833,13 +6548,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
@@ -5847,16 +6565,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
@@ -5864,10 +6586,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 { @@ -5875,6 +6599,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
@@ -5882,13 +6608,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
@@ -5896,14 +6626,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
@@ -5911,22 +6644,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_; @@ -5934,20 +6671,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; @@ -5956,22 +6697,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 { @@ -5979,60 +6723,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; @@ -6040,19 +6797,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; @@ -6061,21 +6822,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 { @@ -6083,82 +6847,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) { @@ -6168,13 +6954,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) { @@ -6184,13 +6974,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) { @@ -6200,13 +6994,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) { @@ -6223,13 +7021,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) { @@ -6243,13 +7045,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) { @@ -6265,13 +7071,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) { @@ -6288,13 +7098,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) { @@ -6308,13 +7122,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) { @@ -6328,20 +7146,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); @@ -6349,13 +7170,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) { @@ -6368,13 +7193,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) { @@ -6387,45 +7216,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 { @@ -6433,51 +7275,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(), @@ -6489,18 +7349,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; @@ -6509,20 +7371,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 { @@ -6530,61 +7393,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.
@@ -6608,6 +7480,7 @@ public Builder setUriBytes(
      * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -6615,6 +7488,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.
@@ -6638,16 +7513,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.
@@ -6671,10 +7549,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; @@ -6682,19 +7561,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; @@ -6703,21 +7584,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 { @@ -6725,64 +7607,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); } @@ -6792,12 +7681,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(); } @@ -6806,27 +7695,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6841,6 +7730,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java similarity index 80% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java index df89e68fea9e..d8cc384bfe62 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/service.proto package com.google.cloud.run.v2; -public interface ServiceOrBuilder extends +public interface ServiceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Service) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -17,10 +35,13 @@ public interface ServiceOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The fully qualified name of this Service. In CreateServiceRequest, this
    * field is ignored, and instead composed from CreateServiceRequest.parent and
@@ -30,56 +51,68 @@ public interface ServiceOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * User-provided description of the Service. This field currently has a
    * 512-character limit.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User-provided description of the Service. This field currently has a
    * 512-character limit.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Server assigned unique identifier for the trigger. The value is a UUID4
    * string and guaranteed to remain unchanged until the resource is deleted.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. A number that monotonically increases every time the user
    * modifies the desired state.
@@ -88,11 +121,14 @@ public interface ServiceOrBuilder extends
    * 
* * int64 generation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The generation. */ long getGeneration(); /** + * + * *
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -110,6 +146,8 @@ public interface ServiceOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -125,15 +163,13 @@ public interface ServiceOrBuilder extends
    *
    * map<string, string> labels = 5;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -149,9 +185,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 5;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -169,11 +206,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Map of string keys and values that can be used to organize and categorize
    * objects.
@@ -189,11 +228,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 5;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -207,6 +246,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -218,15 +259,13 @@ java.lang.String getLabelsOrThrow(
    *
    * map<string, string> annotations = 6;
    */
-  boolean containsAnnotations(
-      java.lang.String key);
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  boolean containsAnnotations(java.lang.String key);
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAnnotations();
+  java.util.Map getAnnotations();
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -238,9 +277,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 6;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -254,11 +294,13 @@ boolean containsAnnotations(
    */
 
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Unstructured key value map that may be set by external tools to store and
    * arbitrary metadata. They are not queryable and should be preserved
@@ -270,202 +312,266 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 6;
    */
-
-  java.lang.String getAnnotationsOrThrow(
-      java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last-modified time.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The deletion time.
    * 
* - * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. For a deleted resource, the time after which it will be
    * permamently deleted.
    * 
* - * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ java.lang.String getCreator(); /** + * + * *
    * Output only. Email address of the authenticated creator.
    * 
* * string creator = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ - com.google.protobuf.ByteString - getCreatorBytes(); + com.google.protobuf.ByteString getCreatorBytes(); /** + * + * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifier. */ java.lang.String getLastModifier(); /** + * + * *
    * Output only. Email address of the last authenticated modifier.
    * 
* * string last_modifier = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastModifier. */ - com.google.protobuf.ByteString - getLastModifierBytes(); + com.google.protobuf.ByteString getLastModifierBytes(); /** + * + * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; + * * @return The client. */ java.lang.String getClient(); /** + * + * *
    * Arbitrary identifier for the API client.
    * 
* * string client = 13; + * * @return The bytes for client. */ - com.google.protobuf.ByteString - getClientBytes(); + com.google.protobuf.ByteString getClientBytes(); /** + * + * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; + * * @return The clientVersion. */ java.lang.String getClientVersion(); /** + * + * *
    * Arbitrary version identifier for the API client.
    * 
* * string client_version = 14; + * * @return The bytes for clientVersion. */ - com.google.protobuf.ByteString - getClientVersionBytes(); + com.google.protobuf.ByteString getClientVersionBytes(); /** + * + * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -473,10 +579,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @return The enum numeric value on the wire for ingress. */ int getIngressValue(); /** + * + * *
    * Provides the ingress settings for this Service. On output, returns the
    * currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
@@ -484,11 +593,14 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.cloud.run.v2.IngressTraffic ingress = 15; + * * @return The ingress. */ com.google.cloud.run.v2.IngressTraffic getIngress(); /** + * + * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -497,10 +609,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The enum numeric value on the wire for launchStage. */ int getLaunchStageValue(); /** + * + * *
    * The launch stage as defined by [Google Cloud Platform
    * Launch Stages](https://cloud.google.com/terms/launch-stages).
@@ -509,29 +624,38 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * .google.api.LaunchStage launch_stage = 16; + * * @return The launchStage. */ com.google.api.LaunchStage getLaunchStage(); /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * * @return Whether the binaryAuthorization field is set. */ boolean hasBinaryAuthorization(); /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
* * .google.cloud.run.v2.BinaryAuthorization binary_authorization = 17; + * * @return The binaryAuthorization. */ com.google.cloud.run.v2.BinaryAuthorization getBinaryAuthorization(); /** + * + * *
    * Settings for the Binary Authorization feature.
    * 
@@ -541,33 +665,49 @@ java.lang.String getAnnotationsOrThrow( com.google.cloud.run.v2.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); /** + * + * *
    * Required. The template used to create revisions for this Service.
    * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the template field is set. */ boolean hasTemplate(); /** + * + * *
    * Required. The template used to create revisions for this Service.
    * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The template. */ com.google.cloud.run.v2.RevisionTemplate getTemplate(); /** + * + * *
    * Required. The template used to create revisions for this Service.
    * 
* - * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.run.v2.RevisionTemplate template = 18 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.run.v2.RevisionTemplateOrBuilder getTemplateOrBuilder(); /** + * + * *
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -576,9 +716,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  java.util.List 
-      getTrafficList();
+  java.util.List getTrafficList();
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -589,6 +730,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   com.google.cloud.run.v2.TrafficTarget getTraffic(int index);
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -599,6 +742,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getTrafficCount();
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -607,9 +752,11 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  java.util.List 
+  java.util.List
       getTrafficOrBuilderList();
   /**
+   *
+   *
    * 
    * Specifies how to distribute traffic over a collection of Revisions
    * belonging to the Service. If traffic is empty or not provided, defaults to
@@ -618,10 +765,11 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.TrafficTarget traffic = 19;
    */
-  com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
-      int index);
+  com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Output only. The generation of this Service currently serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
@@ -631,11 +779,14 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * 
* * int64 observed_generation = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ long getObservedGeneration(); /** + * + * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -643,11 +794,16 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * process in Cloud Run.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the terminalCondition field is set. */ boolean hasTerminalCondition(); /** + * + * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -655,11 +811,16 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * process in Cloud Run.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The terminalCondition. */ com.google.cloud.run.v2.Condition getTerminalCondition(); /** + * + * *
    * Output only. The Condition of this Service, containing its readiness status, and
    * detailed error information in case it did not reach a serving state. See
@@ -667,11 +828,15 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * process in Cloud Run.
    * 
* - * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Condition terminal_condition = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder(); /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -679,11 +844,14 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -691,10 +859,14 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.Condition getConditions(int index); /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -702,10 +874,14 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -713,11 +889,14 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. The Conditions of all other associated sub-resources. They contain
    * additional diagnostics information in case the Service does not reach its
@@ -725,132 +904,176 @@ com.google.cloud.run.v2.TrafficTargetOrBuilder getTrafficOrBuilder(
    * reconciliation process in Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( - int index); + com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index); /** + * + * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The latestReadyRevision. */ java.lang.String getLatestReadyRevision(); /** + * + * *
    * Output only. Name of the latest revision that is serving traffic. See comments in
    * `reconciling` for additional information on reconciliation process in Cloud
    * Run.
    * 
* - * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_ready_revision = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for latestReadyRevision. */ - com.google.protobuf.ByteString - getLatestReadyRevisionBytes(); + com.google.protobuf.ByteString getLatestReadyRevisionBytes(); /** + * + * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The latestCreatedRevision. */ java.lang.String getLatestCreatedRevision(); /** + * + * *
    * Output only. Name of the last created revision. See comments in `reconciling` for
    * additional information on reconciliation process in Cloud Run.
    * 
* - * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string latest_created_revision = 34 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for latestCreatedRevision. */ - com.google.protobuf.ByteString - getLatestCreatedRevisionBytes(); + com.google.protobuf.ByteString getLatestCreatedRevisionBytes(); /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getTrafficStatusesList(); + java.util.List getTrafficStatusesList(); /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.TrafficTargetStatus getTrafficStatuses(int index); /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getTrafficStatusesCount(); /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getTrafficStatusesOrBuilderList(); /** + * + * *
    * Output only. Detailed status information for corresponding traffic targets. See comments
    * in `reconciling` for additional information on reconciliation process in
    * Cloud Run.
    * 
* - * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.TrafficTargetStatus traffic_statuses = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder( - int index); + com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder(int index); /** + * + * *
    * Output only. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Output only. The main URI in which this Service is serving traffic.
    * 
* * string uri = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Output only. Returns true if the Service is currently being acted upon by the system to
    * bring it into the desired state.
@@ -874,29 +1097,35 @@ com.google.cloud.run.v2.TrafficTargetStatusOrBuilder getTrafficStatusesOrBuilder
    * 
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. A system-generated fingerprint for this version of the
    * resource. May be used to detect modification conflict during updates.
    * 
* * string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java new file mode 100644 index 000000000000..13250613bb93 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java @@ -0,0 +1,337 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/service.proto + +package com.google.cloud.run.v2; + +public final class ServiceProto { + private ServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n!google/cloud/run/v2/service.proto\022\023goo" + + "gle.cloud.run.v2\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\035google/api/lau" + + "nch_stage.proto\032\031google/api/resource.pro" + + "to\032\030google/api/routing.proto\032#google/clo" + + "ud/run/v2/condition.proto\032+google/cloud/" + + "run/v2/revision_template.proto\032(google/c" + + "loud/run/v2/traffic_target.proto\032)google" + + "/cloud/run/v2/vendor_settings.proto\032\036goo" + + "gle/iam/v1/iam_policy.proto\032\032google/iam/" + + "v1/policy.proto\032#google/longrunning/oper" + + "ations.proto\032\037google/protobuf/timestamp." + + "proto\"\256\001\n\024CreateServiceRequest\0222\n\006parent" + + "\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.com/Servi" + + "ce\0222\n\007service\030\002 \001(\0132\034.google.cloud.run.v" + + "2.ServiceB\003\340A\002\022\027\n\nservice_id\030\003 \001(\tB\003\340A\002\022" + + "\025\n\rvalidate_only\030\004 \001(\010\"x\n\024UpdateServiceR" + + "equest\0222\n\007service\030\001 \001(\0132\034.google.cloud.r" + + "un.v2.ServiceB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" + + "\010\022\025\n\rallow_missing\030\004 \001(\010\"\206\001\n\023ListService" + + "sRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.go" + + "ogleapis.com/Service\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + + "\010\"_\n\024ListServicesResponse\022.\n\010services\030\001 " + + "\003(\0132\034.google.cloud.run.v2.Service\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"E\n\021GetServiceRequest\022" + + "0\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.co" + + "m/Service\"m\n\024DeleteServiceRequest\0220\n\004nam" + + "e\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.com/Serv" + + "ice\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" + + "\"\230\013\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" + + "n\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\027\n\ngeneration\030" + + "\004 \001(\003B\003\340A\003\0228\n\006labels\030\005 \003(\0132(.google.clou" + + "d.run.v2.Service.LabelsEntry\022B\n\013annotati" + + "ons\030\006 \003(\0132-.google.cloud.run.v2.Service." + + "AnnotationsEntry\0224\n\013create_time\030\007 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013expire_time\030\n \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007crea" + + "tor\030\013 \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\014 \001(\tB\003\340" + + "A\003\022\016\n\006client\030\r \001(\t\022\026\n\016client_version\030\016 \001" + + "(\t\0224\n\007ingress\030\017 \001(\0162#.google.cloud.run.v" + + "2.IngressTraffic\022-\n\014launch_stage\030\020 \001(\0162\027" + + ".google.api.LaunchStage\022F\n\024binary_author" + + "ization\030\021 \001(\0132(.google.cloud.run.v2.Bina" + + "ryAuthorization\022<\n\010template\030\022 \001(\0132%.goog" + + "le.cloud.run.v2.RevisionTemplateB\003\340A\002\0223\n" + + "\007traffic\030\023 \003(\0132\".google.cloud.run.v2.Tra" + + "fficTarget\022 \n\023observed_generation\030\036 \001(\003B" + + "\003\340A\003\022?\n\022terminal_condition\030\037 \001(\0132\036.googl" + + "e.cloud.run.v2.ConditionB\003\340A\003\0227\n\nconditi" + + "ons\030 \003(\0132\036.google.cloud.run.v2.Conditio" + + "nB\003\340A\003\022B\n\025latest_ready_revision\030! \001(\tB#\340" + + "A\003\372A\035\n\033run.googleapis.com/Revision\022D\n\027la" + + "test_created_revision\030\" \001(\tB#\340A\003\372A\035\n\033run" + + ".googleapis.com/Revision\022G\n\020traffic_stat" + + "uses\030# \003(\0132(.google.cloud.run.v2.Traffic" + + "TargetStatusB\003\340A\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\030\n\013r" + + "econciling\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis" + + ".com/Service\022:projects/{project}/locatio" + + "ns/{location}/services/{service}R\001\0012\267\r\n\010" + + "Services\022\375\001\n\rCreateService\022).google.clou" + + "d.run.v2.CreateServiceRequest\032\035.google.l" + + "ongrunning.Operation\"\241\001\202\323\344\223\0027\",/v2/{pare" + + "nt=projects/*/locations/*}/services:\007ser" + + "vice\212\323\344\223\002-\022+\n\006parent\022!projects/*/locatio" + + "ns/{location=*}\332A\031parent,service,service" + + "_id\312A\022\n\007Service\022\007Service\022\303\001\n\nGetService\022" + + "&.google.cloud.run.v2.GetServiceRequest\032" + + "\034.google.cloud.run.v2.Service\"o\202\323\344\223\002.\022,/" + + "v2/{name=projects/*/locations/*/services" + + "/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/" + + "{location=*}/**\332A\004name\022\325\001\n\014ListServices\022" + + "(.google.cloud.run.v2.ListServicesReques" + + "t\032).google.cloud.run.v2.ListServicesResp" + + "onse\"p\202\323\344\223\002.\022,/v2/{parent=projects/*/loc" + + "ations/*}/services\212\323\344\223\002-\022+\n\006parent\022!proj" + + "ects/*/locations/{location=*}\332A\006parent\022\374" + + "\001\n\rUpdateService\022).google.cloud.run.v2.U" + + "pdateServiceRequest\032\035.google.longrunning" + + ".Operation\"\240\001\202\323\344\223\002?24/v2/{service.name=p" + + "rojects/*/locations/*/services/*}:\007servi" + + "ce\212\323\344\223\0026\0224\n\014service.name\022$projects/*/loc" + + "ations/{location=*}/**\332A\007service\312A\022\n\007Ser" + + "vice\022\007Service\022\340\001\n\rDeleteService\022).google" + + ".cloud.run.v2.DeleteServiceRequest\032\035.goo" + + "gle.longrunning.Operation\"\204\001\202\323\344\223\002.*,/v2/" + + "{name=projects/*/locations/*/services/*}" + + "\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{lo" + + "cation=*}/**\332A\004name\312A\022\n\007Service\022\007Service" + + "\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam" + + "PolicyRequest\032\025.google.iam.v1.Policy\"E\202\323" + + "\344\223\002?\022=/v2/{resource=projects/*/locations" + + "/*/services/*}:getIamPolicy\022\223\001\n\014SetIamPo" + + "licy\022\".google.iam.v1.SetIamPolicyRequest" + + "\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{re" + + "source=projects/*/locations/*/services/*" + + "}:setIamPolicy:\001*\022\271\001\n\022TestIamPermissions" + + "\022(.google.iam.v1.TestIamPermissionsReque" + + "st\032).google.iam.v1.TestIamPermissionsRes" + + "ponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*/" + + "locations/*/services/*}:testIamPermissio" + + "ns:\001*\032F\312A\022run.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformBa\n" + + "\027com.google.cloud.run.v2B\014ServiceProtoP\001" + + "Z6google.golang.org/genproto/googleapis/" + + "cloud/run/v2;runb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.LaunchStageProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.cloud.run.v2.ConditionProto.getDescriptor(), + com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(), + com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(), + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor, + new java.lang.String[] { + "Parent", "Service", "ServiceId", "ValidateOnly", + }); + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor, + new java.lang.String[] { + "Service", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListServicesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListServicesResponse_descriptor, + new java.lang.String[] { + "Services", "NextPageToken", + }); + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetServiceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_run_v2_Service_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_run_v2_Service_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_descriptor, + new java.lang.String[] { + "Name", + "Description", + "Uid", + "Generation", + "Labels", + "Annotations", + "CreateTime", + "UpdateTime", + "DeleteTime", + "ExpireTime", + "Creator", + "LastModifier", + "Client", + "ClientVersion", + "Ingress", + "LaunchStage", + "BinaryAuthorization", + "Template", + "Traffic", + "ObservedGeneration", + "TerminalCondition", + "Conditions", + "LatestReadyRevision", + "LatestCreatedRevision", + "TrafficStatuses", + "Uri", + "Reconciling", + "Etag", + }); + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.LaunchStageProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(); + com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java similarity index 64% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java index e91f673c15c2..59c4e2531f0d 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/k8s.min.proto package com.google.cloud.run.v2; /** + * + * *
  * TCPSocketAction describes an action based on opening a socket
  * 
* * Protobuf type {@code google.cloud.run.v2.TCPSocketAction} */ -public final class TCPSocketAction extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TCPSocketAction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.TCPSocketAction) TCPSocketActionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TCPSocketAction.newBuilder() to construct. private TCPSocketAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TCPSocketAction() { - } + + private TCPSocketAction() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TCPSocketAction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.TCPSocketAction.class, com.google.cloud.run.v2.TCPSocketAction.Builder.class); + com.google.cloud.run.v2.TCPSocketAction.class, + com.google.cloud.run.v2.TCPSocketAction.Builder.class); } public static final int PORT_FIELD_NUMBER = 1; private int port_; /** + * + * *
    * Port number to access on the container. Must be in the range 1 to 65535.
    * 
* * int32 port = 1; + * * @return The port. */ @java.lang.Override @@ -63,6 +84,7 @@ public int getPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,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 (port_ != 0) { output.writeInt32(1, port_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, port_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,15 +120,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.TCPSocketAction)) { return super.equals(obj); } com.google.cloud.run.v2.TCPSocketAction other = (com.google.cloud.run.v2.TCPSocketAction) obj; - if (getPort() - != other.getPort()) return false; + if (getPort() != other.getPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -127,130 +146,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.TCPSocketAction parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.TCPSocketAction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TCPSocketAction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TCPSocketAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TCPSocketAction parseFrom( com.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.TCPSocketAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TCPSocketAction parseFrom( - byte[] data, - com.google.protobuf.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.TCPSocketAction 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.TCPSocketAction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.TCPSocketAction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.TCPSocketAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.TCPSocketAction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.TCPSocketAction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.TCPSocketAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.TCPSocketAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TCPSocketAction describes an action based on opening a socket
    * 
* * Protobuf type {@code google.cloud.run.v2.TCPSocketAction} */ - public static final class Builder extends - com.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.TCPSocketAction) com.google.cloud.run.v2.TCPSocketActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.K8sMinProto.internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.TCPSocketAction.class, com.google.cloud.run.v2.TCPSocketAction.Builder.class); + com.google.cloud.run.v2.TCPSocketAction.class, + com.google.cloud.run.v2.TCPSocketAction.Builder.class); } // Construct using com.google.cloud.run.v2.TCPSocketAction.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -260,9 +285,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_TCPSocketAction_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; } @java.lang.Override @@ -281,7 +306,8 @@ public com.google.cloud.run.v2.TCPSocketAction build() { @java.lang.Override public com.google.cloud.run.v2.TCPSocketAction buildPartial() { - com.google.cloud.run.v2.TCPSocketAction result = new com.google.cloud.run.v2.TCPSocketAction(this); + com.google.cloud.run.v2.TCPSocketAction result = + new com.google.cloud.run.v2.TCPSocketAction(this); result.port_ = port_; onBuilt(); return result; @@ -291,38 +317,39 @@ public com.google.cloud.run.v2.TCPSocketAction buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.TCPSocketAction) { - return mergeFrom((com.google.cloud.run.v2.TCPSocketAction)other); + return mergeFrom((com.google.cloud.run.v2.TCPSocketAction) other); } else { super.mergeFrom(other); return this; @@ -360,17 +387,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - port_ = input.readInt32(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + port_ = input.readInt32(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -381,13 +410,16 @@ public Builder mergeFrom( return this; } - private int port_ ; + private int port_; /** + * + * *
      * Port number to access on the container. Must be in the range 1 to 65535.
      * 
* * int32 port = 1; + * * @return The port. */ @java.lang.Override @@ -395,37 +427,43 @@ public int getPort() { return port_; } /** + * + * *
      * Port number to access on the container. Must be in the range 1 to 65535.
      * 
* * int32 port = 1; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; onChanged(); return this; } /** + * + * *
      * Port number to access on the container. Must be in the range 1 to 65535.
      * 
* * int32 port = 1; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 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); } @@ -435,12 +473,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.TCPSocketAction) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.TCPSocketAction) private static final com.google.cloud.run.v2.TCPSocketAction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.TCPSocketAction(); } @@ -449,27 +487,27 @@ public static com.google.cloud.run.v2.TCPSocketAction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TCPSocketAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TCPSocketAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -484,6 +522,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TCPSocketAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java new file mode 100644 index 000000000000..b2e1afc52b6e --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 TCPSocketActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TCPSocketAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Port number to access on the container. Must be in the range 1 to 65535.
+   * 
+ * + * int32 port = 1; + * + * @return The port. + */ + int getPort(); +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java similarity index 70% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java index 26687ade2529..9b6a2e431d07 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.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/task.proto package com.google.cloud.run.v2; /** + * + * *
  * Task represents a single run of a container to completion.
  * 
* * Protobuf type {@code google.cloud.run.v2.Task} */ -public final class Task extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Task extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Task) TaskOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Task.newBuilder() to construct. private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Task() { name_ = ""; uid_ = ""; @@ -35,39 +53,37 @@ private Task() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Task(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_Task_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.TaskProto.internal_static_google_cloud_run_v2_Task_fieldAccessorTable + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.run.v2.Task.class, com.google.cloud.run.v2.Task.Builder.class); } @@ -75,11 +91,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 Task.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -88,29 +107,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 Task.
    * 
* * 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 { @@ -121,12 +140,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 Task. 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 @@ -135,30 +157,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 Task. 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 { @@ -169,12 +191,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 @@ -183,24 +208,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.TaskProto.internal_static_google_cloud_run_v2_Task_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.TaskProto + .internal_static_google_cloud_run_v2_Task_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_; } @@ -209,6 +233,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
@@ -223,22 +249,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -254,11 +280,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
@@ -274,16 +301,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -299,12 +326,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -312,24 +338,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.TaskProto.internal_static_google_cloud_run_v2_Task_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.TaskProto
+                .internal_static_google_cloud_run_v2_Task_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_;
   }
@@ -338,28 +364,30 @@ public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -367,11 +395,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.
    * 
@@ -379,16 +408,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -396,12 +426,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -411,13 +440,17 @@ public java.lang.String getAnnotationsOrThrow( public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Represents time when the task was created by the job controller.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .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 @@ -425,13 +458,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Represents time when the task was created by the job controller.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .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 @@ -439,13 +476,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Represents time when the task was created by the job controller.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .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() { @@ -455,13 +495,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 27; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. Represents time when the task started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -469,13 +513,17 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. Represents time when the task started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -483,13 +531,16 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. Represents time when the task started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -499,12 +550,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int COMPLETION_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp completionTime_; /** + * + * *
    * Output only. Represents time when the Task was completed. It is not guaranteed to
    * be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completionTime field is set. */ @java.lang.Override @@ -512,25 +568,36 @@ public boolean hasCompletionTime() { return completionTime_ != null; } /** + * + * *
    * Output only. Represents time when the Task was completed. It is not guaranteed to
    * be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompletionTime() { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + return completionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completionTime_; } /** + * + * *
    * Output only. Represents time when the Task was completed. It is not guaranteed to
    * be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { @@ -540,11 +607,15 @@ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { 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 @@ -552,11 +623,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 @@ -564,11 +639,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() { @@ -578,12 +656,16 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 9; 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 = 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 @@ -591,12 +673,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 = 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 @@ -604,12 +690,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 = 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() { @@ -619,13 +708,17 @@ 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. It is only populated as a response to a Delete
    * request.
    * 
* - * .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 @@ -633,13 +726,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 = 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 @@ -647,13 +744,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 = 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() { @@ -663,11 +763,16 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int JOB_FIELD_NUMBER = 12; private volatile java.lang.Object job_; /** + * + * *
    * Output only. The name of the parent Job.
    * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The job. */ @java.lang.Override @@ -676,29 +781,31 @@ public java.lang.String getJob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); job_ = s; return s; } } /** + * + * *
    * Output only. The name of the parent Job.
    * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for job. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobBytes() { + public com.google.protobuf.ByteString getJobBytes() { java.lang.Object ref = job_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); job_ = b; return b; } else { @@ -709,11 +816,16 @@ public java.lang.String getJob() { public static final int EXECUTION_FIELD_NUMBER = 13; private volatile java.lang.Object execution_; /** + * + * *
    * Output only. The name of the parent Execution.
    * 
* - * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The execution. */ @java.lang.Override @@ -722,29 +834,31 @@ public java.lang.String getExecution() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); execution_ = s; return s; } } /** + * + * *
    * Output only. The name of the parent Execution.
    * 
* - * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for execution. */ @java.lang.Override - public com.google.protobuf.ByteString - getExecutionBytes() { + public com.google.protobuf.ByteString getExecutionBytes() { java.lang.Object ref = execution_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); execution_ = b; return b; } else { @@ -755,6 +869,8 @@ public java.lang.String getExecution() { public static final int CONTAINERS_FIELD_NUMBER = 14; private java.util.List containers_; /** + * + * *
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -767,6 +883,8 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -775,11 +893,13 @@ public java.util.List getContainersList() {
    * repeated .google.cloud.run.v2.Container containers = 14;
    */
   @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
    * task.
@@ -792,6 +912,8 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -804,6 +926,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
    * task.
@@ -812,14 +936,15 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
    * repeated .google.cloud.run.v2.Container containers = 14;
    */
   @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 = 15;
   private java.util.List volumes_;
   /**
+   *
+   *
    * 
    * A list of Volumes to make available to containers.
    * 
@@ -831,6 +956,8 @@ public java.util.List getVolumesList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -838,11 +965,13 @@ public java.util.List getVolumesList() { * repeated .google.cloud.run.v2.Volume volumes = 15; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -854,6 +983,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -865,6 +996,8 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -872,19 +1005,21 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * repeated .google.cloud.run.v2.Volume volumes = 15; */ @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 MAX_RETRIES_FIELD_NUMBER = 16; private int maxRetries_; /** + * + * *
    * Number of retries allowed per Task, before marking this Task failed.
    * 
* * int32 max_retries = 16; + * * @return The maxRetries. */ @java.lang.Override @@ -895,6 +1030,8 @@ public int getMaxRetries() { public static final int TIMEOUT_FIELD_NUMBER = 17; private com.google.protobuf.Duration timeout_; /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -902,6 +1039,7 @@ public int getMaxRetries() {
    * 
* * .google.protobuf.Duration timeout = 17; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -909,6 +1047,8 @@ public boolean hasTimeout() { return timeout_ != null; } /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -916,6 +1056,7 @@ public boolean hasTimeout() {
    * 
* * .google.protobuf.Duration timeout = 17; + * * @return The timeout. */ @java.lang.Override @@ -923,6 +1064,8 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -939,6 +1082,8 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
   public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 18;
   private volatile java.lang.Object serviceAccount_;
   /**
+   *
+   *
    * 
    * Email address of the IAM service account associated with the Task of a
    * Job. The service account represents the identity of the
@@ -947,6 +1092,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 18; + * * @return The serviceAccount. */ @java.lang.Override @@ -955,14 +1101,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 Task of a
    * Job. The service account represents the identity of the
@@ -971,16 +1118,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 18; + * * @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 { @@ -991,33 +1137,44 @@ public java.lang.String getServiceAccount() { public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 20; private int executionEnvironment_; /** + * + * *
    * The execution environment being used to host this Task.
    * 
* * .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 Task.
    * 
* * .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 RECONCILING_FIELD_NUMBER = 21; private boolean reconciling_; /** + * + * *
    * Output only. Indicates whether the resource's reconciliation is still in progress.
    * See comments in `Job.reconciling` for additional information on
@@ -1025,6 +1182,7 @@ public java.lang.String getServiceAccount() {
    * 
* * bool reconciling = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1035,77 +1193,99 @@ public boolean getReconciling() { public static final int CONDITIONS_FIELD_NUMBER = 22; private java.util.List conditions_; /** + * + * *
    * Output only. The Condition of this Task, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. The Condition of this Task, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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 Task, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. The Condition of this Task, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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 Task, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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 = 23; private long observedGeneration_; /** + * + * *
    * Output only. The generation of this Task. See comments in `Job.reconciling`
    * for additional information on reconciliation process in Cloud Run.
    * 
* * int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ @java.lang.Override @@ -1116,11 +1296,14 @@ public long getObservedGeneration() { public static final int INDEX_FIELD_NUMBER = 24; private int index_; /** + * + * *
    * Output only. Index of the Task, unique per execution, and beginning at 0.
    * 
* * int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The index. */ @java.lang.Override @@ -1131,12 +1314,15 @@ public int getIndex() { public static final int RETRIED_FIELD_NUMBER = 25; private int retried_; /** + * + * *
    * Output only. The number of times this Task was retried.
    * Tasks are retried when they fail up to the maxRetries limit.
    * 
* * int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The retried. */ @java.lang.Override @@ -1147,11 +1333,16 @@ public int getRetried() { public static final int LAST_ATTEMPT_RESULT_FIELD_NUMBER = 26; private com.google.cloud.run.v2.TaskAttemptResult lastAttemptResult_; /** + * + * *
    * Output only. Result of the last attempt of this Task.
    * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastAttemptResult field is set. */ @java.lang.Override @@ -1159,23 +1350,34 @@ public boolean hasLastAttemptResult() { return lastAttemptResult_ != null; } /** + * + * *
    * Output only. Result of the last attempt of this Task.
    * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastAttemptResult. */ @java.lang.Override public com.google.cloud.run.v2.TaskAttemptResult getLastAttemptResult() { - return lastAttemptResult_ == null ? com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance() : lastAttemptResult_; + return lastAttemptResult_ == null + ? com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance() + : lastAttemptResult_; } /** + * + * *
    * Output only. Result of the last attempt of this Task.
    * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.run.v2.TaskAttemptResultOrBuilder getLastAttemptResultOrBuilder() { @@ -1185,13 +1387,18 @@ public com.google.cloud.run.v2.TaskAttemptResultOrBuilder getLastAttemptResultOr public static final int ENCRYPTION_KEY_FIELD_NUMBER = 28; private volatile java.lang.Object encryptionKey_; /** + * + * *
    * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
    * https://cloud.google.com/run/docs/securing/using-cmek
    * 
* - * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The encryptionKey. */ @java.lang.Override @@ -1200,31 +1407,33 @@ 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; } } /** + * + * *
    * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
    * https://cloud.google.com/run/docs/securing/using-cmek
    * 
* - * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 { @@ -1235,12 +1444,17 @@ public java.lang.String getEncryptionKey() { public static final int VPC_ACCESS_FIELD_NUMBER = 29; private com.google.cloud.run.v2.VpcAccess vpcAccess_; /** + * + * *
    * Output only. VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the vpcAccess field is set. */ @java.lang.Override @@ -1248,12 +1462,17 @@ public boolean hasVpcAccess() { return vpcAccess_ != null; } /** + * + * *
    * Output only. VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The vpcAccess. */ @java.lang.Override @@ -1261,12 +1480,16 @@ public com.google.cloud.run.v2.VpcAccess getVpcAccess() { return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; } /** + * + * *
    * Output only. VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { @@ -1276,12 +1499,15 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { 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 @@ -1290,30 +1516,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 { @@ -1322,6 +1548,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1333,8 +1560,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_); } @@ -1344,18 +1570,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()); } @@ -1392,7 +1610,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, serviceAccount_); } - 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 (reconciling_ != false) { @@ -1441,48 +1661,42 @@ 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 (completionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCompletionTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCompletionTime()); } 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(job_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, job_); @@ -1491,62 +1705,51 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, execution_); } for (int i = 0; i < containers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, containers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, containers_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, volumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, volumes_.get(i)); } if (maxRetries_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(16, maxRetries_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, maxRetries_); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, serviceAccount_); } - 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 (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(21, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, reconciling_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, conditions_.get(i)); } if (observedGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(23, observedGeneration_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(23, observedGeneration_); } if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(24, index_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(24, index_); } if (retried_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(25, retried_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(25, retried_); } if (lastAttemptResult_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getLastAttemptResult()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getLastAttemptResult()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getStartTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, encryptionKey_); } if (vpcAccess_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, getVpcAccess()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getVpcAccess()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); @@ -1559,95 +1762,68 @@ public int getSerializedSize() { @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.Task)) { return super.equals(obj); } com.google.cloud.run.v2.Task other = (com.google.cloud.run.v2.Task) 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 (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasCompletionTime() != other.hasCompletionTime()) return false; if (hasCompletionTime()) { - if (!getCompletionTime() - .equals(other.getCompletionTime())) return false; + if (!getCompletionTime().equals(other.getCompletionTime())) 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 (!getJob() - .equals(other.getJob())) return false; - if (!getExecution() - .equals(other.getExecution())) return false; - if (!getContainersList() - .equals(other.getContainersList())) return false; - if (!getVolumesList() - .equals(other.getVolumesList())) return false; - if (getMaxRetries() - != other.getMaxRetries()) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getJob().equals(other.getJob())) return false; + if (!getExecution().equals(other.getExecution())) return false; + if (!getContainersList().equals(other.getContainersList())) return false; + if (!getVolumesList().equals(other.getVolumesList())) return false; + if (getMaxRetries() != other.getMaxRetries()) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; + if (!getTimeout().equals(other.getTimeout())) return false; } - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (executionEnvironment_ != other.executionEnvironment_) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; - if (getObservedGeneration() - != other.getObservedGeneration()) return false; - if (getIndex() - != other.getIndex()) return false; - if (getRetried() - != other.getRetried()) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getObservedGeneration() != other.getObservedGeneration()) return false; + if (getIndex() != other.getIndex()) return false; + if (getRetried() != other.getRetried()) return false; if (hasLastAttemptResult() != other.hasLastAttemptResult()) return false; if (hasLastAttemptResult()) { - if (!getLastAttemptResult() - .equals(other.getLastAttemptResult())) return false; + if (!getLastAttemptResult().equals(other.getLastAttemptResult())) return false; } - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) 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 (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1664,8 +1840,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(); @@ -1721,15 +1896,13 @@ public int hashCode() { hash = (37 * hash) + EXECUTION_ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + executionEnvironment_; 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) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex(); hash = (37 * hash) + RETRIED_FIELD_NUMBER; @@ -1751,156 +1924,157 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.Task parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.Task parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Task parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Task parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.run.v2.Task parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Task parseFrom( com.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.Task parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.Task parseFrom( - byte[] data, - com.google.protobuf.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.Task 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.Task parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.Task 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.Task parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.Task parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.cloud.run.v2.Task 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.Task parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.Task prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Task represents a single run of a container to completion.
    * 
* * Protobuf type {@code google.cloud.run.v2.Task} */ - public static final class Builder extends - com.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.Task) com.google.cloud.run.v2.TaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_Task_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.TaskProto.internal_static_google_cloud_run_v2_Task_fieldAccessorTable + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.run.v2.Task.class, com.google.cloud.run.v2.Task.Builder.class); } // Construct using com.google.cloud.run.v2.Task.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2013,8 +2187,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_Task_descriptor; } @@ -2134,38 +2307,39 @@ public com.google.cloud.run.v2.Task buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.Task) { - return mergeFrom((com.google.cloud.run.v2.Task)other); + return mergeFrom((com.google.cloud.run.v2.Task) other); } else { super.mergeFrom(other); return this; @@ -2185,10 +2359,8 @@ public Builder mergeFrom(com.google.cloud.run.v2.Task 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()); } @@ -2233,9 +2405,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Task 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_); } @@ -2259,9 +2432,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Task 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_); } @@ -2301,9 +2475,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.Task 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_); } @@ -2358,200 +2533,212 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - uid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - generation_ = input.readInt64(); - - break; - } // case 24 - case 34: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 34 - case 42: { - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAnnotations().getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 58: { - input.readMessage( - getCompletionTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 66: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 74: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 74 - case 82: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 82 - case 98: { - job_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: { - execution_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 114: { - com.google.cloud.run.v2.Container m = - input.readMessage( - com.google.cloud.run.v2.Container.parser(), - extensionRegistry); - if (containersBuilder_ == null) { - ensureContainersIsMutable(); - containers_.add(m); - } else { - containersBuilder_.addMessage(m); - } - break; - } // case 114 - case 122: { - com.google.cloud.run.v2.Volume m = - input.readMessage( - com.google.cloud.run.v2.Volume.parser(), - extensionRegistry); - if (volumesBuilder_ == null) { - ensureVolumesIsMutable(); - volumes_.add(m); - } else { - volumesBuilder_.addMessage(m); - } - break; - } // case 122 - case 128: { - maxRetries_ = input.readInt32(); - - break; - } // case 128 - case 138: { - input.readMessage( - getTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 138 - case 146: { - serviceAccount_ = input.readStringRequireUtf8(); - - break; - } // case 146 - case 160: { - executionEnvironment_ = input.readEnum(); - - break; - } // case 160 - case 168: { - reconciling_ = input.readBool(); - - break; - } // case 168 - case 178: { - com.google.cloud.run.v2.Condition m = - input.readMessage( - com.google.cloud.run.v2.Condition.parser(), - extensionRegistry); - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(m); - } else { - conditionsBuilder_.addMessage(m); - } - break; - } // case 178 - case 184: { - observedGeneration_ = input.readInt64(); - - break; - } // case 184 - case 192: { - index_ = input.readInt32(); - - break; - } // case 192 - case 200: { - retried_ = input.readInt32(); - - break; - } // case 200 - case 210: { - input.readMessage( - getLastAttemptResultFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 210 - case 218: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 218 - case 226: { - encryptionKey_ = input.readStringRequireUtf8(); - - break; - } // case 226 - case 234: { - input.readMessage( - getVpcAccessFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 234 - case 794: { - etag_ = input.readStringRequireUtf8(); - - break; - } // case 794 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + generation_ = input.readInt64(); + + break; + } // case 24 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getCompletionTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 98: + { + job_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + execution_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 114: + { + com.google.cloud.run.v2.Container m = + input.readMessage( + com.google.cloud.run.v2.Container.parser(), extensionRegistry); + if (containersBuilder_ == null) { + ensureContainersIsMutable(); + containers_.add(m); + } else { + containersBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: + { + com.google.cloud.run.v2.Volume m = + input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry); + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(m); + } else { + volumesBuilder_.addMessage(m); + } + break; + } // case 122 + case 128: + { + maxRetries_ = input.readInt32(); + + break; + } // case 128 + case 138: + { + input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 138 + case 146: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 146 + case 160: + { + executionEnvironment_ = input.readEnum(); + + break; + } // case 160 + case 168: + { + reconciling_ = input.readBool(); + + break; + } // case 168 + case 178: + { + com.google.cloud.run.v2.Condition m = + input.readMessage( + com.google.cloud.run.v2.Condition.parser(), extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 178 + case 184: + { + observedGeneration_ = input.readInt64(); + + break; + } // case 184 + case 192: + { + index_ = input.readInt32(); + + break; + } // case 192 + case 200: + { + retried_ = input.readInt32(); + + break; + } // case 200 + case 210: + { + input.readMessage( + getLastAttemptResultFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 210 + case 218: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 218 + case 226: + { + encryptionKey_ = input.readStringRequireUtf8(); + + break; + } // case 226 + case 234: + { + input.readMessage(getVpcAccessFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 234 + case 794: + { + etag_ = input.readStringRequireUtf8(); + + break; + } // case 794 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2561,22 +2748,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The unique name of this Task.
      * 
* * 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; @@ -2585,20 +2775,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The unique name of this Task.
      * 
* * 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 { @@ -2606,54 +2797,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The unique name of this Task.
      * 
* * 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 Task.
      * 
* * 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 Task.
      * 
* * 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; @@ -2661,19 +2859,21 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Server assigned unique identifier for the Task. 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; @@ -2682,21 +2882,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the Task. 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 { @@ -2704,70 +2905,80 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Server assigned unique identifier for the Task. 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 Task. 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 Task. 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 @@ -2775,53 +2986,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(); @@ -2833,6 +3049,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
@@ -2847,22 +3065,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2878,11 +3096,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
@@ -2898,16 +3117,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2923,12 +3143,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2936,11 +3155,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
@@ -2955,23 +3175,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -2986,19 +3204,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * KRM-style labels for the resource.
      * User-provided labels are shared with Google's billing system, so they can
@@ -3013,30 +3232,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();
@@ -3048,28 +3266,30 @@ public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
+     *
+     *
      * 
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -3077,11 +3297,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.
      * 
@@ -3089,16 +3310,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
@@ -3106,12 +3328,11 @@ public java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3119,108 +3340,124 @@ public java.lang.String getAnnotationsOrThrow( } public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + internalGetMutableAnnotations().getMutableMap().put(key, value); return this; } /** + * + * *
      * KRM-style annotations for the resource.
      * 
* * map<string, string> annotations = 5; */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Represents time when the task was created by the job controller.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .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. Represents time when the task was created by the job controller.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .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. Represents time when the task was created by the job controller.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .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) { @@ -3236,16 +3473,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the task was created by the job controller.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .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(); @@ -3256,19 +3496,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Represents time when the task was created by the job controller.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .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; } @@ -3280,13 +3524,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the task was created by the job controller.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .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) { @@ -3300,54 +3548,70 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Represents time when the task was created by the job controller.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .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. Represents time when the task was created by the job controller.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .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. Represents time when the task was created by the job controller.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .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_; @@ -3355,28 +3619,41 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Output only. Represents time when the task started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Output only. Represents time when the task started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -3387,13 +3664,17 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. Represents time when the task started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -3409,16 +3690,19 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the task started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -3429,19 +3713,23 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. Represents time when the task started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -3453,13 +3741,17 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the task started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -3473,54 +3765,68 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. Represents time when the task started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Represents time when the task started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Output only. Represents time when the task started to run.
      * It is not guaranteed to be set in happens-before order across separate
      * operations.
      * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 27 [(.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> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -3528,42 +3834,61 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp completionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completionTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completionTimeBuilder_; /** + * + * *
      * Output only. Represents time when the Task was completed. It is not guaranteed to
      * be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completionTime field is set. */ public boolean hasCompletionTime() { return completionTimeBuilder_ != null || completionTime_ != null; } /** + * + * *
      * Output only. Represents time when the Task was completed. It is not guaranteed to
      * be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completionTime. */ public com.google.protobuf.Timestamp getCompletionTime() { if (completionTimeBuilder_ == null) { - return completionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + return completionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completionTime_; } else { return completionTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Represents time when the Task was completed. It is not guaranteed to
      * be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCompletionTime(com.google.protobuf.Timestamp value) { if (completionTimeBuilder_ == null) { @@ -3579,15 +3904,18 @@ public Builder setCompletionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the Task was completed. It is not guaranteed to
      * be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCompletionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCompletionTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (completionTimeBuilder_ == null) { completionTime_ = builderForValue.build(); onChanged(); @@ -3598,18 +3926,24 @@ public Builder setCompletionTime( return this; } /** + * + * *
      * Output only. Represents time when the Task was completed. It is not guaranteed to
      * be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { if (completionTimeBuilder_ == null) { if (completionTime_ != null) { completionTime_ = - com.google.protobuf.Timestamp.newBuilder(completionTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(completionTime_) + .mergeFrom(value) + .buildPartial(); } else { completionTime_ = value; } @@ -3621,12 +3955,16 @@ public Builder mergeCompletionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Represents time when the Task was completed. It is not guaranteed to
      * be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCompletionTime() { if (completionTimeBuilder_ == null) { @@ -3640,51 +3978,67 @@ public Builder clearCompletionTime() { return this; } /** + * + * *
      * Output only. Represents time when the Task was completed. It is not guaranteed to
      * be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCompletionTimeBuilder() { - + onChanged(); return getCompletionTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Represents time when the Task was completed. It is not guaranteed to
      * be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { if (completionTimeBuilder_ != null) { return completionTimeBuilder_.getMessageOrBuilder(); } else { - return completionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : completionTime_; + return completionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completionTime_; } } /** + * + * *
      * Output only. Represents time when the Task was completed. It is not guaranteed to
      * be set in happens-before order across separate operations.
      * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_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> getCompletionTimeFieldBuilder() { if (completionTimeBuilder_ == null) { - completionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCompletionTime(), - getParentForChildren(), - isClean()); + completionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompletionTime(), getParentForChildren(), isClean()); completionTime_ = null; } return completionTimeBuilder_; @@ -3692,39 +4046,58 @@ public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder() { 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) { @@ -3740,14 +4113,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(); @@ -3758,17 +4134,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; } @@ -3780,11 +4160,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) { @@ -3798,48 +4182,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_; @@ -3847,42 +4247,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 = 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. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .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. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .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) { @@ -3898,15 +4317,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 = 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(); @@ -3917,18 +4339,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 = 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; } @@ -3940,12 +4366,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 = 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) { @@ -3959,51 +4389,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 = 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. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .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. For a deleted resource, the deletion time. It is only
      * populated as a response to a Delete request.
      * 
* - * .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_; @@ -4011,45 +4457,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 = 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. It is only populated as a response to a Delete
      * request.
      * 
* - * .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. It is only populated as a response to a Delete
      * request.
      * 
* - * .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) { @@ -4065,16 +4530,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 = 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(); @@ -4085,19 +4553,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 = 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; } @@ -4109,13 +4581,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 = 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) { @@ -4129,54 +4605,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 = 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. It is only populated as a response to a Delete
      * request.
      * 
* - * .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. It is only populated as a response to a Delete
      * request.
      * 
* - * .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_; @@ -4184,18 +4676,22 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object job_ = ""; /** + * + * *
      * Output only. The name of the parent Job.
      * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The job. */ public java.lang.String getJob() { java.lang.Object ref = job_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); job_ = s; return s; @@ -4204,20 +4700,23 @@ public java.lang.String getJob() { } } /** + * + * *
      * Output only. The name of the parent Job.
      * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for job. */ - public com.google.protobuf.ByteString - getJobBytes() { + public com.google.protobuf.ByteString getJobBytes() { java.lang.Object ref = job_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); job_ = b; return b; } else { @@ -4225,54 +4724,67 @@ public java.lang.String getJob() { } } /** + * + * *
      * Output only. The name of the parent Job.
      * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The job to set. * @return This builder for chaining. */ - public Builder setJob( - java.lang.String value) { + public Builder setJob(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + job_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the parent Job.
      * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearJob() { - + job_ = getDefaultInstance().getJob(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the parent Job.
      * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for job to set. * @return This builder for chaining. */ - public Builder setJobBytes( - com.google.protobuf.ByteString value) { + public Builder setJobBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + job_ = value; onChanged(); return this; @@ -4280,18 +4792,22 @@ public Builder setJobBytes( private java.lang.Object execution_ = ""; /** + * + * *
      * Output only. The name of the parent Execution.
      * 
* - * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The execution. */ public java.lang.String getExecution() { java.lang.Object ref = execution_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); execution_ = s; return s; @@ -4300,20 +4816,23 @@ public java.lang.String getExecution() { } } /** + * + * *
      * Output only. The name of the parent Execution.
      * 
* - * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for execution. */ - public com.google.protobuf.ByteString - getExecutionBytes() { + public com.google.protobuf.ByteString getExecutionBytes() { java.lang.Object ref = execution_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); execution_ = b; return b; } else { @@ -4321,72 +4840,91 @@ public java.lang.String getExecution() { } } /** + * + * *
      * Output only. The name of the parent Execution.
      * 
* - * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The execution to set. * @return This builder for chaining. */ - public Builder setExecution( - java.lang.String value) { + public Builder setExecution(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + execution_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the parent Execution.
      * 
* - * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearExecution() { - + execution_ = getDefaultInstance().getExecution(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the parent Execution.
      * 
* - * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for execution to set. * @return This builder for chaining. */ - public Builder setExecutionBytes( - com.google.protobuf.ByteString value) { + public Builder setExecutionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + execution_ = 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
      * task.
@@ -4402,6 +4940,8 @@ public java.util.List getContainersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4417,6 +4957,8 @@ public int getContainersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4432,6 +4974,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4439,8 +4983,7 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 14;
      */
-    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();
@@ -4454,6 +4997,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4473,6 +5018,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4494,6 +5041,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
      * task.
@@ -4501,8 +5050,7 @@ public Builder addContainers(com.google.cloud.run.v2.Container value) {
      *
      * repeated .google.cloud.run.v2.Container containers = 14;
      */
-    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();
@@ -4516,6 +5064,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4523,8 +5073,7 @@ public Builder addContainers(
      *
      * repeated .google.cloud.run.v2.Container containers = 14;
      */
-    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());
@@ -4535,6 +5084,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4554,6 +5105,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4565,8 +5118,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);
@@ -4574,6 +5126,8 @@ public Builder addAllContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4592,6 +5146,8 @@ public Builder clearContainers() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4610,6 +5166,8 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4617,11 +5175,12 @@ public Builder removeContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 14;
      */
-    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
      * task.
@@ -4629,14 +5188,16 @@ public com.google.cloud.run.v2.Container.Builder getContainersBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 14;
      */
-    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
      * task.
@@ -4644,8 +5205,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 14;
      */
-    public java.util.List 
-         getContainersOrBuilderList() {
+    public java.util.List
+        getContainersOrBuilderList() {
       if (containersBuilder_ != null) {
         return containersBuilder_.getMessageOrBuilderList();
       } else {
@@ -4653,6 +5214,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -4661,10 +5224,12 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
      * repeated .google.cloud.run.v2.Container containers = 14;
      */
     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
      * task.
@@ -4672,12 +5237,13 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
      *
      * repeated .google.cloud.run.v2.Container containers = 14;
      */
-    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
      * task.
@@ -4685,38 +5251,46 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 14;
      */
-    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.
      * 
@@ -4731,6 +5305,8 @@ public java.util.List getVolumesList() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4745,6 +5321,8 @@ public int getVolumesCount() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4759,14 +5337,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 = 15; */ - 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(); @@ -4780,14 +5359,15 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 15; */ - 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()); @@ -4798,6 +5378,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4818,14 +5400,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 = 15; */ - 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(); @@ -4839,14 +5422,15 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 15; */ - 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()); @@ -4857,14 +5441,15 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 15; */ - 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()); @@ -4875,6 +5460,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4885,8 +5472,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); @@ -4894,6 +5480,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4911,6 +5499,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4928,39 +5518,44 @@ public Builder removeVolumes(int index) { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 15; */ - 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 = 15; */ - 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 = 15; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -4968,6 +5563,8 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -4975,54 +5572,62 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( * repeated .google.cloud.run.v2.Volume volumes = 15; */ 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 = 15; */ - 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 = 15; */ - 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 int maxRetries_ ; + private int maxRetries_; /** + * + * *
      * Number of retries allowed per Task, before marking this Task failed.
      * 
* * int32 max_retries = 16; + * * @return The maxRetries. */ @java.lang.Override @@ -5030,30 +5635,36 @@ public int getMaxRetries() { return maxRetries_; } /** + * + * *
      * Number of retries allowed per Task, before marking this Task failed.
      * 
* * int32 max_retries = 16; + * * @param value The maxRetries to set. * @return This builder for chaining. */ public Builder setMaxRetries(int value) { - + maxRetries_ = value; onChanged(); return this; } /** + * + * *
      * Number of retries allowed per Task, before marking this Task failed.
      * 
* * int32 max_retries = 16; + * * @return This builder for chaining. */ public Builder clearMaxRetries() { - + maxRetries_ = 0; onChanged(); return this; @@ -5061,8 +5672,13 @@ public Builder clearMaxRetries() { 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 duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -5070,12 +5686,15 @@ public Builder clearMaxRetries() {
      * 
* * .google.protobuf.Duration timeout = 17; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** + * + * *
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -5083,6 +5702,7 @@ public boolean hasTimeout() {
      * 
* * .google.protobuf.Duration timeout = 17; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -5093,6 +5713,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -5115,6 +5737,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -5123,8 +5747,7 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration timeout = 17;
      */
-    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();
@@ -5135,6 +5758,8 @@ public Builder setTimeout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -5147,7 +5772,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;
         }
@@ -5159,6 +5784,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -5179,6 +5806,8 @@ public Builder clearTimeout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -5188,11 +5817,13 @@ public Builder clearTimeout() {
      * .google.protobuf.Duration timeout = 17;
      */
     public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
-      
+
       onChanged();
       return getTimeoutFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -5205,11 +5836,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 duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -5219,14 +5851,17 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * .google.protobuf.Duration timeout = 17;
      */
     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_;
@@ -5234,6 +5869,8 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
 
     private java.lang.Object serviceAccount_ = "";
     /**
+     *
+     *
      * 
      * Email address of the IAM service account associated with the Task of a
      * Job. The service account represents the identity of the
@@ -5242,13 +5879,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * 
* * string service_account = 18; + * * @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; @@ -5257,6 +5894,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Email address of the IAM service account associated with the Task of a
      * Job. The service account represents the identity of the
@@ -5265,15 +5904,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 18; + * * @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 { @@ -5281,6 +5919,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Email address of the IAM service account associated with the Task of a
      * Job. The service account represents the identity of the
@@ -5289,20 +5929,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 18; + * * @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 Task of a
      * Job. The service account represents the identity of the
@@ -5311,15 +5953,18 @@ public Builder setServiceAccount(
      * 
* * string service_account = 18; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * Email address of the IAM service account associated with the Task of a
      * Job. The service account represents the identity of the
@@ -5328,16 +5973,16 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 18; + * * @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; @@ -5345,51 +5990,65 @@ public Builder setServiceAccountBytes( private int executionEnvironment_ = 0; /** + * + * *
      * The execution environment being used to host this Task.
      * 
* * .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 Task.
      * 
* * .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 Task.
      * 
* * .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 Task.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @param value The executionEnvironment to set. * @return This builder for chaining. */ @@ -5397,28 +6056,33 @@ 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 Task.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return This builder for chaining. */ public Builder clearExecutionEnvironment() { - + executionEnvironment_ = 0; onChanged(); return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether the resource's reconciliation is still in progress.
      * See comments in `Job.reconciling` for additional information on
@@ -5426,6 +6090,7 @@ public Builder clearExecutionEnvironment() {
      * 
* * bool reconciling = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -5433,6 +6098,8 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether the resource's reconciliation is still in progress.
      * See comments in `Job.reconciling` for additional information on
@@ -5440,16 +6107,19 @@ public boolean getReconciling() {
      * 
* * bool reconciling = 21 [(.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 `Job.reconciling` for additional information on
@@ -5457,34 +6127,43 @@ public Builder setReconciling(boolean value) {
      * 
* * bool reconciling = 21 [(.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 Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -5494,12 +6173,16 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -5509,12 +6192,16 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.Condition getConditions(int index) { if (conditionsBuilder_ == null) { @@ -5524,15 +6211,18 @@ public com.google.cloud.run.v2.Condition getConditions(int index) { } } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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(); @@ -5546,12 +6236,16 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -5565,12 +6259,16 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.cloud.run.v2.Condition value) { if (conditionsBuilder_ == null) { @@ -5586,15 +6284,18 @@ public Builder addConditions(com.google.cloud.run.v2.Condition value) { return this; } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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(); @@ -5608,15 +6309,18 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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()); @@ -5627,12 +6331,16 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue) { @@ -5646,19 +6354,22 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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); @@ -5666,12 +6377,16 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -5684,12 +6399,16 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -5702,42 +6421,53 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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 Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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 Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -5745,65 +6475,81 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. The Condition of this Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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 Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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 Task, containing its readiness status, and
      * detailed error information in case it did not reach the desired state.
      * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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 Task. See comments in `Job.reconciling`
      * for additional information on reconciliation process in Cloud Run.
      * 
* * int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ @java.lang.Override @@ -5811,44 +6557,53 @@ public long getObservedGeneration() { return observedGeneration_; } /** + * + * *
      * Output only. The generation of this Task. See comments in `Job.reconciling`
      * for additional information on reconciliation process in Cloud Run.
      * 
* * int64 observed_generation = 23 [(.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 Task. See comments in `Job.reconciling`
      * for additional information on reconciliation process in Cloud Run.
      * 
* * int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearObservedGeneration() { - + observedGeneration_ = 0L; onChanged(); return this; } - private int index_ ; + private int index_; /** + * + * *
      * Output only. Index of the Task, unique per execution, and beginning at 0.
      * 
* * int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The index. */ @java.lang.Override @@ -5856,43 +6611,52 @@ public int getIndex() { return index_; } /** + * + * *
      * Output only. Index of the Task, unique per execution, and beginning at 0.
      * 
* * int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(int value) { - + index_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Index of the Task, unique per execution, and beginning at 0.
      * 
* * int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIndex() { - + index_ = 0; onChanged(); return this; } - private int retried_ ; + private int retried_; /** + * + * *
      * Output only. The number of times this Task was retried.
      * Tasks are retried when they fail up to the maxRetries limit.
      * 
* * int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The retried. */ @java.lang.Override @@ -5900,32 +6664,38 @@ public int getRetried() { return retried_; } /** + * + * *
      * Output only. The number of times this Task was retried.
      * Tasks are retried when they fail up to the maxRetries limit.
      * 
* * int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The retried to set. * @return This builder for chaining. */ public Builder setRetried(int value) { - + retried_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of times this Task was retried.
      * Tasks are retried when they fail up to the maxRetries limit.
      * 
* * int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRetried() { - + retried_ = 0; onChanged(); return this; @@ -5933,39 +6703,58 @@ public Builder clearRetried() { private com.google.cloud.run.v2.TaskAttemptResult lastAttemptResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.TaskAttemptResult, com.google.cloud.run.v2.TaskAttemptResult.Builder, com.google.cloud.run.v2.TaskAttemptResultOrBuilder> lastAttemptResultBuilder_; + com.google.cloud.run.v2.TaskAttemptResult, + com.google.cloud.run.v2.TaskAttemptResult.Builder, + com.google.cloud.run.v2.TaskAttemptResultOrBuilder> + lastAttemptResultBuilder_; /** + * + * *
      * Output only. Result of the last attempt of this Task.
      * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastAttemptResult field is set. */ public boolean hasLastAttemptResult() { return lastAttemptResultBuilder_ != null || lastAttemptResult_ != null; } /** + * + * *
      * Output only. Result of the last attempt of this Task.
      * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastAttemptResult. */ public com.google.cloud.run.v2.TaskAttemptResult getLastAttemptResult() { if (lastAttemptResultBuilder_ == null) { - return lastAttemptResult_ == null ? com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance() : lastAttemptResult_; + return lastAttemptResult_ == null + ? com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance() + : lastAttemptResult_; } else { return lastAttemptResultBuilder_.getMessage(); } } /** + * + * *
      * Output only. Result of the last attempt of this Task.
      * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastAttemptResult(com.google.cloud.run.v2.TaskAttemptResult value) { if (lastAttemptResultBuilder_ == null) { @@ -5981,11 +6770,15 @@ public Builder setLastAttemptResult(com.google.cloud.run.v2.TaskAttemptResult va return this; } /** + * + * *
      * Output only. Result of the last attempt of this Task.
      * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastAttemptResult( com.google.cloud.run.v2.TaskAttemptResult.Builder builderForValue) { @@ -5999,17 +6792,23 @@ public Builder setLastAttemptResult( return this; } /** + * + * *
      * Output only. Result of the last attempt of this Task.
      * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeLastAttemptResult(com.google.cloud.run.v2.TaskAttemptResult value) { if (lastAttemptResultBuilder_ == null) { if (lastAttemptResult_ != null) { lastAttemptResult_ = - com.google.cloud.run.v2.TaskAttemptResult.newBuilder(lastAttemptResult_).mergeFrom(value).buildPartial(); + com.google.cloud.run.v2.TaskAttemptResult.newBuilder(lastAttemptResult_) + .mergeFrom(value) + .buildPartial(); } else { lastAttemptResult_ = value; } @@ -6021,11 +6820,15 @@ public Builder mergeLastAttemptResult(com.google.cloud.run.v2.TaskAttemptResult return this; } /** + * + * *
      * Output only. Result of the last attempt of this Task.
      * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLastAttemptResult() { if (lastAttemptResultBuilder_ == null) { @@ -6039,48 +6842,64 @@ public Builder clearLastAttemptResult() { return this; } /** + * + * *
      * Output only. Result of the last attempt of this Task.
      * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.TaskAttemptResult.Builder getLastAttemptResultBuilder() { - + onChanged(); return getLastAttemptResultFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Result of the last attempt of this Task.
      * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.TaskAttemptResultOrBuilder getLastAttemptResultOrBuilder() { if (lastAttemptResultBuilder_ != null) { return lastAttemptResultBuilder_.getMessageOrBuilder(); } else { - return lastAttemptResult_ == null ? - com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance() : lastAttemptResult_; + return lastAttemptResult_ == null + ? com.google.cloud.run.v2.TaskAttemptResult.getDefaultInstance() + : lastAttemptResult_; } } /** + * + * *
      * Output only. Result of the last attempt of this Task.
      * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.TaskAttemptResult, com.google.cloud.run.v2.TaskAttemptResult.Builder, com.google.cloud.run.v2.TaskAttemptResultOrBuilder> + com.google.cloud.run.v2.TaskAttemptResult, + com.google.cloud.run.v2.TaskAttemptResult.Builder, + com.google.cloud.run.v2.TaskAttemptResultOrBuilder> getLastAttemptResultFieldBuilder() { if (lastAttemptResultBuilder_ == null) { - lastAttemptResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.TaskAttemptResult, com.google.cloud.run.v2.TaskAttemptResult.Builder, com.google.cloud.run.v2.TaskAttemptResultOrBuilder>( - getLastAttemptResult(), - getParentForChildren(), - isClean()); + lastAttemptResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.TaskAttemptResult, + com.google.cloud.run.v2.TaskAttemptResult.Builder, + com.google.cloud.run.v2.TaskAttemptResultOrBuilder>( + getLastAttemptResult(), getParentForChildren(), isClean()); lastAttemptResult_ = null; } return lastAttemptResultBuilder_; @@ -6088,20 +6907,24 @@ public com.google.cloud.run.v2.TaskAttemptResultOrBuilder getLastAttemptResultOr private java.lang.Object encryptionKey_ = ""; /** + * + * *
      * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
      * https://cloud.google.com/run/docs/securing/using-cmek
      * 
* - * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; @@ -6110,22 +6933,25 @@ public java.lang.String getEncryptionKey() { } } /** + * + * *
      * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
      * https://cloud.google.com/run/docs/securing/using-cmek
      * 
* - * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 { @@ -6133,60 +6959,73 @@ public java.lang.String getEncryptionKey() { } } /** + * + * *
      * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
      * https://cloud.google.com/run/docs/securing/using-cmek
      * 
* - * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; } /** + * + * *
      * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
      * https://cloud.google.com/run/docs/securing/using-cmek
      * 
* - * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearEncryptionKey() { - + encryptionKey_ = getDefaultInstance().getEncryptionKey(); onChanged(); return this; } /** + * + * *
      * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
      * this container image. For more information, go to
      * https://cloud.google.com/run/docs/securing/using-cmek
      * 
* - * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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; @@ -6194,42 +7033,61 @@ public Builder setEncryptionKeyBytes( 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_; /** + * + * *
      * Output only. VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the vpcAccess field is set. */ public boolean hasVpcAccess() { return vpcAccessBuilder_ != null || vpcAccess_ != null; } /** + * + * *
      * Output only. VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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(); } } /** + * + * *
      * Output only. VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) { if (vpcAccessBuilder_ == null) { @@ -6245,15 +7103,18 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) { return this; } /** + * + * *
      * Output only. VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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(); @@ -6264,18 +7125,24 @@ public Builder setVpcAccess( return this; } /** + * + * *
      * Output only. VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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; } @@ -6287,12 +7154,16 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) { return this; } /** + * + * *
      * Output only. VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearVpcAccess() { if (vpcAccessBuilder_ == null) { @@ -6306,51 +7177,67 @@ public Builder clearVpcAccess() { return this; } /** + * + * *
      * Output only. VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() { - + onChanged(); return getVpcAccessFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -6358,19 +7245,21 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { 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; @@ -6379,21 +7268,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 { @@ -6401,64 +7291,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); } @@ -6468,12 +7365,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Task) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Task) private static final com.google.cloud.run.v2.Task DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.Task(); } @@ -6482,27 +7379,27 @@ public static com.google.cloud.run.v2.Task getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Task parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Task parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6517,6 +7414,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.Task getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java similarity index 71% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java index 302b3c73d27b..5f75c97c56d6 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResult.java @@ -1,61 +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/task.proto package com.google.cloud.run.v2; /** + * + * *
  * Result of a task attempt.
  * 
* * Protobuf type {@code google.cloud.run.v2.TaskAttemptResult} */ -public final class TaskAttemptResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TaskAttemptResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.TaskAttemptResult) TaskAttemptResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TaskAttemptResult.newBuilder() to construct. private TaskAttemptResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TaskAttemptResult() { - } + + private TaskAttemptResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TaskAttemptResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_TaskAttemptResult_fieldAccessorTable + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_TaskAttemptResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.TaskAttemptResult.class, com.google.cloud.run.v2.TaskAttemptResult.Builder.class); + com.google.cloud.run.v2.TaskAttemptResult.class, + com.google.cloud.run.v2.TaskAttemptResult.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** + * + * *
    * Output only. The status of this attempt.
    * If the status code is OK, then the attempt succeeded.
    * 
* * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the status field is set. */ @java.lang.Override @@ -63,12 +84,15 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * Output only. The status of this attempt.
    * If the status code is OK, then the attempt succeeded.
    * 
* * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The status. */ @java.lang.Override @@ -76,6 +100,8 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
    * Output only. The status of this attempt.
    * If the status code is OK, then the attempt succeeded.
@@ -91,6 +117,8 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
   public static final int EXIT_CODE_FIELD_NUMBER = 2;
   private int exitCode_;
   /**
+   *
+   *
    * 
    * Output only. The exit code of this attempt.
    * This may be unset if the container was unable to exit cleanly with a code
@@ -99,6 +127,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
    * 
* * int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The exitCode. */ @java.lang.Override @@ -107,6 +136,7 @@ public int getExitCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +148,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 (status_ != null) { output.writeMessage(1, getStatus()); } @@ -136,12 +165,10 @@ public int getSerializedSize() { size = 0; if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStatus()); } if (exitCode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, exitCode_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, exitCode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,20 +178,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.TaskAttemptResult)) { return super.equals(obj); } - com.google.cloud.run.v2.TaskAttemptResult other = (com.google.cloud.run.v2.TaskAttemptResult) obj; + com.google.cloud.run.v2.TaskAttemptResult other = + (com.google.cloud.run.v2.TaskAttemptResult) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } - if (getExitCode() - != other.getExitCode()) return false; + if (getExitCode() != other.getExitCode()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,130 +213,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.TaskAttemptResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( com.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.TaskAttemptResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.TaskAttemptResult parseFrom( - byte[] data, - com.google.protobuf.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.TaskAttemptResult 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.TaskAttemptResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.TaskAttemptResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.TaskAttemptResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.TaskAttemptResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.TaskAttemptResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.TaskAttemptResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.TaskAttemptResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Result of a task attempt.
    * 
* * Protobuf type {@code google.cloud.run.v2.TaskAttemptResult} */ - public static final class Builder extends - com.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.TaskAttemptResult) com.google.cloud.run.v2.TaskAttemptResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_TaskAttemptResult_fieldAccessorTable + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_TaskAttemptResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.TaskAttemptResult.class, com.google.cloud.run.v2.TaskAttemptResult.Builder.class); + com.google.cloud.run.v2.TaskAttemptResult.class, + com.google.cloud.run.v2.TaskAttemptResult.Builder.class); } // Construct using com.google.cloud.run.v2.TaskAttemptResult.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +358,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.TaskProto.internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.TaskProto + .internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; } @java.lang.Override @@ -347,7 +379,8 @@ public com.google.cloud.run.v2.TaskAttemptResult build() { @java.lang.Override public com.google.cloud.run.v2.TaskAttemptResult buildPartial() { - com.google.cloud.run.v2.TaskAttemptResult result = new com.google.cloud.run.v2.TaskAttemptResult(this); + com.google.cloud.run.v2.TaskAttemptResult result = + new com.google.cloud.run.v2.TaskAttemptResult(this); if (statusBuilder_ == null) { result.status_ = status_; } else { @@ -362,38 +395,39 @@ public com.google.cloud.run.v2.TaskAttemptResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.TaskAttemptResult) { - return mergeFrom((com.google.cloud.run.v2.TaskAttemptResult)other); + return mergeFrom((com.google.cloud.run.v2.TaskAttemptResult) other); } else { super.mergeFrom(other); return this; @@ -434,24 +468,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 16: { - exitCode_ = input.readInt32(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + exitCode_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,26 +499,33 @@ public Builder mergeFrom( private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; /** + * + * *
      * Output only. The status of this attempt.
      * If the status code is OK, then the attempt succeeded.
      * 
* * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** + * + * *
      * Output only. The status of this attempt.
      * If the status code is OK, then the attempt succeeded.
      * 
* * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -494,6 +536,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
      * Output only. The status of this attempt.
      * If the status code is OK, then the attempt succeeded.
@@ -515,6 +559,8 @@ public Builder setStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The status of this attempt.
      * If the status code is OK, then the attempt succeeded.
@@ -522,8 +568,7 @@ public Builder setStatus(com.google.rpc.Status value) {
      *
      * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    public Builder setStatus(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
       if (statusBuilder_ == null) {
         status_ = builderForValue.build();
         onChanged();
@@ -534,6 +579,8 @@ public Builder setStatus(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The status of this attempt.
      * If the status code is OK, then the attempt succeeded.
@@ -544,8 +591,7 @@ public Builder setStatus(
     public Builder mergeStatus(com.google.rpc.Status value) {
       if (statusBuilder_ == null) {
         if (status_ != null) {
-          status_ =
-            com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
+          status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
         } else {
           status_ = value;
         }
@@ -557,6 +603,8 @@ public Builder mergeStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The status of this attempt.
      * If the status code is OK, then the attempt succeeded.
@@ -576,6 +624,8 @@ public Builder clearStatus() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The status of this attempt.
      * If the status code is OK, then the attempt succeeded.
@@ -584,11 +634,13 @@ public Builder clearStatus() {
      * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     public com.google.rpc.Status.Builder getStatusBuilder() {
-      
+
       onChanged();
       return getStatusFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. The status of this attempt.
      * If the status code is OK, then the attempt succeeded.
@@ -600,11 +652,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
       if (statusBuilder_ != null) {
         return statusBuilder_.getMessageOrBuilder();
       } else {
-        return status_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : status_;
+        return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. The status of this attempt.
      * If the status code is OK, then the attempt succeeded.
@@ -613,21 +666,23 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
      * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getStatusFieldBuilder() {
       if (statusBuilder_ == null) {
-        statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getStatus(),
-                getParentForChildren(),
-                isClean());
+        statusBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean());
         status_ = null;
       }
       return statusBuilder_;
     }
 
-    private int exitCode_ ;
+    private int exitCode_;
     /**
+     *
+     *
      * 
      * Output only. The exit code of this attempt.
      * This may be unset if the container was unable to exit cleanly with a code
@@ -636,6 +691,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
      * 
* * int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The exitCode. */ @java.lang.Override @@ -643,6 +699,8 @@ public int getExitCode() { return exitCode_; } /** + * + * *
      * Output only. The exit code of this attempt.
      * This may be unset if the container was unable to exit cleanly with a code
@@ -651,16 +709,19 @@ public int getExitCode() {
      * 
* * int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The exitCode to set. * @return This builder for chaining. */ public Builder setExitCode(int value) { - + exitCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The exit code of this attempt.
      * This may be unset if the container was unable to exit cleanly with a code
@@ -669,17 +730,18 @@ public Builder setExitCode(int value) {
      * 
* * int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearExitCode() { - + exitCode_ = 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); } @@ -689,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.TaskAttemptResult) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.TaskAttemptResult) private static final com.google.cloud.run.v2.TaskAttemptResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.TaskAttemptResult(); } @@ -703,27 +765,27 @@ public static com.google.cloud.run.v2.TaskAttemptResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskAttemptResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskAttemptResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,6 +800,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TaskAttemptResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java similarity index 68% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java index 2582b521e527..780e41b09879 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskAttemptResultOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/task.proto package com.google.cloud.run.v2; -public interface TaskAttemptResultOrBuilder extends +public interface TaskAttemptResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TaskAttemptResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The status of this attempt.
    * If the status code is OK, then the attempt succeeded.
    * 
* * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * Output only. The status of this attempt.
    * If the status code is OK, then the attempt succeeded.
    * 
* * .google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
    * Output only. The status of this attempt.
    * If the status code is OK, then the attempt succeeded.
@@ -38,6 +62,8 @@ public interface TaskAttemptResultOrBuilder extends
   com.google.rpc.StatusOrBuilder getStatusOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The exit code of this attempt.
    * This may be unset if the container was unable to exit cleanly with a code
@@ -46,6 +72,7 @@ public interface TaskAttemptResultOrBuilder extends
    * 
* * int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The exitCode. */ int getExitCode(); diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java similarity index 77% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java index a8baaa32c293..6d7c411acff3 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.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/task.proto package com.google.cloud.run.v2; -public interface TaskOrBuilder extends +public interface TaskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Task) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The unique name of this Task.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The unique name of this Task.
    * 
* * 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 Task. 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 Task. 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 TaskOrBuilder 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 TaskOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -114,9 +145,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -133,11 +165,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * KRM-style labels for the resource.
    * User-provided labels are shared with Google's billing system, so they can
@@ -152,11 +186,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * KRM-style annotations for the resource.
    * 
@@ -165,30 +199,31 @@ java.lang.String getLabelsOrThrow( */ int getAnnotationsCount(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * KRM-style annotations for the resource.
    * 
@@ -197,248 +232,337 @@ boolean containsAnnotations( */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * KRM-style annotations for the resource.
    * 
* * map<string, string> annotations = 5; */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Output only. Represents time when the task was created by the job controller.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .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. Represents time when the task was created by the job controller.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .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. Represents time when the task was created by the job controller.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .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. Represents time when the task started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. Represents time when the task started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. Represents time when the task started to run.
    * It is not guaranteed to be set in happens-before order across separate
    * operations.
    * 
* - * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Represents time when the Task was completed. It is not guaranteed to
    * be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the completionTime field is set. */ boolean hasCompletionTime(); /** + * + * *
    * Output only. Represents time when the Task was completed. It is not guaranteed to
    * be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The completionTime. */ com.google.protobuf.Timestamp getCompletionTime(); /** + * + * *
    * Output only. Represents time when the Task was completed. It is not guaranteed to
    * be set in happens-before order across separate operations.
    * 
* - * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder(); /** + * + * *
    * 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. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .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. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .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. For a deleted resource, the deletion time. It is only
    * populated as a response to a Delete request.
    * 
* - * .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. It is only populated as a response to a Delete
    * request.
    * 
* - * .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. It is only populated as a response to a Delete
    * request.
    * 
* - * .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. It is only populated as a response to a Delete
    * request.
    * 
* - * .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. The name of the parent Job.
    * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The job. */ java.lang.String getJob(); /** + * + * *
    * Output only. The name of the parent Job.
    * 
* - * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for job. */ - com.google.protobuf.ByteString - getJobBytes(); + com.google.protobuf.ByteString getJobBytes(); /** + * + * *
    * Output only. The name of the parent Execution.
    * 
* - * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The execution. */ java.lang.String getExecution(); /** + * + * *
    * Output only. The name of the parent Execution.
    * 
* - * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for execution. */ - com.google.protobuf.ByteString - getExecutionBytes(); + com.google.protobuf.ByteString getExecutionBytes(); /** + * + * *
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -446,9 +570,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 14;
    */
-  java.util.List 
-      getContainersList();
+  java.util.List getContainersList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -458,6 +583,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
    * task.
@@ -467,6 +594,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getContainersCount();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -474,9 +603,10 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 14;
    */
-  java.util.List 
-      getContainersOrBuilderList();
+  java.util.List getContainersOrBuilderList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -484,19 +614,21 @@ java.lang.String getAnnotationsOrThrow(
    *
    * repeated .google.cloud.run.v2.Container containers = 14;
    */
-  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 = 15; */ - java.util.List - getVolumesList(); + java.util.List getVolumesList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -505,6 +637,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.
    * 
@@ -513,35 +647,42 @@ 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 = 15; */ - java.util.List - getVolumesOrBuilderList(); + java.util.List getVolumesOrBuilderList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 15; */ - com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index); + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); /** + * + * *
    * Number of retries allowed per Task, before marking this Task failed.
    * 
* * int32 max_retries = 16; + * * @return The maxRetries. */ int getMaxRetries(); /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -549,10 +690,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * .google.protobuf.Duration timeout = 17; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -560,10 +704,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * .google.protobuf.Duration timeout = 17; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -575,6 +722,8 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
   com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
 
   /**
+   *
+   *
    * 
    * Email address of the IAM service account associated with the Task of a
    * Job. The service account represents the identity of the
@@ -583,10 +732,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string service_account = 18; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Email address of the IAM service account associated with the Task of a
    * Job. The service account represents the identity of the
@@ -595,31 +747,39 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string service_account = 18; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * The execution environment being used to host this Task.
    * 
* * .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 Task.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20; + * * @return The executionEnvironment. */ com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment(); /** + * + * *
    * Output only. Indicates whether the resource's reconciliation is still in progress.
    * See comments in `Job.reconciling` for additional information on
@@ -627,191 +787,260 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * bool reconciling = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. The Condition of this Task, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. The Condition of this Task, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.Condition getConditions(int index); /** + * + * *
    * Output only. The Condition of this Task, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. The Condition of this Task, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. The Condition of this Task, containing its readiness status, and
    * detailed error information in case it did not reach the desired state.
    * 
* - * repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.run.v2.Condition conditions = 22 [(.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 Task. See comments in `Job.reconciling`
    * for additional information on reconciliation process in Cloud Run.
    * 
* * int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The observedGeneration. */ long getObservedGeneration(); /** + * + * *
    * Output only. Index of the Task, unique per execution, and beginning at 0.
    * 
* * int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The index. */ int getIndex(); /** + * + * *
    * Output only. The number of times this Task was retried.
    * Tasks are retried when they fail up to the maxRetries limit.
    * 
* * int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The retried. */ int getRetried(); /** + * + * *
    * Output only. Result of the last attempt of this Task.
    * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastAttemptResult field is set. */ boolean hasLastAttemptResult(); /** + * + * *
    * Output only. Result of the last attempt of this Task.
    * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastAttemptResult. */ com.google.cloud.run.v2.TaskAttemptResult getLastAttemptResult(); /** + * + * *
    * Output only. Result of the last attempt of this Task.
    * 
* - * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.TaskAttemptResultOrBuilder getLastAttemptResultOrBuilder(); /** + * + * *
    * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
    * https://cloud.google.com/run/docs/securing/using-cmek
    * 
* - * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The encryptionKey. */ java.lang.String getEncryptionKey(); /** + * + * *
    * Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
    * this container image. For more information, go to
    * https://cloud.google.com/run/docs/securing/using-cmek
    * 
* - * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString - getEncryptionKeyBytes(); + com.google.protobuf.ByteString getEncryptionKeyBytes(); /** + * + * *
    * Output only. VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the vpcAccess field is set. */ boolean hasVpcAccess(); /** + * + * *
    * Output only. VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The vpcAccess. */ com.google.cloud.run.v2.VpcAccess getVpcAccess(); /** + * + * *
    * Output only. VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* - * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder(); /** + * + * *
    * 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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java new file mode 100644 index 000000000000..2a9591ab1460 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java @@ -0,0 +1,258 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/task.proto + +package com.google.cloud.run.v2; + +public final class TaskProto { + private TaskProto() {} + + 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_GetTaskRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Task_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Task_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Task_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Task_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Task_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_TaskAttemptResult_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\036google/cloud/run/v2/task.proto\022\023google" + + ".cloud.run.v2\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032#google/cloud/run/v2/condition." + + "proto\032!google/cloud/run/v2/k8s.min.proto" + + "\032)google/cloud/run/v2/vendor_settings.pr" + + "oto\032\036google/protobuf/duration.proto\032\037goo" + + "gle/protobuf/timestamp.proto\032\027google/rpc" + + "/status.proto\"?\n\016GetTaskRequest\022-\n\004name\030" + + "\001 \001(\tB\037\340A\002\372A\031\n\027run.googleapis.com/Task\"\200" + + "\001\n\020ListTasksRequest\022/\n\006parent\030\001 \001(\tB\037\340A\002" + + "\372A\031\022\027run.googleapis.com/Task\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_dele" + + "ted\030\004 \001(\010\"V\n\021ListTasksResponse\022(\n\005tasks\030" + + "\001 \003(\0132\031.google.cloud.run.v2.Task\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\303\013\n\004Task\022\021\n\004name\030\001 \001(\t" + + "B\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\0225\n\006labels\030\004 \003(\0132%.google.cloud." + + "run.v2.Task.LabelsEntry\022?\n\013annotations\030\005" + + " \003(\0132*.google.cloud.run.v2.Task.Annotati" + + "onsEntry\0224\n\013create_time\030\006 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0223\n\nstart_time\030\033 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0228\n\017c" + + "ompletion_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013delete_ti" + + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013expire_time\030\n \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022+\n\003job\030\014 \001(\tB\036\340A\003\372A\030\n\026ru" + + "n.googleapis.com/Job\0227\n\texecution\030\r \001(\tB" + + "$\340A\003\372A\036\n\034run.googleapis.com/Execution\0222\n" + + "\ncontainers\030\016 \003(\0132\036.google.cloud.run.v2." + + "Container\022,\n\007volumes\030\017 \003(\0132\033.google.clou" + + "d.run.v2.Volume\022\023\n\013max_retries\030\020 \001(\005\022*\n\007" + + "timeout\030\021 \001(\0132\031.google.protobuf.Duration" + + "\022\027\n\017service_account\030\022 \001(\t\022H\n\025execution_e" + + "nvironment\030\024 \001(\0162).google.cloud.run.v2.E" + + "xecutionEnvironment\022\030\n\013reconciling\030\025 \001(\010" + + "B\003\340A\003\0227\n\nconditions\030\026 \003(\0132\036.google.cloud" + + ".run.v2.ConditionB\003\340A\003\022 \n\023observed_gener" + + "ation\030\027 \001(\003B\003\340A\003\022\022\n\005index\030\030 \001(\005B\003\340A\003\022\024\n\007" + + "retried\030\031 \001(\005B\003\340A\003\022H\n\023last_attempt_resul" + + "t\030\032 \001(\0132&.google.cloud.run.v2.TaskAttemp" + + "tResultB\003\340A\003\022A\n\016encryption_key\030\034 \001(\tB)\340A" + + "\003\372A#\n!cloudkms.googleapis.com/CryptoKey\022" + + "7\n\nvpc_access\030\035 \001(\0132\036.google.cloud.run.v" + + "2.VpcAccessB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001:w\352At\n\027run.googleapis.com/" + + "Task\022Vprojects/{project}/locations/{loca" + + "tion}/jobs/{job}/executions/{execution}/" + + "tasks/{task}R\001\001\"T\n\021TaskAttemptResult\022\'\n\006" + + "status\030\001 \001(\0132\022.google.rpc.StatusB\003\340A\003\022\026\n" + + "\texit_code\030\002 \001(\005B\003\340A\0032\226\003\n\005Tasks\022\227\001\n\007GetT" + + "ask\022#.google.cloud.run.v2.GetTaskRequest" + + "\032\031.google.cloud.run.v2.Task\"L\202\323\344\223\002?\022=/v2" + + "/{name=projects/*/locations/*/jobs/*/exe" + + "cutions/*/tasks/*}\332A\004name\022\252\001\n\tListTasks\022" + + "%.google.cloud.run.v2.ListTasksRequest\032&" + + ".google.cloud.run.v2.ListTasksResponse\"N" + + "\202\323\344\223\002?\022=/v2/{parent=projects/*/locations" + + "/*/jobs/*/executions/*}/tasks\332A\006parent\032F" + + "\312A\022run.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformB^\n\027com.go" + + "ogle.cloud.run.v2B\tTaskProtoP\001Z6google.g" + + "olang.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.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.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_GetTaskRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_GetTaskRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_run_v2_ListTasksRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListTasksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_cloud_run_v2_ListTasksResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_ListTasksResponse_descriptor, + new java.lang.String[] { + "Tasks", "NextPageToken", + }); + internal_static_google_cloud_run_v2_Task_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_run_v2_Task_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Task_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "Generation", + "Labels", + "Annotations", + "CreateTime", + "StartTime", + "CompletionTime", + "UpdateTime", + "DeleteTime", + "ExpireTime", + "Job", + "Execution", + "Containers", + "Volumes", + "MaxRetries", + "Timeout", + "ServiceAccount", + "ExecutionEnvironment", + "Reconciling", + "Conditions", + "ObservedGeneration", + "Index", + "Retried", + "LastAttemptResult", + "EncryptionKey", + "VpcAccess", + "Etag", + }); + internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Task_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Task_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_Task_AnnotationsEntry_descriptor = + internal_static_google_cloud_run_v2_Task_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Task_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Task_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_run_v2_TaskAttemptResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor, + new java.lang.String[] { + "Status", "ExitCode", + }); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.K8sMinProto.getDescriptor(); + com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java similarity index 77% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java index d059e0cc335c..06fef4dea4ce 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.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/task_template.proto package com.google.cloud.run.v2; /** + * + * *
  * TaskTemplate describes the data a task should have when created
  * from a template.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.run.v2.TaskTemplate}
  */
-public final class TaskTemplate extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TaskTemplate extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.TaskTemplate)
     TaskTemplateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TaskTemplate.newBuilder() to construct.
   private TaskTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TaskTemplate() {
     containers_ = java.util.Collections.emptyList();
     volumes_ = java.util.Collections.emptyList();
@@ -30,37 +48,41 @@ private TaskTemplate() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TaskTemplate();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.run.v2.TaskTemplateProto.internal_static_google_cloud_run_v2_TaskTemplate_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.run.v2.TaskTemplateProto
+        .internal_static_google_cloud_run_v2_TaskTemplate_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.run.v2.TaskTemplateProto.internal_static_google_cloud_run_v2_TaskTemplate_fieldAccessorTable
+    return com.google.cloud.run.v2.TaskTemplateProto
+        .internal_static_google_cloud_run_v2_TaskTemplate_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.run.v2.TaskTemplate.class, com.google.cloud.run.v2.TaskTemplate.Builder.class);
+            com.google.cloud.run.v2.TaskTemplate.class,
+            com.google.cloud.run.v2.TaskTemplate.Builder.class);
   }
 
   private int retriesCase_ = 0;
   private java.lang.Object retries_;
+
   public enum RetriesCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     MAX_RETRIES(3),
     RETRIES_NOT_SET(0);
     private final int value;
+
     private RetriesCase(int value) {
       this.value = value;
     }
@@ -76,25 +98,29 @@ public static RetriesCase valueOf(int value) {
 
     public static RetriesCase forNumber(int value) {
       switch (value) {
-        case 3: return MAX_RETRIES;
-        case 0: return RETRIES_NOT_SET;
-        default: return null;
+        case 3:
+          return MAX_RETRIES;
+        case 0:
+          return RETRIES_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RetriesCase
-  getRetriesCase() {
-    return RetriesCase.forNumber(
-        retriesCase_);
+  public RetriesCase getRetriesCase() {
+    return RetriesCase.forNumber(retriesCase_);
   }
 
   public static final int CONTAINERS_FIELD_NUMBER = 1;
   private java.util.List containers_;
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -107,6 +133,8 @@ public java.util.List getContainersList() {
     return containers_;
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -115,11 +143,13 @@ public java.util.List getContainersList() {
    * repeated .google.cloud.run.v2.Container containers = 1;
    */
   @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
    * task.
@@ -132,6 +162,8 @@ public int getContainersCount() {
     return containers_.size();
   }
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -144,6 +176,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
    * task.
@@ -152,14 +186,15 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
    * repeated .google.cloud.run.v2.Container containers = 1;
    */
   @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 = 2;
   private java.util.List volumes_;
   /**
+   *
+   *
    * 
    * A list of Volumes to make available to containers.
    * 
@@ -171,6 +206,8 @@ public java.util.List getVolumesList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -178,11 +215,13 @@ public java.util.List getVolumesList() { * repeated .google.cloud.run.v2.Volume volumes = 2; */ @java.lang.Override - public java.util.List + public java.util.List getVolumesOrBuilderList() { return volumes_; } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -194,6 +233,8 @@ public int getVolumesCount() { return volumes_.size(); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -205,6 +246,8 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { return volumes_.get(index); } /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -212,18 +255,20 @@ public com.google.cloud.run.v2.Volume getVolumes(int index) { * repeated .google.cloud.run.v2.Volume volumes = 2; */ @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 MAX_RETRIES_FIELD_NUMBER = 3; /** + * + * *
    * Number of retries allowed per Task, before marking this Task failed.
    * 
* * int32 max_retries = 3; + * * @return Whether the maxRetries field is set. */ @java.lang.Override @@ -231,11 +276,14 @@ public boolean hasMaxRetries() { return retriesCase_ == 3; } /** + * + * *
    * Number of retries allowed per Task, before marking this Task failed.
    * 
* * int32 max_retries = 3; + * * @return The maxRetries. */ @java.lang.Override @@ -249,6 +297,8 @@ public int getMaxRetries() { public static final int TIMEOUT_FIELD_NUMBER = 4; private com.google.protobuf.Duration timeout_; /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -256,6 +306,7 @@ public int getMaxRetries() {
    * 
* * .google.protobuf.Duration timeout = 4; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -263,6 +314,8 @@ public boolean hasTimeout() { return timeout_ != null; } /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -270,6 +323,7 @@ public boolean hasTimeout() {
    * 
* * .google.protobuf.Duration timeout = 4; + * * @return The timeout. */ @java.lang.Override @@ -277,6 +331,8 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -293,6 +349,8 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
   public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5;
   private volatile java.lang.Object serviceAccount_;
   /**
+   *
+   *
    * 
    * Email address of the IAM service account associated with the Task of a
    * Job. The service account represents the identity of the
@@ -301,6 +359,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
    * 
* * string service_account = 5; + * * @return The serviceAccount. */ @java.lang.Override @@ -309,14 +368,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 Task of a
    * Job. The service account represents the identity of the
@@ -325,16 +385,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 5; + * * @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 { @@ -345,33 +404,44 @@ public java.lang.String getServiceAccount() { public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 6; private int executionEnvironment_; /** + * + * *
    * The execution environment being used to host this Task.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * * @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 Task.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * * @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 = 7; 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
@@ -379,6 +449,7 @@ public java.lang.String getServiceAccount() {
    * 
* * string encryption_key = 7 [(.google.api.resource_reference) = { ... } + * * @return The encryptionKey. */ @java.lang.Override @@ -387,14 +458,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
@@ -402,16 +474,15 @@ public java.lang.String getEncryptionKey() {
    * 
* * string encryption_key = 7 [(.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 { @@ -422,12 +493,15 @@ public java.lang.String getEncryptionKey() { public static final int VPC_ACCESS_FIELD_NUMBER = 8; private com.google.cloud.run.v2.VpcAccess vpcAccess_; /** + * + * *
    * VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * * @return Whether the vpcAccess field is set. */ @java.lang.Override @@ -435,12 +509,15 @@ public boolean hasVpcAccess() { return vpcAccess_ != null; } /** + * + * *
    * VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * * @return The vpcAccess. */ @java.lang.Override @@ -448,6 +525,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 Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -461,6 +540,7 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -472,8 +552,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 < containers_.size(); i++) {
       output.writeMessage(1, containers_.get(i));
     }
@@ -481,8 +560,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       output.writeMessage(2, volumes_.get(i));
     }
     if (retriesCase_ == 3) {
-      output.writeInt32(
-          3, (int)((java.lang.Integer) retries_));
+      output.writeInt32(3, (int) ((java.lang.Integer) retries_));
     }
     if (timeout_ != null) {
       output.writeMessage(4, getTimeout());
@@ -490,7 +568,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccount_);
     }
-    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(6, executionEnvironment_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) {
@@ -509,35 +589,32 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < containers_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, containers_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, containers_.get(i));
     }
     for (int i = 0; i < volumes_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, volumes_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, volumes_.get(i));
     }
     if (retriesCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(
-            3, (int)((java.lang.Integer) retries_));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeInt32Size(
+              3, (int) ((java.lang.Integer) retries_));
     }
     if (timeout_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getTimeout());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTimeout());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccount_);
     }
-    if (executionEnvironment_ != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(6, executionEnvironment_);
+    if (executionEnvironment_
+        != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, executionEnvironment_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, encryptionKey_);
     }
     if (vpcAccess_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getVpcAccess());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getVpcAccess());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -547,37 +624,30 @@ public int getSerializedSize() {
   @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.TaskTemplate)) {
       return super.equals(obj);
     }
     com.google.cloud.run.v2.TaskTemplate other = (com.google.cloud.run.v2.TaskTemplate) obj;
 
-    if (!getContainersList()
-        .equals(other.getContainersList())) return false;
-    if (!getVolumesList()
-        .equals(other.getVolumesList())) return false;
+    if (!getContainersList().equals(other.getContainersList())) return false;
+    if (!getVolumesList().equals(other.getVolumesList())) return false;
     if (hasTimeout() != other.hasTimeout()) return false;
     if (hasTimeout()) {
-      if (!getTimeout()
-          .equals(other.getTimeout())) return false;
+      if (!getTimeout().equals(other.getTimeout())) return false;
     }
-    if (!getServiceAccount()
-        .equals(other.getServiceAccount())) return false;
+    if (!getServiceAccount().equals(other.getServiceAccount())) return false;
     if (executionEnvironment_ != other.executionEnvironment_) return false;
-    if (!getEncryptionKey()
-        .equals(other.getEncryptionKey())) return false;
+    if (!getEncryptionKey().equals(other.getEncryptionKey())) 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 (!getRetriesCase().equals(other.getRetriesCase())) return false;
     switch (retriesCase_) {
       case 3:
-        if (getMaxRetries()
-            != other.getMaxRetries()) return false;
+        if (getMaxRetries() != other.getMaxRetries()) return false;
         break;
       case 0:
       default:
@@ -628,97 +698,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.run.v2.TaskTemplate parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.run.v2.TaskTemplate parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.run.v2.TaskTemplate parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.TaskTemplate parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.run.v2.TaskTemplate parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.run.v2.TaskTemplate parseFrom(
       com.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.TaskTemplate parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.run.v2.TaskTemplate parseFrom(
-      byte[] data,
-      com.google.protobuf.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.TaskTemplate 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.TaskTemplate parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.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.TaskTemplate 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.TaskTemplate parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.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.TaskTemplate parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(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.TaskTemplate parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public 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.TaskTemplate prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * TaskTemplate describes the data a task should have when created
    * from a template.
@@ -726,33 +802,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.run.v2.TaskTemplate}
    */
-  public static final class Builder extends
-      com.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.TaskTemplate)
       com.google.cloud.run.v2.TaskTemplateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.run.v2.TaskTemplateProto.internal_static_google_cloud_run_v2_TaskTemplate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.run.v2.TaskTemplateProto
+          .internal_static_google_cloud_run_v2_TaskTemplate_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.run.v2.TaskTemplateProto.internal_static_google_cloud_run_v2_TaskTemplate_fieldAccessorTable
+      return com.google.cloud.run.v2.TaskTemplateProto
+          .internal_static_google_cloud_run_v2_TaskTemplate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.run.v2.TaskTemplate.class, com.google.cloud.run.v2.TaskTemplate.Builder.class);
+              com.google.cloud.run.v2.TaskTemplate.class,
+              com.google.cloud.run.v2.TaskTemplate.Builder.class);
     }
 
     // Construct using com.google.cloud.run.v2.TaskTemplate.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -794,9 +869,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.run.v2.TaskTemplateProto.internal_static_google_cloud_run_v2_TaskTemplate_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.run.v2.TaskTemplateProto
+          .internal_static_google_cloud_run_v2_TaskTemplate_descriptor;
     }
 
     @java.lang.Override
@@ -860,38 +935,39 @@ public com.google.cloud.run.v2.TaskTemplate buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.TaskTemplate) {
-        return mergeFrom((com.google.cloud.run.v2.TaskTemplate)other);
+        return mergeFrom((com.google.cloud.run.v2.TaskTemplate) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -918,9 +994,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.TaskTemplate other) {
             containersBuilder_ = null;
             containers_ = other.containers_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            containersBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getContainersFieldBuilder() : null;
+            containersBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getContainersFieldBuilder()
+                    : null;
           } else {
             containersBuilder_.addAllMessages(other.containers_);
           }
@@ -944,9 +1021,10 @@ public Builder mergeFrom(com.google.cloud.run.v2.TaskTemplate other) {
             volumesBuilder_ = null;
             volumes_ = other.volumes_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            volumesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getVolumesFieldBuilder() : null;
+            volumesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getVolumesFieldBuilder()
+                    : null;
           } else {
             volumesBuilder_.addAllMessages(other.volumes_);
           }
@@ -970,13 +1048,15 @@ public Builder mergeFrom(com.google.cloud.run.v2.TaskTemplate other) {
         mergeVpcAccess(other.getVpcAccess());
       }
       switch (other.getRetriesCase()) {
-        case MAX_RETRIES: {
-          setMaxRetries(other.getMaxRetries());
-          break;
-        }
-        case RETRIES_NOT_SET: {
-          break;
-        }
+        case MAX_RETRIES:
+          {
+            setMaxRetries(other.getMaxRetries());
+            break;
+          }
+        case RETRIES_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1004,72 +1084,74 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.run.v2.Container m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.Container.parser(),
-                      extensionRegistry);
-              if (containersBuilder_ == null) {
-                ensureContainersIsMutable();
-                containers_.add(m);
-              } else {
-                containersBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.run.v2.Volume m =
-                  input.readMessage(
-                      com.google.cloud.run.v2.Volume.parser(),
-                      extensionRegistry);
-              if (volumesBuilder_ == null) {
-                ensureVolumesIsMutable();
-                volumes_.add(m);
-              } else {
-                volumesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 24: {
-              retries_ = input.readInt32();
-              retriesCase_ = 3;
-              break;
-            } // case 24
-            case 34: {
-              input.readMessage(
-                  getTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 34
-            case 42: {
-              serviceAccount_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 42
-            case 48: {
-              executionEnvironment_ = input.readEnum();
-
-              break;
-            } // case 48
-            case 58: {
-              encryptionKey_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getVpcAccessFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.run.v2.Container m =
+                    input.readMessage(
+                        com.google.cloud.run.v2.Container.parser(), extensionRegistry);
+                if (containersBuilder_ == null) {
+                  ensureContainersIsMutable();
+                  containers_.add(m);
+                } else {
+                  containersBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.run.v2.Volume m =
+                    input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry);
+                if (volumesBuilder_ == null) {
+                  ensureVolumesIsMutable();
+                  volumes_.add(m);
+                } else {
+                  volumesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 24:
+              {
+                retries_ = input.readInt32();
+                retriesCase_ = 3;
+                break;
+              } // case 24
+            case 34:
+              {
+                input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 34
+            case 42:
+              {
+                serviceAccount_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 42
+            case 48:
+              {
+                executionEnvironment_ = input.readEnum();
+
+                break;
+              } // case 48
+            case 58:
+              {
+                encryptionKey_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getVpcAccessFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1079,12 +1161,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int retriesCase_ = 0;
     private java.lang.Object retries_;
-    public RetriesCase
-        getRetriesCase() {
-      return RetriesCase.forNumber(
-          retriesCase_);
+
+    public RetriesCase getRetriesCase() {
+      return RetriesCase.forNumber(retriesCase_);
     }
 
     public Builder clearRetries() {
@@ -1097,18 +1179,24 @@ public Builder clearRetries() {
     private int bitField0_;
 
     private java.util.List containers_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureContainersIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         containers_ = new java.util.ArrayList(containers_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     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
      * task.
@@ -1124,6 +1212,8 @@ public java.util.List getContainersList() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1139,6 +1229,8 @@ public int getContainersCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1154,6 +1246,8 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1161,8 +1255,7 @@ public com.google.cloud.run.v2.Container getContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 1;
      */
-    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();
@@ -1176,6 +1269,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1195,6 +1290,8 @@ public Builder setContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1216,6 +1313,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
      * task.
@@ -1223,8 +1322,7 @@ public Builder addContainers(com.google.cloud.run.v2.Container value) {
      *
      * repeated .google.cloud.run.v2.Container containers = 1;
      */
-    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();
@@ -1238,6 +1336,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1245,8 +1345,7 @@ public Builder addContainers(
      *
      * repeated .google.cloud.run.v2.Container containers = 1;
      */
-    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());
@@ -1257,6 +1356,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1276,6 +1377,8 @@ public Builder addContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1287,8 +1390,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);
@@ -1296,6 +1398,8 @@ public Builder addAllContainers(
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1314,6 +1418,8 @@ public Builder clearContainers() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1332,6 +1438,8 @@ public Builder removeContainers(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1339,11 +1447,12 @@ public Builder removeContainers(int index) {
      *
      * repeated .google.cloud.run.v2.Container containers = 1;
      */
-    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
      * task.
@@ -1351,14 +1460,16 @@ public com.google.cloud.run.v2.Container.Builder getContainersBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 1;
      */
-    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
      * task.
@@ -1366,8 +1477,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 1;
      */
-    public java.util.List 
-         getContainersOrBuilderList() {
+    public java.util.List
+        getContainersOrBuilderList() {
       if (containersBuilder_ != null) {
         return containersBuilder_.getMessageOrBuilderList();
       } else {
@@ -1375,6 +1486,8 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Holds the single container that defines the unit of execution for this
      * task.
@@ -1383,10 +1496,12 @@ public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(
      * repeated .google.cloud.run.v2.Container containers = 1;
      */
     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
      * task.
@@ -1394,12 +1509,13 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
      *
      * repeated .google.cloud.run.v2.Container containers = 1;
      */
-    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
      * task.
@@ -1407,38 +1523,46 @@ public com.google.cloud.run.v2.Container.Builder addContainersBuilder(
      *
      * repeated .google.cloud.run.v2.Container containers = 1;
      */
-    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_ & 0x00000001) != 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_ & 0x00000001) != 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_ & 0x00000002) != 0)) {
         volumes_ = new java.util.ArrayList(volumes_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     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.
      * 
@@ -1453,6 +1577,8 @@ public java.util.List getVolumesList() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -1467,6 +1593,8 @@ public int getVolumesCount() { } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -1481,14 +1609,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 = 2; */ - 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(); @@ -1502,14 +1631,15 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 2; */ - 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()); @@ -1520,6 +1650,8 @@ public Builder setVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -1540,14 +1672,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 = 2; */ - 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(); @@ -1561,14 +1694,15 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 2; */ - 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()); @@ -1579,14 +1713,15 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 2; */ - 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()); @@ -1597,6 +1732,8 @@ public Builder addVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -1607,8 +1744,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); @@ -1616,6 +1752,8 @@ public Builder addAllVolumes( return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -1633,6 +1771,8 @@ public Builder clearVolumes() { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -1650,39 +1790,44 @@ public Builder removeVolumes(int index) { return this; } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
* * repeated .google.cloud.run.v2.Volume volumes = 2; */ - 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 = 2; */ - 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 = 2; */ - public java.util.List - getVolumesOrBuilderList() { + public java.util.List + getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { @@ -1690,6 +1835,8 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( } } /** + * + * *
      * A list of Volumes to make available to containers.
      * 
@@ -1697,64 +1844,75 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( * repeated .google.cloud.run.v2.Volume volumes = 2; */ 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 = 2; */ - 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 = 2; */ - 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_ & 0x00000002) != 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_ & 0x00000002) != 0), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; } /** + * + * *
      * Number of retries allowed per Task, before marking this Task failed.
      * 
* * int32 max_retries = 3; + * * @return Whether the maxRetries field is set. */ public boolean hasMaxRetries() { return retriesCase_ == 3; } /** + * + * *
      * Number of retries allowed per Task, before marking this Task failed.
      * 
* * int32 max_retries = 3; + * * @return The maxRetries. */ public int getMaxRetries() { @@ -1764,11 +1922,14 @@ public int getMaxRetries() { return 0; } /** + * + * *
      * Number of retries allowed per Task, before marking this Task failed.
      * 
* * int32 max_retries = 3; + * * @param value The maxRetries to set. * @return This builder for chaining. */ @@ -1779,11 +1940,14 @@ public Builder setMaxRetries(int value) { return this; } /** + * + * *
      * Number of retries allowed per Task, before marking this Task failed.
      * 
* * int32 max_retries = 3; + * * @return This builder for chaining. */ public Builder clearMaxRetries() { @@ -1797,8 +1961,13 @@ public Builder clearMaxRetries() { 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 duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -1806,12 +1975,15 @@ public Builder clearMaxRetries() {
      * 
* * .google.protobuf.Duration timeout = 4; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** + * + * *
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -1819,6 +1991,7 @@ public boolean hasTimeout() {
      * 
* * .google.protobuf.Duration timeout = 4; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -1829,6 +2002,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -1851,6 +2026,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -1859,8 +2036,7 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration timeout = 4;
      */
-    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();
@@ -1871,6 +2047,8 @@ public Builder setTimeout(
       return this;
     }
     /**
+     *
+     *
      * 
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -1883,7 +2061,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;
         }
@@ -1895,6 +2073,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -1915,6 +2095,8 @@ public Builder clearTimeout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -1924,11 +2106,13 @@ public Builder clearTimeout() {
      * .google.protobuf.Duration timeout = 4;
      */
     public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
-      
+
       onChanged();
       return getTimeoutFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Max allowed time duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -1941,11 +2125,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 duration the Task may be active before the system will
      * actively try to mark it failed and kill associated containers. This applies
@@ -1955,14 +2140,17 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * .google.protobuf.Duration timeout = 4;
      */
     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_;
@@ -1970,6 +2158,8 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
 
     private java.lang.Object serviceAccount_ = "";
     /**
+     *
+     *
      * 
      * Email address of the IAM service account associated with the Task of a
      * Job. The service account represents the identity of the
@@ -1978,13 +2168,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
      * 
* * string service_account = 5; + * * @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; @@ -1993,6 +2183,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Email address of the IAM service account associated with the Task of a
      * Job. The service account represents the identity of the
@@ -2001,15 +2193,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 5; + * * @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 { @@ -2017,6 +2208,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Email address of the IAM service account associated with the Task of a
      * Job. The service account represents the identity of the
@@ -2025,20 +2218,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 5; + * * @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 Task of a
      * Job. The service account represents the identity of the
@@ -2047,15 +2242,18 @@ public Builder setServiceAccount(
      * 
* * string service_account = 5; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * Email address of the IAM service account associated with the Task of a
      * Job. The service account represents the identity of the
@@ -2064,16 +2262,16 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 5; + * * @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; @@ -2081,51 +2279,65 @@ public Builder setServiceAccountBytes( private int executionEnvironment_ = 0; /** + * + * *
      * The execution environment being used to host this Task.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * * @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 Task.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * * @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 Task.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * * @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 Task.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * * @param value The executionEnvironment to set. * @return This builder for chaining. */ @@ -2133,21 +2345,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 Task.
      * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * * @return This builder for chaining. */ public Builder clearExecutionEnvironment() { - + executionEnvironment_ = 0; onChanged(); return this; @@ -2155,6 +2370,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
@@ -2162,13 +2379,13 @@ public Builder clearExecutionEnvironment() {
      * 
* * string encryption_key = 7 [(.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; @@ -2177,6 +2394,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
@@ -2184,15 +2403,14 @@ public java.lang.String getEncryptionKey() {
      * 
* * string encryption_key = 7 [(.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 { @@ -2200,6 +2418,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
@@ -2207,20 +2427,22 @@ public java.lang.String getEncryptionKey() {
      * 
* * string encryption_key = 7 [(.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
@@ -2228,15 +2450,18 @@ public Builder setEncryptionKey(
      * 
* * string encryption_key = 7 [(.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
@@ -2244,16 +2469,16 @@ public Builder clearEncryptionKey() {
      * 
* * string encryption_key = 7 [(.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; @@ -2261,36 +2486,49 @@ public Builder setEncryptionKeyBytes( 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 Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * * @return Whether the vpcAccess field is set. */ public boolean hasVpcAccess() { return vpcAccessBuilder_ != null || vpcAccess_ != null; } /** + * + * *
      * VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
      * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * * @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 Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2312,6 +2550,8 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2319,8 +2559,7 @@ public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
      *
      * .google.cloud.run.v2.VpcAccess vpc_access = 8;
      */
-    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();
@@ -2331,6 +2570,8 @@ public Builder setVpcAccess(
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2342,7 +2583,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;
         }
@@ -2354,6 +2597,8 @@ public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2373,6 +2618,8 @@ public Builder clearVpcAccess() {
       return this;
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2381,11 +2628,13 @@ public Builder clearVpcAccess() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 8;
      */
     public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() {
-      
+
       onChanged();
       return getVpcAccessFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * VPC Access configuration to use for this Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2397,11 +2646,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 Task. For more information,
      * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
@@ -2410,21 +2662,24 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
      * .google.cloud.run.v2.VpcAccess vpc_access = 8;
      */
     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_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2434,12 +2689,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.TaskTemplate)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.run.v2.TaskTemplate)
   private static final com.google.cloud.run.v2.TaskTemplate DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.run.v2.TaskTemplate();
   }
@@ -2448,27 +2703,27 @@ public static com.google.cloud.run.v2.TaskTemplate getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TaskTemplate parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public TaskTemplate parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2483,6 +2738,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.run.v2.TaskTemplate getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java
similarity index 84%
rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java
rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java
index 6fb44526751c..392404f57e07 100644
--- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java
+++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.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/task_template.proto
 
 package com.google.cloud.run.v2;
 
-public interface TaskTemplateOrBuilder extends
+public interface TaskTemplateOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TaskTemplate)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -15,9 +33,10 @@ public interface TaskTemplateOrBuilder extends
    *
    * repeated .google.cloud.run.v2.Container containers = 1;
    */
-  java.util.List 
-      getContainersList();
+  java.util.List getContainersList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -27,6 +46,8 @@ public interface TaskTemplateOrBuilder extends
    */
   com.google.cloud.run.v2.Container getContainers(int index);
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -36,6 +57,8 @@ public interface TaskTemplateOrBuilder extends
    */
   int getContainersCount();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -43,9 +66,10 @@ public interface TaskTemplateOrBuilder extends
    *
    * repeated .google.cloud.run.v2.Container containers = 1;
    */
-  java.util.List 
-      getContainersOrBuilderList();
+  java.util.List getContainersOrBuilderList();
   /**
+   *
+   *
    * 
    * Holds the single container that defines the unit of execution for this
    * task.
@@ -53,19 +77,21 @@ public interface TaskTemplateOrBuilder extends
    *
    * repeated .google.cloud.run.v2.Container containers = 1;
    */
-  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 = 2; */ - java.util.List - getVolumesList(); + java.util.List getVolumesList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
@@ -74,6 +100,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.
    * 
@@ -82,44 +110,54 @@ com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder( */ int getVolumesCount(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 2; */ - java.util.List - getVolumesOrBuilderList(); + java.util.List getVolumesOrBuilderList(); /** + * + * *
    * A list of Volumes to make available to containers.
    * 
* * repeated .google.cloud.run.v2.Volume volumes = 2; */ - com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder( - int index); + com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index); /** + * + * *
    * Number of retries allowed per Task, before marking this Task failed.
    * 
* * int32 max_retries = 3; + * * @return Whether the maxRetries field is set. */ boolean hasMaxRetries(); /** + * + * *
    * Number of retries allowed per Task, before marking this Task failed.
    * 
* * int32 max_retries = 3; + * * @return The maxRetries. */ int getMaxRetries(); /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -127,10 +165,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * .google.protobuf.Duration timeout = 4; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -138,10 +179,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * .google.protobuf.Duration timeout = 4; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
    * Max allowed time duration the Task may be active before the system will
    * actively try to mark it failed and kill associated containers. This applies
@@ -153,6 +197,8 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
   com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
 
   /**
+   *
+   *
    * 
    * Email address of the IAM service account associated with the Task of a
    * Job. The service account represents the identity of the
@@ -161,10 +207,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string service_account = 5; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Email address of the IAM service account associated with the Task of a
    * Job. The service account represents the identity of the
@@ -173,31 +222,39 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string service_account = 5; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * The execution environment being used to host this Task.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * * @return The enum numeric value on the wire for executionEnvironment. */ int getExecutionEnvironmentValue(); /** + * + * *
    * The execution environment being used to host this Task.
    * 
* * .google.cloud.run.v2.ExecutionEnvironment execution_environment = 6; + * * @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
@@ -205,10 +262,13 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 7 [(.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
@@ -216,32 +276,40 @@ com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(
    * 
* * string encryption_key = 7 [(.google.api.resource_reference) = { ... } + * * @return The bytes for encryptionKey. */ - com.google.protobuf.ByteString - getEncryptionKeyBytes(); + com.google.protobuf.ByteString getEncryptionKeyBytes(); /** + * + * *
    * VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * * @return Whether the vpcAccess field is set. */ boolean hasVpcAccess(); /** + * + * *
    * VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
    * 
* * .google.cloud.run.v2.VpcAccess vpc_access = 8; + * * @return The vpcAccess. */ com.google.cloud.run.v2.VpcAccess getVpcAccess(); /** + * + * *
    * VPC Access configuration to use for this Task. For more information,
    * visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java
new file mode 100644
index 000000000000..1a3f06c96328
--- /dev/null
+++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java
@@ -0,0 +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/task_template.proto
+
+package com.google.cloud.run.v2;
+
+public final class TaskTemplateProto {
+  private TaskTemplateProto() {}
+
+  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_TaskTemplate_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_run_v2_TaskTemplate_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/task_template.prot"
+          + "o\022\023google.cloud.run.v2\032\031google/api/resou"
+          + "rce.proto\032!google/cloud/run/v2/k8s.min.p"
+          + "roto\032)google/cloud/run/v2/vendor_setting"
+          + "s.proto\032\036google/protobuf/duration.proto\""
+          + "\225\003\n\014TaskTemplate\0222\n\ncontainers\030\001 \003(\0132\036.g"
+          + "oogle.cloud.run.v2.Container\022,\n\007volumes\030"
+          + "\002 \003(\0132\033.google.cloud.run.v2.Volume\022\025\n\013ma"
+          + "x_retries\030\003 \001(\005H\000\022*\n\007timeout\030\004 \001(\0132\031.goo"
+          + "gle.protobuf.Duration\022\027\n\017service_account"
+          + "\030\005 \001(\t\022H\n\025execution_environment\030\006 \001(\0162)."
+          + "google.cloud.run.v2.ExecutionEnvironment"
+          + "\022>\n\016encryption_key\030\007 \001(\tB&\372A#\n!cloudkms."
+          + "googleapis.com/CryptoKey\0222\n\nvpc_access\030\010"
+          + " \001(\0132\036.google.cloud.run.v2.VpcAccessB\t\n\007"
+          + "retriesBf\n\027com.google.cloud.run.v2B\021Task"
+          + "TemplateProtoP\001Z6google.golang.org/genpr"
+          + "oto/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(),
+              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_TaskTemplate_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_run_v2_TaskTemplate_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_run_v2_TaskTemplate_descriptor,
+            new java.lang.String[] {
+              "Containers",
+              "Volumes",
+              "MaxRetries",
+              "Timeout",
+              "ServiceAccount",
+              "ExecutionEnvironment",
+              "EncryptionKey",
+              "VpcAccess",
+              "Retries",
+            });
+    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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java
similarity index 69%
rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java
rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java
index 850808893238..5907cda967ab 100644
--- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTarget.java
+++ b/java-run/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,65 +46,80 @@ 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;
   }
-  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 @@ -95,30 +128,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 { @@ -129,12 +162,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 @@ -145,12 +181,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 @@ -159,30 +198,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 { @@ -191,6 +230,7 @@ public java.lang.String getTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,9 +242,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_)) { @@ -225,16 +267,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_); @@ -247,7 +290,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); @@ -255,12 +298,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,97 +325,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.
@@ -383,33 +429,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -425,9 +470,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
@@ -446,7 +491,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_;
@@ -459,38 +505,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;
@@ -539,32 +586,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              type_ = input.readEnum();
+            case 8:
+              {
+                type_ = input.readEnum();
 
-              break;
-            } // case 8
-            case 18: {
-              revision_ = input.readStringRequireUtf8();
+                break;
+              } // case 8
+            case 18:
+              {
+                revision_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 18
-            case 24: {
-              percent_ = input.readInt32();
+                break;
+              } // case 18
+            case 24:
+              {
+                percent_ = input.readInt32();
 
-              break;
-            } // case 24
-            case 34: {
-              tag_ = input.readStringRequireUtf8();
+                break;
+              } // case 24
+            case 34:
+              {
+                tag_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -577,51 +629,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. */ @@ -629,21 +697,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; @@ -651,19 +722,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; @@ -672,21 +745,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 { @@ -694,70 +768,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 @@ -765,32 +849,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; @@ -798,19 +888,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; @@ -819,21 +911,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 { @@ -841,64 +934,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); } @@ -908,12 +1008,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(); } @@ -922,27 +1022,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,6 +1057,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TrafficTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java similarity index 70% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java index fad73ecbbf88..06c84b6689c3 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetAllocationType.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java similarity index 69% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java index 2cb2b01d55dc..ce98b2e4e1bc 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetOrBuilder.java +++ b/java-run/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/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java new file mode 100644 index 000000000000..fba638e7548e --- /dev/null +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java similarity index 69% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java index 1571d7f970ad..f34f76215cd4 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatus.java +++ b/java-run/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,64 +46,79 @@ 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; } - 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 @@ -94,29 +127,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 { @@ -127,11 +160,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 @@ -142,11 +178,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 @@ -155,29 +194,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 { @@ -188,11 +227,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 @@ -201,29 +243,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 { @@ -232,6 +274,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,9 +286,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_)) { @@ -269,16 +314,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_); @@ -294,22 +340,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,130 +379,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +526,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 @@ -498,7 +547,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_; @@ -512,38 +562,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; @@ -596,37 +647,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - type_ = input.readEnum(); + case 8: + { + type_ = input.readEnum(); - break; - } // case 8 - case 18: { - revision_ = input.readStringRequireUtf8(); + break; + } // case 8 + case 18: + { + revision_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 24: { - percent_ = input.readInt32(); + break; + } // case 18 + case 24: + { + percent_ = input.readInt32(); - break; - } // case 24 - case 34: { - tag_ = input.readStringRequireUtf8(); + break; + } // case 24 + case 34: + { + tag_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - uri_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + uri_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -639,51 +696,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. */ @@ -691,21 +764,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; @@ -713,18 +789,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; @@ -733,20 +811,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 { @@ -754,66 +833,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 @@ -821,30 +910,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; @@ -852,18 +947,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; @@ -872,20 +969,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 { @@ -893,54 +991,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; @@ -948,18 +1053,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; @@ -968,20 +1075,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 { @@ -989,61 +1097,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); } @@ -1053,12 +1168,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(); } @@ -1067,27 +1182,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1102,6 +1217,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.TrafficTargetStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java similarity index 68% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java index 125182f1b932..ab9869031686 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetStatusOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java similarity index 70% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java index d81016741581..5afbff905de0 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequest.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/job.proto package com.google.cloud.run.v2; /** + * + * *
  * Request message for updating a Job.
  * 
* * Protobuf type {@code google.cloud.run.v2.UpdateJobRequest} */ -public final class UpdateJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.run.v2.UpdateJobRequest) UpdateJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateJobRequest.newBuilder() to construct. private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateJobRequest() { - } + + private UpdateJobRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.UpdateJobRequest.class, com.google.cloud.run.v2.UpdateJobRequest.Builder.class); + com.google.cloud.run.v2.UpdateJobRequest.class, + com.google.cloud.run.v2.UpdateJobRequest.Builder.class); } public static final int JOB_FIELD_NUMBER = 1; private com.google.cloud.run.v2.Job job_; /** + * + * *
    * Required. The Job to be updated.
    * 
* * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ @java.lang.Override @@ -62,11 +83,14 @@ public boolean hasJob() { return job_ != null; } /** + * + * *
    * Required. The Job to be updated.
    * 
* * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ @java.lang.Override @@ -74,6 +98,8 @@ public com.google.cloud.run.v2.Job getJob() { return job_ == null ? com.google.cloud.run.v2.Job.getDefaultInstance() : job_; } /** + * + * *
    * Required. The Job to be updated.
    * 
@@ -88,12 +114,15 @@ public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { 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 @@ -104,6 +133,8 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_; /** + * + * *
    * If set to true, and if the Job does not exist, it will create a new
    * one. Caller must have both create and update permissions for this call if
@@ -111,6 +142,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -119,6 +151,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,8 +163,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (job_ != null) { output.writeMessage(1, getJob()); } @@ -151,16 +183,13 @@ public int getSerializedSize() { size = 0; if (job_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); } 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -170,7 +199,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.UpdateJobRequest)) { return super.equals(obj); @@ -179,13 +208,10 @@ public boolean equals(final java.lang.Object obj) { if (hasJob() != other.hasJob()) return false; if (hasJob()) { - if (!getJob() - .equals(other.getJob())) return false; + if (!getJob().equals(other.getJob())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,140 +228,144 @@ public int hashCode() { hash = (53 * hash) + getJob().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UpdateJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( com.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.UpdateJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.run.v2.UpdateJobRequest parseFrom( - byte[] data, - com.google.protobuf.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.UpdateJobRequest 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.UpdateJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.UpdateJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.run.v2.UpdateJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.run.v2.UpdateJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.UpdateJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(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.UpdateJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public 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.UpdateJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Job.
    * 
* * Protobuf type {@code google.cloud.run.v2.UpdateJobRequest} */ - public static final class Builder extends - com.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.UpdateJobRequest) com.google.cloud.run.v2.UpdateJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.run.v2.UpdateJobRequest.class, com.google.cloud.run.v2.UpdateJobRequest.Builder.class); + com.google.cloud.run.v2.UpdateJobRequest.class, + com.google.cloud.run.v2.UpdateJobRequest.Builder.class); } // Construct using com.google.cloud.run.v2.UpdateJobRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.run.v2.JobProto.internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.JobProto + .internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; } @java.lang.Override @@ -374,7 +404,8 @@ public com.google.cloud.run.v2.UpdateJobRequest build() { @java.lang.Override public com.google.cloud.run.v2.UpdateJobRequest buildPartial() { - com.google.cloud.run.v2.UpdateJobRequest result = new com.google.cloud.run.v2.UpdateJobRequest(this); + com.google.cloud.run.v2.UpdateJobRequest result = + new com.google.cloud.run.v2.UpdateJobRequest(this); if (jobBuilder_ == null) { result.job_ = job_; } else { @@ -390,38 +421,39 @@ public com.google.cloud.run.v2.UpdateJobRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.UpdateJobRequest) { - return mergeFrom((com.google.cloud.run.v2.UpdateJobRequest)other); + return mergeFrom((com.google.cloud.run.v2.UpdateJobRequest) other); } else { super.mergeFrom(other); return this; @@ -465,29 +497,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getJobFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 24: { - validateOnly_ = input.readBool(); - - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 24: + { + validateOnly_ = input.readBool(); + + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,24 +534,33 @@ public Builder mergeFrom( private com.google.cloud.run.v2.Job job_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> jobBuilder_; + com.google.cloud.run.v2.Job, + com.google.cloud.run.v2.Job.Builder, + com.google.cloud.run.v2.JobOrBuilder> + jobBuilder_; /** + * + * *
      * Required. The Job to be updated.
      * 
* * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; } /** + * + * *
      * Required. The Job to be updated.
      * 
* * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ public com.google.cloud.run.v2.Job getJob() { @@ -528,6 +571,8 @@ public com.google.cloud.run.v2.Job getJob() { } } /** + * + * *
      * Required. The Job to be updated.
      * 
@@ -548,14 +593,15 @@ public Builder setJob(com.google.cloud.run.v2.Job value) { return this; } /** + * + * *
      * Required. The Job to be updated.
      * 
* * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setJob( - com.google.cloud.run.v2.Job.Builder builderForValue) { + public Builder setJob(com.google.cloud.run.v2.Job.Builder builderForValue) { if (jobBuilder_ == null) { job_ = builderForValue.build(); onChanged(); @@ -566,6 +612,8 @@ public Builder setJob( return this; } /** + * + * *
      * Required. The Job to be updated.
      * 
@@ -575,8 +623,7 @@ public Builder setJob( public Builder mergeJob(com.google.cloud.run.v2.Job value) { if (jobBuilder_ == null) { if (job_ != null) { - job_ = - com.google.cloud.run.v2.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + job_ = com.google.cloud.run.v2.Job.newBuilder(job_).mergeFrom(value).buildPartial(); } else { job_ = value; } @@ -588,6 +635,8 @@ public Builder mergeJob(com.google.cloud.run.v2.Job value) { return this; } /** + * + * *
      * Required. The Job to be updated.
      * 
@@ -606,6 +655,8 @@ public Builder clearJob() { return this; } /** + * + * *
      * Required. The Job to be updated.
      * 
@@ -613,11 +664,13 @@ public Builder clearJob() { * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.run.v2.Job.Builder getJobBuilder() { - + onChanged(); return getJobFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Job to be updated.
      * 
@@ -628,11 +681,12 @@ public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { return jobBuilder_.getMessageOrBuilder(); } else { - return job_ == null ? - com.google.cloud.run.v2.Job.getDefaultInstance() : job_; + return job_ == null ? com.google.cloud.run.v2.Job.getDefaultInstance() : job_; } } /** + * + * *
      * Required. The Job to be updated.
      * 
@@ -640,27 +694,32 @@ public com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder() { * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder> + com.google.cloud.run.v2.Job, + com.google.cloud.run.v2.Job.Builder, + com.google.cloud.run.v2.JobOrBuilder> getJobFieldBuilder() { if (jobBuilder_ == null) { - jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Job, com.google.cloud.run.v2.Job.Builder, com.google.cloud.run.v2.JobOrBuilder>( - getJob(), - getParentForChildren(), - isClean()); + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Job, + com.google.cloud.run.v2.Job.Builder, + com.google.cloud.run.v2.JobOrBuilder>(getJob(), getParentForChildren(), isClean()); job_ = null; } return jobBuilder_; } - 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 @@ -668,39 +727,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 Job does not exist, it will create a new
      * one. Caller must have both create and update permissions for this call if
@@ -708,6 +775,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -715,6 +783,8 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set to true, and if the Job does not exist, it will create a new
      * one. Caller must have both create and update permissions for this call if
@@ -722,16 +792,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 Job does not exist, it will create a new
      * one. Caller must have both create and update permissions for this call if
@@ -739,17 +812,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); } @@ -759,12 +833,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.UpdateJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.run.v2.UpdateJobRequest) private static final com.google.cloud.run.v2.UpdateJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.run.v2.UpdateJobRequest(); } @@ -773,27 +847,27 @@ public static com.google.cloud.run.v2.UpdateJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,6 +882,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.UpdateJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java index 1d3c3582b7e1..d82145821952 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateJobRequestOrBuilder.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/job.proto package com.google.cloud.run.v2; -public interface UpdateJobRequestOrBuilder extends +public interface UpdateJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.UpdateJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Job to be updated.
    * 
* * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the job field is set. */ boolean hasJob(); /** + * + * *
    * Required. The Job to be updated.
    * 
* * .google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The job. */ com.google.cloud.run.v2.Job getJob(); /** + * + * *
    * Required. The Job to be updated.
    * 
@@ -35,17 +59,22 @@ public interface UpdateJobRequestOrBuilder extends com.google.cloud.run.v2.JobOrBuilder getJobOrBuilder(); /** + * + * *
    * 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 Job does not exist, it will create a new
    * one. Caller must have both create and update permissions for this call if
@@ -53,6 +82,7 @@ public interface UpdateJobRequestOrBuilder extends
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java similarity index 69% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java index 8055ed02503c..376b74683c25 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java @@ -1,60 +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/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; } - 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 @@ -62,11 +84,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 @@ -74,11 +100,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() { @@ -88,12 +117,15 @@ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_; /** + * + * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or updating any resources.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -104,6 +136,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
@@ -111,6 +145,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -119,6 +154,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,8 +166,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()); } @@ -151,16 +186,13 @@ public int getSerializedSize() { size = 0; if (service_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getService()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getService()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -170,22 +202,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.run.v2.UpdateServiceRequest)) { return super.equals(obj); } - com.google.cloud.run.v2.UpdateServiceRequest other = (com.google.cloud.run.v2.UpdateServiceRequest) obj; + com.google.cloud.run.v2.UpdateServiceRequest other = + (com.google.cloud.run.v2.UpdateServiceRequest) obj; if (hasService() != other.hasService()) return false; if (hasService()) { - if (!getService() - .equals(other.getService())) return false; + if (!getService().equals(other.getService())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,140 +232,144 @@ public int hashCode() { hash = (53 * hash) + getService().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +387,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 @@ -374,7 +408,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 { @@ -390,38 +425,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; @@ -465,29 +501,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getServiceFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 24: { - validateOnly_ = input.readBool(); - - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 24: + { + validateOnly_ = input.readBool(); + + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,24 +538,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() { @@ -528,11 +577,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) { @@ -548,14 +600,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(); @@ -566,17 +620,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; } @@ -588,11 +645,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) { @@ -606,61 +666,75 @@ public Builder clearService() { return this; } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.Service.Builder getServiceBuilder() { - + onChanged(); return getServiceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { - return service_ == null ? - com.google.cloud.run.v2.Service.getDefaultInstance() : service_; + return service_ == null ? com.google.cloud.run.v2.Service.getDefaultInstance() : service_; } } /** + * + * *
      * Required. The Service to be updated.
      * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder> + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { - serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.run.v2.Service, com.google.cloud.run.v2.Service.Builder, com.google.cloud.run.v2.ServiceOrBuilder>( - getService(), - getParentForChildren(), - isClean()); + serviceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Service, + com.google.cloud.run.v2.Service.Builder, + com.google.cloud.run.v2.ServiceOrBuilder>( + getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Indicates that the request should be validated and default values
      * populated, without persisting the request or updating any resources.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -668,39 +742,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
@@ -708,6 +790,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -715,6 +798,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
@@ -722,16 +807,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
@@ -739,17 +827,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); } @@ -759,12 +848,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(); } @@ -773,27 +862,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,6 +897,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.UpdateServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java index 103efd8c57ca..6009b7fd456b 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java @@ -1,51 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/run/v2/service.proto package com.google.cloud.run.v2; -public interface UpdateServiceRequestOrBuilder extends +public interface UpdateServiceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.UpdateServiceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the service field is set. */ boolean hasService(); /** + * + * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The service. */ com.google.cloud.run.v2.Service getService(); /** + * + * *
    * Required. The Service to be updated.
    * 
* - * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.run.v2.Service service = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.run.v2.ServiceOrBuilder getServiceOrBuilder(); /** + * + * *
    * Indicates that the request should be validated and default values
    * populated, without persisting the request or updating any resources.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set to true, and if the Service does not exist, it will create a new
    * one. Caller must have both create and update permissions for this call if
@@ -53,6 +85,7 @@ public interface UpdateServiceRequestOrBuilder extends
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java new file mode 100644 index 000000000000..5bd17cb63901 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/vendor_settings.proto + +package com.google.cloud.run.v2; + +public final class VendorSettingsProto { + private VendorSettingsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_VpcAccess_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_RevisionScaling_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/run/v2/vendor_settings.pr" + + "oto\022\023google.cloud.run.v2\032\031google/api/res" + + "ource.proto\"\324\001\n\tVpcAccess\022:\n\tconnector\030\001" + + " \001(\tB\'\372A$\n\"vpcaccess.googleapis.com/Conn" + + "ector\0228\n\006egress\030\002 \001(\0162(.google.cloud.run" + + ".v2.VpcAccess.VpcEgress\"Q\n\tVpcEgress\022\032\n\026" + + "VPC_EGRESS_UNSPECIFIED\020\000\022\017\n\013ALL_TRAFFIC\020" + + "\001\022\027\n\023PRIVATE_RANGES_ONLY\020\002\"a\n\023BinaryAuth" + + "orization\022\025\n\013use_default\030\001 \001(\010H\000\022 \n\030brea" + + "kglass_justification\030\002 \001(\tB\021\n\017binauthz_m" + + "ethod\"I\n\017RevisionScaling\022\032\n\022min_instance" + + "_count\030\001 \001(\005\022\032\n\022max_instance_count\030\002 \001(\005" + + "*\231\001\n\016IngressTraffic\022\037\n\033INGRESS_TRAFFIC_U" + + "NSPECIFIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n" + + "\035INGRESS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGR" + + "ESS_TRAFFIC_INTERNAL_LOAD_BALANCER\020\003*}\n\024" + + "ExecutionEnvironment\022%\n!EXECUTION_ENVIRO" + + "NMENT_UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRON" + + "MENT_GEN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN" + + "2\020\002Bh\n\027com.google.cloud.run.v2B\023VendorSe" + + "ttingsProtoP\001Z6google.golang.org/genprot" + + "o/googleapis/cloud/run/v2;runb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_run_v2_VpcAccess_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_VpcAccess_descriptor, + new java.lang.String[] { + "Connector", "Egress", + }); + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor, + new java.lang.String[] { + "UseDefault", "BreakglassJustification", "BinauthzMethod", + }); + internal_static_google_cloud_run_v2_RevisionScaling_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_RevisionScaling_descriptor, + new java.lang.String[] { + "MinInstanceCount", "MaxInstanceCount", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java similarity index 72% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java index cab32cb99cd3..c99a29204d7d 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPath.java +++ b/java-run/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,37 +45,41 @@ 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;
   }
-  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 @@ -66,29 +88,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 { @@ -99,12 +121,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 @@ -113,30 +138,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 { @@ -147,6 +172,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
@@ -164,6 +191,7 @@ public java.lang.String getVersion() {
    * 
* * int32 mode = 3; + * * @return The mode. */ @java.lang.Override @@ -172,6 +200,7 @@ public int getMode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,8 +212,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_); } @@ -210,8 +238,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -221,19 +248,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,97 +280,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.
@@ -354,33 +384,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -394,9 +423,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
@@ -415,7 +444,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_;
@@ -427,38 +457,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;
@@ -504,27 +535,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              path_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              version_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            case 24: {
-              mode_ = input.readInt32();
-
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                path_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                version_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            case 24:
+              {
+                mode_ = input.readInt32();
+
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -537,18 +572,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; @@ -557,20 +594,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 { @@ -578,54 +616,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; @@ -633,19 +678,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; @@ -654,21 +701,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 { @@ -676,64 +724,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
@@ -751,6 +808,7 @@ public Builder setVersionBytes(
      * 
* * int32 mode = 3; + * * @return The mode. */ @java.lang.Override @@ -758,6 +816,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
@@ -775,16 +835,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
@@ -802,17 +865,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); } @@ -822,12 +886,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(); } @@ -836,27 +900,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -871,6 +935,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VersionToPath getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java similarity index 72% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java index c4ede29bed3e..4002f7ce3eb1 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VersionToPathOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java similarity index 73% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java index 046b8ab679fb..052a0e02d68b 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java @@ -1,62 +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; /** + * + * *
  * 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; } - 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; } @@ -72,31 +93,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 @@ -105,29 +132,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 { @@ -137,12 +164,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 @@ -150,22 +180,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
@@ -176,13 +211,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
@@ -190,6 +227,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 @@ -197,6 +235,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
@@ -204,16 +244,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
@@ -225,12 +268,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;
@@ -242,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(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -266,12 +309,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -281,24 +326,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:
@@ -333,130 +375,134 @@ 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); } // Construct using com.google.cloud.run.v2.Volume.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +520,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 @@ -520,38 +566,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; @@ -565,17 +612,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.getUnknownFields()); onChanged(); @@ -603,31 +653,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getSecretFieldBuilder().getBuilder(), - extensionRegistry); - volumeTypeCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getCloudSqlInstanceFieldBuilder().getBuilder(), - extensionRegistry); - volumeTypeCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 18: + { + input.readMessage(getSecretFieldBuilder().getBuilder(), extensionRegistry); + volumeTypeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getCloudSqlInstanceFieldBuilder().getBuilder(), extensionRegistry); + volumeTypeCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -637,12 +688,12 @@ public Builder mergeFrom( } // finally 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() { @@ -652,21 +703,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; @@ -675,20 +727,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 { @@ -696,68 +749,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 @@ -765,12 +831,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 @@ -788,6 +857,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
@@ -809,6 +880,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
@@ -816,8 +889,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();
@@ -828,6 +900,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
@@ -837,10 +911,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;
         }
@@ -856,6 +933,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
@@ -880,6 +959,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
@@ -891,6 +972,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
@@ -910,6 +993,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
@@ -918,27 +1003,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
@@ -946,6 +1042,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 @@ -953,6 +1050,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
@@ -960,6 +1059,7 @@ public boolean hasCloudSqlInstance() {
      * 
* * .google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3; + * * @return The cloudSqlInstance. */ @java.lang.Override @@ -977,6 +1077,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
@@ -999,6 +1101,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
@@ -1019,6 +1123,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
@@ -1029,10 +1135,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;
         }
@@ -1048,6 +1157,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
@@ -1073,6 +1184,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
@@ -1085,6 +1198,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
@@ -1105,6 +1220,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
@@ -1114,26 +1231,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);
     }
 
@@ -1143,12 +1266,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();
   }
@@ -1157,27 +1280,27 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1192,6 +1315,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.run.v2.Volume getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
similarity index 70%
rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
index 9678361dd733..f0b021e85844 100644
--- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java
+++ b/java-run/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,37 +44,41 @@ 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; } - 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 @@ -65,29 +87,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 { @@ -98,6 +120,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
@@ -107,6 +131,7 @@ public java.lang.String getName() {
    * 
* * string mount_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mountPath. */ @java.lang.Override @@ -115,14 +140,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
@@ -132,16 +158,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 { @@ -150,6 +175,7 @@ public java.lang.String getMountPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +187,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_); } @@ -192,17 +217,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,130 +246,135 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +386,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 @@ -390,38 +418,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; @@ -464,22 +493,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: { - mountPath_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + mountPath_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -492,18 +524,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; @@ -512,20 +546,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 { @@ -533,54 +568,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; @@ -588,6 +630,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
@@ -597,13 +641,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; @@ -612,6 +656,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
@@ -621,15 +667,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 { @@ -637,6 +682,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
@@ -646,20 +693,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
@@ -669,15 +718,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
@@ -687,23 +739,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); } @@ -713,12 +765,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(); } @@ -727,27 +779,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -762,6 +814,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VolumeMount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java similarity index 69% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java index 5d944ac46672..c9a43356d0da 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java similarity index 78% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java index 8437d5b2a083..d9311c199cf5 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
similarity index 69%
rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
index da0bd9d38947..3a1de9a6e951 100644
--- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccess.java
+++ b/java-run/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,39 +47,43 @@ 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;
   }
-  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
      * 
@@ -70,6 +92,8 @@ public enum VpcEgress */ VPC_EGRESS_UNSPECIFIED(0), /** + * + * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -78,6 +102,8 @@ public enum VpcEgress */ ALL_TRAFFIC(1), /** + * + * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -89,6 +115,8 @@ public enum VpcEgress ; /** + * + * *
      * Unspecified
      * 
@@ -97,6 +125,8 @@ public enum VpcEgress */ public static final int VPC_EGRESS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * All outbound traffic is routed through the VPC connector.
      * 
@@ -105,6 +135,8 @@ public enum VpcEgress */ public static final int ALL_TRAFFIC_VALUE = 1; /** + * + * *
      * Only private IP ranges are routed through the VPC connector.
      * 
@@ -113,7 +145,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( @@ -138,49 +169,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; @@ -200,12 +231,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 @@ -214,30 +248,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 { @@ -248,31 +282,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; @@ -284,8 +328,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connector_); } @@ -305,8 +348,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -316,15 +358,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -346,97 +387,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
@@ -446,33 +493,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -484,9 +530,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
@@ -516,38 +562,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;
@@ -589,22 +636,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              connector_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 16: {
-              egress_ = input.readEnum();
-
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                connector_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 16:
+              {
+                egress_ = input.readEnum();
+
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -617,19 +667,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; @@ -638,21 +690,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 { @@ -660,57 +713,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; @@ -718,51 +778,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. */ @@ -770,28 +844,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); } @@ -801,12 +878,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(); } @@ -815,27 +892,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,6 +927,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.run.v2.VpcAccess getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java similarity index 63% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java rename to java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java index a531dc7b6730..76469f43e4a6 100644 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VpcAccessOrBuilder.java +++ b/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto similarity index 100% rename from owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto rename to java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetEndpoint.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetEndpoint.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecution.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecution.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecution.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecution.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecutionLRO.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecutionLRO.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecutionLRO.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/AsyncDeleteExecutionLRO.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecution.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecution.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecution.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecution.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionExecutionname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionExecutionname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionExecutionname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionExecutionname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/deleteexecution/SyncDeleteExecutionString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/AsyncGetExecution.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/AsyncGetExecution.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/AsyncGetExecution.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/AsyncGetExecution.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecution.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecution.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecution.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecution.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionExecutionname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionExecutionname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionExecutionname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionExecutionname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/getexecution/SyncGetExecutionString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutions.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutions.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutions.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutions.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutionsPaged.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutionsPaged.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutionsPaged.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/AsyncListExecutionsPaged.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutions.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutions.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutions.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutions.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsJobname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsJobname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsJobname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsJobname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executions/listexecutions/SyncListExecutionsString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executionssettings/getexecution/SyncGetExecution.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/executionssettings/getexecution/SyncGetExecution.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/executionssettings/getexecution/SyncGetExecution.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/executionssettings/getexecution/SyncGetExecution.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetEndpoint.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetEndpoint.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJobLRO.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJobLRO.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJobLRO.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/AsyncCreateJobLRO.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobLocationnameJobString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobLocationnameJobString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobLocationnameJobString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobLocationnameJobString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobStringJobString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobStringJobString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobStringJobString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/createjob/SyncCreateJobStringJobString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJobLRO.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJobLRO.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJobLRO.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/AsyncDeleteJobLRO.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobJobname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobJobname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobJobname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobJobname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/deletejob/SyncDeleteJobString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/AsyncGetIamPolicy.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/AsyncGetIamPolicy.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/SyncGetIamPolicy.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/SyncGetIamPolicy.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/AsyncGetJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/AsyncGetJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/AsyncGetJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/AsyncGetJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobJobname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobJobname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobJobname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobJobname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/getjob/SyncGetJobString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobs.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobs.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobs.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobs.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobsPaged.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobsPaged.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobsPaged.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/AsyncListJobsPaged.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobs.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobs.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobs.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobs.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsLocationname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsLocationname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsLocationname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsLocationname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/listjobs/SyncListJobsString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJobLRO.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJobLRO.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJobLRO.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/AsyncRunJobLRO.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobJobname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobJobname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobJobname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobJobname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/runjob/SyncRunJobString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/AsyncSetIamPolicy.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/AsyncSetIamPolicy.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/SyncSetIamPolicy.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/SyncSetIamPolicy.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/AsyncTestIamPermissions.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/AsyncTestIamPermissions.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/SyncTestIamPermissions.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/SyncTestIamPermissions.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJobLRO.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJobLRO.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJobLRO.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/AsyncUpdateJobLRO.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJobJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJobJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJobJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobs/updatejob/SyncUpdateJobJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobssettings/getjob/SyncGetJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/jobssettings/getjob/SyncGetJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/jobssettings/getjob/SyncGetJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/jobssettings/getjob/SyncGetJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetEndpoint.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetEndpoint.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevision.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevision.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevision.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevision.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevisionLRO.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevisionLRO.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevisionLRO.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/AsyncDeleteRevisionLRO.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevision.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevision.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevision.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevision.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionRevisionname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionRevisionname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionRevisionname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionRevisionname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/deleterevision/SyncDeleteRevisionString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/AsyncGetRevision.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/AsyncGetRevision.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/AsyncGetRevision.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/AsyncGetRevision.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevision.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevision.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevision.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevision.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionRevisionname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionRevisionname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionRevisionname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionRevisionname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/getrevision/SyncGetRevisionString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisions.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisions.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisions.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisions.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisionsPaged.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisionsPaged.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisionsPaged.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/AsyncListRevisionsPaged.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisions.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisions.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisions.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisions.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsServicename.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsServicename.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsServicename.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsServicename.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisions/listrevisions/SyncListRevisionsString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/revisionssettings/getrevision/SyncGetRevision.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetEndpoint.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetEndpoint.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateServiceLRO.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateServiceLRO.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateServiceLRO.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/AsyncCreateServiceLRO.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceLocationnameServiceString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceLocationnameServiceString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceLocationnameServiceString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceLocationnameServiceString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceStringServiceString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceStringServiceString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceStringServiceString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/createservice/SyncCreateServiceStringServiceString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteServiceLRO.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteServiceLRO.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteServiceLRO.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/AsyncDeleteServiceLRO.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceServicename.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceServicename.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceServicename.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceServicename.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/deleteservice/SyncDeleteServiceString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/AsyncGetIamPolicy.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/AsyncGetIamPolicy.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/SyncGetIamPolicy.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/SyncGetIamPolicy.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/AsyncGetService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/AsyncGetService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/AsyncGetService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/AsyncGetService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceServicename.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceServicename.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceServicename.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceServicename.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/getservice/SyncGetServiceString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServices.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServices.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServices.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServices.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServicesPaged.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServicesPaged.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServicesPaged.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/AsyncListServicesPaged.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServices.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServices.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServices.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServices.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesLocationname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesLocationname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesLocationname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesLocationname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/listservices/SyncListServicesString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/AsyncSetIamPolicy.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/AsyncSetIamPolicy.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/SyncSetIamPolicy.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/SyncSetIamPolicy.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/AsyncTestIamPermissions.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/AsyncTestIamPermissions.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/SyncTestIamPermissions.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/SyncTestIamPermissions.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/AsyncUpdateServiceLRO.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/services/updateservice/SyncUpdateServiceService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/servicessettings/getservice/SyncGetService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/executionsstubsettings/getexecution/SyncGetExecution.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/executionsstubsettings/getexecution/SyncGetExecution.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/executionsstubsettings/getexecution/SyncGetExecution.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/executionsstubsettings/getexecution/SyncGetExecution.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/jobsstubsettings/getjob/SyncGetJob.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/jobsstubsettings/getjob/SyncGetJob.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/jobsstubsettings/getjob/SyncGetJob.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/jobsstubsettings/getjob/SyncGetJob.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/revisionsstubsettings/getrevision/SyncGetRevision.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/servicesstubsettings/getservice/SyncGetService.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/tasksstubsettings/gettask/SyncGetTask.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/tasksstubsettings/gettask/SyncGetTask.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/stub/tasksstubsettings/gettask/SyncGetTask.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/stub/tasksstubsettings/gettask/SyncGetTask.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetEndpoint.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetEndpoint.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/AsyncGetTask.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/AsyncGetTask.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/AsyncGetTask.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/AsyncGetTask.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTask.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTask.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTask.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTask.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskTaskname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskTaskname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskTaskname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/gettask/SyncGetTaskTaskname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasks.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasks.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasks.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasks.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasksPaged.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasksPaged.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasksPaged.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/AsyncListTasksPaged.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasks.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasks.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasks.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasks.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksExecutionname.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksExecutionname.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksExecutionname.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksExecutionname.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksString.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksString.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksString.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/tasks/listtasks/SyncListTasksString.java diff --git a/owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/taskssettings/gettask/SyncGetTask.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/taskssettings/gettask/SyncGetTask.java similarity index 100% rename from owl-bot-staging/java-run/v2/samples/snippets/generated/com/google/cloud/run/v2/taskssettings/gettask/SyncGetTask.java rename to java-run/samples/snippets/generated/com/google/cloud/run/v2/taskssettings/gettask/SyncGetTask.java diff --git a/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java deleted file mode 100644 index f4dc9b6d4019..000000000000 --- a/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionsGrpc.java +++ /dev/null @@ -1,475 +0,0 @@ -package com.google.cloud.run.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Cloud Run Execution Control Plane API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/execution.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ExecutionsGrpc { - - private ExecutionsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.run.v2.Executions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExecution", - requestType = com.google.cloud.run.v2.GetExecutionRequest.class, - responseType = com.google.cloud.run.v2.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetExecutionMethod() { - io.grpc.MethodDescriptor getGetExecutionMethod; - if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { - ExecutionsGrpc.getGetExecutionMethod = getGetExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.GetExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.Execution.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) - .build(); - } - } - } - return getGetExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListExecutionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListExecutions", - requestType = com.google.cloud.run.v2.ListExecutionsRequest.class, - responseType = com.google.cloud.run.v2.ListExecutionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListExecutionsMethod() { - io.grpc.MethodDescriptor getListExecutionsMethod; - if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { - ExecutionsGrpc.getListExecutionsMethod = getListExecutionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListExecutionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListExecutionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) - .build(); - } - } - } - return getListExecutionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteExecution", - requestType = com.google.cloud.run.v2.DeleteExecutionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteExecutionMethod() { - io.grpc.MethodDescriptor getDeleteExecutionMethod; - if ((getDeleteExecutionMethod = ExecutionsGrpc.getDeleteExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getDeleteExecutionMethod = ExecutionsGrpc.getDeleteExecutionMethod) == null) { - ExecutionsGrpc.getDeleteExecutionMethod = getDeleteExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.DeleteExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("DeleteExecution")) - .build(); - } - } - } - return getDeleteExecutionMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ExecutionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsStub(channel, callOptions); - } - }; - return ExecutionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ExecutionsBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsBlockingStub(channel, callOptions); - } - }; - return ExecutionsBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ExecutionsFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsFutureStub(channel, callOptions); - } - }; - return ExecutionsFutureStub.newStub(factory, channel); - } - - /** - *
-   * Cloud Run Execution Control Plane API.
-   * 
- */ - public static abstract class ExecutionsImplBase implements io.grpc.BindableService { - - /** - *
-     * Gets information about an Execution.
-     * 
- */ - public void getExecution(com.google.cloud.run.v2.GetExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExecutionMethod(), responseObserver); - } - - /** - *
-     * Lists Executions from a Job.
-     * 
- */ - public void listExecutions(com.google.cloud.run.v2.ListExecutionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExecutionsMethod(), responseObserver); - } - - /** - *
-     * Deletes an Execution.
-     * 
- */ - public void deleteExecution(com.google.cloud.run.v2.DeleteExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteExecutionMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.GetExecutionRequest, - com.google.cloud.run.v2.Execution>( - this, METHODID_GET_EXECUTION))) - .addMethod( - getListExecutionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.ListExecutionsRequest, - com.google.cloud.run.v2.ListExecutionsResponse>( - this, METHODID_LIST_EXECUTIONS))) - .addMethod( - getDeleteExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.DeleteExecutionRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_EXECUTION))) - .build(); - } - } - - /** - *
-   * Cloud Run Execution Control Plane API.
-   * 
- */ - public static final class ExecutionsStub extends io.grpc.stub.AbstractAsyncStub { - private ExecutionsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsStub(channel, callOptions); - } - - /** - *
-     * Gets information about an Execution.
-     * 
- */ - public void getExecution(com.google.cloud.run.v2.GetExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Executions from a Job.
-     * 
- */ - public void listExecutions(com.google.cloud.run.v2.ListExecutionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an Execution.
-     * 
- */ - public void deleteExecution(com.google.cloud.run.v2.DeleteExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Cloud Run Execution Control Plane API.
-   * 
- */ - public static final class ExecutionsBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ExecutionsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsBlockingStub(channel, callOptions); - } - - /** - *
-     * Gets information about an Execution.
-     * 
- */ - public com.google.cloud.run.v2.Execution getExecution(com.google.cloud.run.v2.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetExecutionMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Executions from a Job.
-     * 
- */ - public com.google.cloud.run.v2.ListExecutionsResponse listExecutions(com.google.cloud.run.v2.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListExecutionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an Execution.
-     * 
- */ - public com.google.longrunning.Operation deleteExecution(com.google.cloud.run.v2.DeleteExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Cloud Run Execution Control Plane API.
-   * 
- */ - public static final class ExecutionsFutureStub extends io.grpc.stub.AbstractFutureStub { - private ExecutionsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsFutureStub(channel, callOptions); - } - - /** - *
-     * Gets information about an Execution.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getExecution( - com.google.cloud.run.v2.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Executions from a Job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listExecutions( - com.google.cloud.run.v2.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an Execution.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteExecution( - com.google.cloud.run.v2.DeleteExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_EXECUTION = 0; - private static final int METHODID_LIST_EXECUTIONS = 1; - private static final int METHODID_DELETE_EXECUTION = 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 ExecutionsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ExecutionsImplBase 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_EXECUTION: - serviceImpl.getExecution((com.google.cloud.run.v2.GetExecutionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_EXECUTIONS: - serviceImpl.listExecutions((com.google.cloud.run.v2.ListExecutionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_EXECUTION: - serviceImpl.deleteExecution((com.google.cloud.run.v2.DeleteExecutionRequest) 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 ExecutionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ExecutionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.run.v2.ExecutionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Executions"); - } - } - - private static final class ExecutionsFileDescriptorSupplier - extends ExecutionsBaseDescriptorSupplier { - ExecutionsFileDescriptorSupplier() {} - } - - private static final class ExecutionsMethodDescriptorSupplier - extends ExecutionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ExecutionsMethodDescriptorSupplier(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 (ExecutionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) - .addMethod(getGetExecutionMethod()) - .addMethod(getListExecutionsMethod()) - .addMethod(getDeleteExecutionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java deleted file mode 100644 index 606030cb6ebb..000000000000 --- a/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobsGrpc.java +++ /dev/null @@ -1,1003 +0,0 @@ -package com.google.cloud.run.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Cloud Run Job Control Plane API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/job.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class JobsGrpc { - - private JobsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.run.v2.Jobs"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateJob", - requestType = com.google.cloud.run.v2.CreateJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateJobMethod() { - io.grpc.MethodDescriptor getCreateJobMethod; - if ((getCreateJobMethod = JobsGrpc.getCreateJobMethod) == null) { - synchronized (JobsGrpc.class) { - if ((getCreateJobMethod = JobsGrpc.getCreateJobMethod) == null) { - JobsGrpc.getCreateJobMethod = getCreateJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.CreateJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new JobsMethodDescriptorSupplier("CreateJob")) - .build(); - } - } - } - return getCreateJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetJob", - requestType = com.google.cloud.run.v2.GetJobRequest.class, - responseType = com.google.cloud.run.v2.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetJobMethod() { - io.grpc.MethodDescriptor getGetJobMethod; - if ((getGetJobMethod = JobsGrpc.getGetJobMethod) == null) { - synchronized (JobsGrpc.class) { - if ((getGetJobMethod = JobsGrpc.getGetJobMethod) == null) { - JobsGrpc.getGetJobMethod = getGetJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.GetJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobsMethodDescriptorSupplier("GetJob")) - .build(); - } - } - } - return getGetJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getListJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListJobs", - requestType = com.google.cloud.run.v2.ListJobsRequest.class, - responseType = com.google.cloud.run.v2.ListJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListJobsMethod() { - io.grpc.MethodDescriptor getListJobsMethod; - if ((getListJobsMethod = JobsGrpc.getListJobsMethod) == null) { - synchronized (JobsGrpc.class) { - if ((getListJobsMethod = JobsGrpc.getListJobsMethod) == null) { - JobsGrpc.getListJobsMethod = getListJobsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListJobs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListJobsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListJobsResponse.getDefaultInstance())) - .setSchemaDescriptor(new JobsMethodDescriptorSupplier("ListJobs")) - .build(); - } - } - } - return getListJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateJob", - requestType = com.google.cloud.run.v2.UpdateJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateJobMethod() { - io.grpc.MethodDescriptor getUpdateJobMethod; - if ((getUpdateJobMethod = JobsGrpc.getUpdateJobMethod) == null) { - synchronized (JobsGrpc.class) { - if ((getUpdateJobMethod = JobsGrpc.getUpdateJobMethod) == null) { - JobsGrpc.getUpdateJobMethod = getUpdateJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.UpdateJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new JobsMethodDescriptorSupplier("UpdateJob")) - .build(); - } - } - } - return getUpdateJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteJob", - requestType = com.google.cloud.run.v2.DeleteJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteJobMethod() { - io.grpc.MethodDescriptor getDeleteJobMethod; - if ((getDeleteJobMethod = JobsGrpc.getDeleteJobMethod) == null) { - synchronized (JobsGrpc.class) { - if ((getDeleteJobMethod = JobsGrpc.getDeleteJobMethod) == null) { - JobsGrpc.getDeleteJobMethod = getDeleteJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.DeleteJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new JobsMethodDescriptorSupplier("DeleteJob")) - .build(); - } - } - } - return getDeleteJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getRunJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunJob", - requestType = com.google.cloud.run.v2.RunJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRunJobMethod() { - io.grpc.MethodDescriptor getRunJobMethod; - if ((getRunJobMethod = JobsGrpc.getRunJobMethod) == null) { - synchronized (JobsGrpc.class) { - if ((getRunJobMethod = JobsGrpc.getRunJobMethod) == null) { - JobsGrpc.getRunJobMethod = getRunJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.RunJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new JobsMethodDescriptorSupplier("RunJob")) - .build(); - } - } - } - return getRunJobMethod; - } - - 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 = JobsGrpc.getGetIamPolicyMethod) == null) { - synchronized (JobsGrpc.class) { - if ((getGetIamPolicyMethod = JobsGrpc.getGetIamPolicyMethod) == null) { - JobsGrpc.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 JobsMethodDescriptorSupplier("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 = JobsGrpc.getSetIamPolicyMethod) == null) { - synchronized (JobsGrpc.class) { - if ((getSetIamPolicyMethod = JobsGrpc.getSetIamPolicyMethod) == null) { - JobsGrpc.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 JobsMethodDescriptorSupplier("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 = JobsGrpc.getTestIamPermissionsMethod) == null) { - synchronized (JobsGrpc.class) { - if ((getTestIamPermissionsMethod = JobsGrpc.getTestIamPermissionsMethod) == null) { - JobsGrpc.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 JobsMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static JobsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobsStub(channel, callOptions); - } - }; - return JobsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static JobsBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobsBlockingStub(channel, callOptions); - } - }; - return JobsBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static JobsFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobsFutureStub(channel, callOptions); - } - }; - return JobsFutureStub.newStub(factory, channel); - } - - /** - *
-   * Cloud Run Job Control Plane API.
-   * 
- */ - public static abstract class JobsImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a Job.
-     * 
- */ - public void createJob(com.google.cloud.run.v2.CreateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateJobMethod(), responseObserver); - } - - /** - *
-     * Gets information about a Job.
-     * 
- */ - public void getJob(com.google.cloud.run.v2.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); - } - - /** - *
-     * Lists Jobs.
-     * 
- */ - public void listJobs(com.google.cloud.run.v2.ListJobsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); - } - - /** - *
-     * Updates a Job.
-     * 
- */ - public void updateJob(com.google.cloud.run.v2.UpdateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); - } - - /** - *
-     * Deletes a Job.
-     * 
- */ - public void deleteJob(com.google.cloud.run.v2.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); - } - - /** - *
-     * Triggers creation of a new Execution of this Job.
-     * 
- */ - public void runJob(com.google.cloud.run.v2.RunJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunJobMethod(), responseObserver); - } - - /** - *
-     * Get the IAM Access Control policy currently in effect for the given Job.
-     * 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 Job. 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( - getCreateJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.CreateJobRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_JOB))) - .addMethod( - getGetJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.GetJobRequest, - com.google.cloud.run.v2.Job>( - this, METHODID_GET_JOB))) - .addMethod( - getListJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.ListJobsRequest, - com.google.cloud.run.v2.ListJobsResponse>( - this, METHODID_LIST_JOBS))) - .addMethod( - getUpdateJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.UpdateJobRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_JOB))) - .addMethod( - getDeleteJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.DeleteJobRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_JOB))) - .addMethod( - getRunJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.RunJobRequest, - com.google.longrunning.Operation>( - this, METHODID_RUN_JOB))) - .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 Job Control Plane API.
-   * 
- */ - public static final class JobsStub extends io.grpc.stub.AbstractAsyncStub { - private JobsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobsStub(channel, callOptions); - } - - /** - *
-     * Creates a Job.
-     * 
- */ - public void createJob(com.google.cloud.run.v2.CreateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets information about a Job.
-     * 
- */ - public void getJob(com.google.cloud.run.v2.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Jobs.
-     * 
- */ - public void listJobs(com.google.cloud.run.v2.ListJobsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a Job.
-     * 
- */ - public void updateJob(com.google.cloud.run.v2.UpdateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a Job.
-     * 
- */ - public void deleteJob(com.google.cloud.run.v2.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Triggers creation of a new Execution of this Job.
-     * 
- */ - public void runJob(com.google.cloud.run.v2.RunJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get the IAM Access Control policy currently in effect for the given Job.
-     * 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 Job. 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 Job Control Plane API.
-   * 
- */ - public static final class JobsBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private JobsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobsBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a Job.
-     * 
- */ - public com.google.longrunning.Operation createJob(com.google.cloud.run.v2.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets information about a Job.
-     * 
- */ - public com.google.cloud.run.v2.Job getJob(com.google.cloud.run.v2.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Jobs.
-     * 
- */ - public com.google.cloud.run.v2.ListJobsResponse listJobs(com.google.cloud.run.v2.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListJobsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a Job.
-     * 
- */ - public com.google.longrunning.Operation updateJob(com.google.cloud.run.v2.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a Job.
-     * 
- */ - public com.google.longrunning.Operation deleteJob(com.google.cloud.run.v2.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Triggers creation of a new Execution of this Job.
-     * 
- */ - public com.google.longrunning.Operation runJob(com.google.cloud.run.v2.RunJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Get the IAM Access Control policy currently in effect for the given Job.
-     * 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 Job. 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 Job Control Plane API.
-   * 
- */ - public static final class JobsFutureStub extends io.grpc.stub.AbstractFutureStub { - private JobsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobsFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a Job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createJob( - com.google.cloud.run.v2.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets information about a Job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getJob( - com.google.cloud.run.v2.GetJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Jobs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listJobs( - com.google.cloud.run.v2.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a Job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateJob( - com.google.cloud.run.v2.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a Job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteJob( - com.google.cloud.run.v2.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Triggers creation of a new Execution of this Job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture runJob( - com.google.cloud.run.v2.RunJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Get the IAM Access Control policy currently in effect for the given Job.
-     * 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 Job. 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_JOB = 0; - private static final int METHODID_GET_JOB = 1; - private static final int METHODID_LIST_JOBS = 2; - private static final int METHODID_UPDATE_JOB = 3; - private static final int METHODID_DELETE_JOB = 4; - private static final int METHODID_RUN_JOB = 5; - private static final int METHODID_GET_IAM_POLICY = 6; - private static final int METHODID_SET_IAM_POLICY = 7; - private static final int METHODID_TEST_IAM_PERMISSIONS = 8; - - 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 JobsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(JobsImplBase 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_JOB: - serviceImpl.createJob((com.google.cloud.run.v2.CreateJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JOB: - serviceImpl.getJob((com.google.cloud.run.v2.GetJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_JOBS: - serviceImpl.listJobs((com.google.cloud.run.v2.ListJobsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_JOB: - serviceImpl.updateJob((com.google.cloud.run.v2.UpdateJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_JOB: - serviceImpl.deleteJob((com.google.cloud.run.v2.DeleteJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RUN_JOB: - serviceImpl.runJob((com.google.cloud.run.v2.RunJobRequest) 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 JobsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - JobsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.run.v2.JobProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Jobs"); - } - } - - private static final class JobsFileDescriptorSupplier - extends JobsBaseDescriptorSupplier { - JobsFileDescriptorSupplier() {} - } - - private static final class JobsMethodDescriptorSupplier - extends JobsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - JobsMethodDescriptorSupplier(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 (JobsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new JobsFileDescriptorSupplier()) - .addMethod(getCreateJobMethod()) - .addMethod(getGetJobMethod()) - .addMethod(getListJobsMethod()) - .addMethod(getUpdateJobMethod()) - .addMethod(getDeleteJobMethod()) - .addMethod(getRunJobMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionsGrpc.java deleted file mode 100644 index 0276297fd4ae..000000000000 --- a/owl-bot-staging/java-run/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); - } - - /** - *
-     * Lists 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); - } - - /** - *
-     * Deletes 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); - } - - /** - *
-     * Lists 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); - } - - /** - *
-     * Deletes 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); - } - - /** - *
-     * Lists 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); - } - - /** - *
-     * Deletes 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); - } - - /** - *
-     * Lists 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); - } - - /** - *
-     * Deletes 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/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServicesGrpc.java deleted file mode 100644 index c61b0f4f020f..000000000000 --- a/owl-bot-staging/java-run/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); - } - - /** - *
-     * Lists 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); - } - - /** - *
-     * Gets 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); - } - - /** - *
-     * Lists 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); - } - - /** - *
-     * Gets 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); - } - - /** - *
-     * Lists 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); - } - - /** - *
-     * Gets 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); - } - - /** - *
-     * Lists 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); - } - - /** - *
-     * Gets 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/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java b/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java deleted file mode 100644 index fb9c85040af0..000000000000 --- a/owl-bot-staging/java-run/v2/grpc-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TasksGrpc.java +++ /dev/null @@ -1,389 +0,0 @@ -package com.google.cloud.run.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Cloud Run Task Control Plane API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/run/v2/task.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TasksGrpc { - - private TasksGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.run.v2.Tasks"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTask", - requestType = com.google.cloud.run.v2.GetTaskRequest.class, - responseType = com.google.cloud.run.v2.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTaskMethod() { - io.grpc.MethodDescriptor getGetTaskMethod; - if ((getGetTaskMethod = TasksGrpc.getGetTaskMethod) == null) { - synchronized (TasksGrpc.class) { - if ((getGetTaskMethod = TasksGrpc.getGetTaskMethod) == null) { - TasksGrpc.getGetTaskMethod = getGetTaskMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.GetTaskRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.Task.getDefaultInstance())) - .setSchemaDescriptor(new TasksMethodDescriptorSupplier("GetTask")) - .build(); - } - } - } - return getGetTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor getListTasksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTasks", - requestType = com.google.cloud.run.v2.ListTasksRequest.class, - responseType = com.google.cloud.run.v2.ListTasksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTasksMethod() { - io.grpc.MethodDescriptor getListTasksMethod; - if ((getListTasksMethod = TasksGrpc.getListTasksMethod) == null) { - synchronized (TasksGrpc.class) { - if ((getListTasksMethod = TasksGrpc.getListTasksMethod) == null) { - TasksGrpc.getListTasksMethod = getListTasksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTasks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListTasksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.run.v2.ListTasksResponse.getDefaultInstance())) - .setSchemaDescriptor(new TasksMethodDescriptorSupplier("ListTasks")) - .build(); - } - } - } - return getListTasksMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TasksStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TasksStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TasksStub(channel, callOptions); - } - }; - return TasksStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TasksBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TasksBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TasksBlockingStub(channel, callOptions); - } - }; - return TasksBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TasksFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TasksFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TasksFutureStub(channel, callOptions); - } - }; - return TasksFutureStub.newStub(factory, channel); - } - - /** - *
-   * Cloud Run Task Control Plane API.
-   * 
- */ - public static abstract class TasksImplBase implements io.grpc.BindableService { - - /** - *
-     * Gets information about a Task.
-     * 
- */ - public void getTask(com.google.cloud.run.v2.GetTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); - } - - /** - *
-     * Lists Tasks from an Execution of a Job.
-     * 
- */ - public void listTasks(com.google.cloud.run.v2.ListTasksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.GetTaskRequest, - com.google.cloud.run.v2.Task>( - this, METHODID_GET_TASK))) - .addMethod( - getListTasksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.run.v2.ListTasksRequest, - com.google.cloud.run.v2.ListTasksResponse>( - this, METHODID_LIST_TASKS))) - .build(); - } - } - - /** - *
-   * Cloud Run Task Control Plane API.
-   * 
- */ - public static final class TasksStub extends io.grpc.stub.AbstractAsyncStub { - private TasksStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TasksStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TasksStub(channel, callOptions); - } - - /** - *
-     * Gets information about a Task.
-     * 
- */ - public void getTask(com.google.cloud.run.v2.GetTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Tasks from an Execution of a Job.
-     * 
- */ - public void listTasks(com.google.cloud.run.v2.ListTasksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Cloud Run Task Control Plane API.
-   * 
- */ - public static final class TasksBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private TasksBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TasksBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TasksBlockingStub(channel, callOptions); - } - - /** - *
-     * Gets information about a Task.
-     * 
- */ - public com.google.cloud.run.v2.Task getTask(com.google.cloud.run.v2.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTaskMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Tasks from an Execution of a Job.
-     * 
- */ - public com.google.cloud.run.v2.ListTasksResponse listTasks(com.google.cloud.run.v2.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTasksMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Cloud Run Task Control Plane API.
-   * 
- */ - public static final class TasksFutureStub extends io.grpc.stub.AbstractFutureStub { - private TasksFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TasksFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TasksFutureStub(channel, callOptions); - } - - /** - *
-     * Gets information about a Task.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getTask( - com.google.cloud.run.v2.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Tasks from an Execution of a Job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listTasks( - com.google.cloud.run.v2.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_TASK = 0; - private static final int METHODID_LIST_TASKS = 1; - - 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 TasksImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TasksImplBase 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_TASK: - serviceImpl.getTask((com.google.cloud.run.v2.GetTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TASKS: - serviceImpl.listTasks((com.google.cloud.run.v2.ListTasksRequest) 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 TasksBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TasksBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.run.v2.TaskProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Tasks"); - } - } - - private static final class TasksFileDescriptorSupplier - extends TasksBaseDescriptorSupplier { - TasksFileDescriptorSupplier() {} - } - - private static final class TasksMethodDescriptorSupplier - extends TasksBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TasksMethodDescriptorSupplier(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 (TasksGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TasksFileDescriptorSupplier()) - .addMethod(getGetTaskMethod()) - .addMethod(getListTasksMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java deleted file mode 100644 index 6be466ee100a..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/condition.proto - -package com.google.cloud.run.v2; - -public final class ConditionProto { - private ConditionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Condition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Condition_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#google/cloud/run/v2/condition.proto\022\023g" + - "oogle.cloud.run.v2\032\037google/protobuf/time" + - "stamp.proto\"\344\013\n\tCondition\022\014\n\004type\030\001 \001(\t\022" + - "3\n\005state\030\002 \001(\0162$.google.cloud.run.v2.Con" + - "dition.State\022\017\n\007message\030\003 \001(\t\0228\n\024last_tr" + - "ansition_time\030\004 \001(\0132\032.google.protobuf.Ti" + - "mestamp\0229\n\010severity\030\005 \001(\0162\'.google.cloud" + - ".run.v2.Condition.Severity\022=\n\006reason\030\006 \001" + - "(\0162+.google.cloud.run.v2.Condition.Commo" + - "nReasonH\000\022H\n\017revision_reason\030\t \001(\0162-.goo" + - "gle.cloud.run.v2.Condition.RevisionReaso" + - "nH\000\022J\n\020execution_reason\030\013 \001(\0162..google.c" + - "loud.run.v2.Condition.ExecutionReasonH\000\"" + - "\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\025\n\021CONDI" + - "TION_PENDING\020\001\022\031\n\025CONDITION_RECONCILING\020" + - "\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDITION_SUC" + - "CEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY_UNSPECI" + - "FIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003" + - "\"\262\003\n\014CommonReason\022\033\n\027COMMON_REASON_UNDEF" + - "INED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_FAILED\020\003" + - "\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004\022\025\n\021CONT" + - "AINER_MISSING\020\006\022\037\n\033CONTAINER_PERMISSION_" + - "DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAUTHORIZED" + - "\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZATION_CHEC" + - "K_FAILED\020\t\022$\n ENCRYPTION_KEY_PERMISSION_" + - "DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK_FAILED\020" + - "\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED\020\014\022\031\n\025WA" + - "ITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIATE_RETRY" + - "\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTERNAL\020\020\"\257\002" + - "\n\016RevisionReason\022\035\n\031REVISION_REASON_UNDE" + - "FINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020\002\022\013\n\007RET" + - "IRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATING\020\005\022 \n\034" + - "HEALTH_CHECK_CONTAINER_ERROR\020\006\022$\n CUSTOM" + - "IZED_PATH_RESPONSE_PENDING\020\007\022!\n\035MIN_INST" + - "ANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIVE_REVISI" + - "ON_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYMENT\020\n\022\030\n" + - "\024HEALTH_CHECK_SKIPPED\020\013\"~\n\017ExecutionReas" + - "on\022\036\n\032EXECUTION_REASON_UNDEFINED\020\000\022$\n JO" + - "B_STATUS_SERVICE_POLLING_ERROR\020\001\022\026\n\022NON_" + - "ZERO_EXIT_CODE\020\002\022\r\n\tCANCELLED\020\003B\t\n\007reaso" + - "nsBc\n\027com.google.cloud.run.v2B\016Condition" + - "ProtoP\001Z6google.golang.org/genproto/goog" + - "leapis/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", "RevisionReason", "ExecutionReason", "Reasons", }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java deleted file mode 100644 index 131dc5f84903..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java +++ /dev/null @@ -1,209 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/execution.proto - -package com.google.cloud.run.v2; - -public final class ExecutionProto { - private ExecutionProto() {} - 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_GetExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Execution_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Execution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Execution_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Execution_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Execution_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/execution.proto\022\023g" + - "oogle.cloud.run.v2\032\034google/api/annotatio" + - "ns.proto\032\027google/api/client.proto\032\037googl" + - "e/api/field_behavior.proto\032\035google/api/l" + - "aunch_stage.proto\032\031google/api/resource.p" + - "roto\032#google/cloud/run/v2/condition.prot" + - "o\032\'google/cloud/run/v2/task_template.pro" + - "to\032#google/longrunning/operations.proto\032" + - "\037google/protobuf/timestamp.proto\"I\n\023GetE" + - "xecutionRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034r" + - "un.googleapis.com/Execution\"\212\001\n\025ListExec" + - "utionsRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034r" + - "un.googleapis.com/Execution\022\021\n\tpage_size" + - "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_delet" + - "ed\030\004 \001(\010\"e\n\026ListExecutionsResponse\0222\n\nex" + - "ecutions\030\001 \003(\0132\036.google.cloud.run.v2.Exe" + - "cution\022\027\n\017next_page_token\030\002 \001(\t\"q\n\026Delet" + - "eExecutionRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n" + - "\034run.googleapis.com/Execution\022\025\n\rvalidat" + - "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\214\t\n\tExecution" + - "\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\022:\n\006labels\030\004 \003(\0132*" + - ".google.cloud.run.v2.Execution.LabelsEnt" + - "ry\022D\n\013annotations\030\005 \003(\0132/.google.cloud.r" + - "un.v2.Execution.AnnotationsEntry\0224\n\013crea" + - "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" + - "pB\003\340A\003\0223\n\nstart_time\030\026 \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\0228\n\017completion_time\030\007" + - " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + - "\013update_time\030\010 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.googl" + - "e.protobuf.TimestampB\003\340A\003\0224\n\013expire_time" + - "\030\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "-\n\014launch_stage\030\013 \001(\0162\027.google.api.Launc" + - "hStage\022+\n\003job\030\014 \001(\tB\036\340A\003\372A\030\n\026run.googlea" + - "pis.com/Job\022\030\n\013parallelism\030\r \001(\005B\003\340A\003\022\027\n" + - "\ntask_count\030\016 \001(\005B\003\340A\003\0228\n\010template\030\017 \001(\013" + - "2!.google.cloud.run.v2.TaskTemplateB\003\340A\003" + - "\022\030\n\013reconciling\030\020 \001(\010B\003\340A\003\0227\n\nconditions" + - "\030\021 \003(\0132\036.google.cloud.run.v2.ConditionB\003" + - "\340A\003\022 \n\023observed_generation\030\022 \001(\003B\003\340A\003\022\032\n" + - "\rrunning_count\030\023 \001(\005B\003\340A\003\022\034\n\017succeeded_c" + - "ount\030\024 \001(\005B\003\340A\003\022\031\n\014failed_count\030\025 \001(\005B\003\340" + - "A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotati" + - "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - ":o\352Al\n\034run.googleapis.com/Execution\022Ipro" + - "jects/{project}/locations/{location}/job" + - "s/{job}/executions/{execution}R\001\0012\350\004\n\nEx" + - "ecutions\022\236\001\n\014GetExecution\022(.google.cloud" + - ".run.v2.GetExecutionRequest\032\036.google.clo" + - "ud.run.v2.Execution\"D\202\323\344\223\0027\0225/v2/{name=p" + - "rojects/*/locations/*/jobs/*/executions/" + - "*}\332A\004name\022\261\001\n\016ListExecutions\022*.google.cl" + - "oud.run.v2.ListExecutionsRequest\032+.googl" + - "e.cloud.run.v2.ListExecutionsResponse\"F\202" + - "\323\344\223\0027\0225/v2/{parent=projects/*/locations/" + - "*/jobs/*}/executions\332A\006parent\022\274\001\n\017Delete" + - "Execution\022+.google.cloud.run.v2.DeleteEx" + - "ecutionRequest\032\035.google.longrunning.Oper" + - "ation\"]\202\323\344\223\0027*5/v2/{name=projects/*/loca" + - "tions/*/jobs/*/executions/*}\332A\004name\312A\026\n\t" + - "Execution\022\tExecution\032F\312A\022run.googleapis." + - "com\322A.https://www.googleapis.com/auth/cl" + - "oud-platformBc\n\027com.google.cloud.run.v2B" + - "\016ExecutionProtoP\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.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.TaskTemplateProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_GetExecutionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetExecutionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_ListExecutionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListExecutionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_ListExecutionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListExecutionsResponse_descriptor, - new java.lang.String[] { "Executions", "NextPageToken", }); - internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_DeleteExecutionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_DeleteExecutionRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_run_v2_Execution_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_Execution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Execution_descriptor, - new java.lang.String[] { "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "StartTime", "CompletionTime", "UpdateTime", "DeleteTime", "ExpireTime", "LaunchStage", "Job", "Parallelism", "TaskCount", "Template", "Reconciling", "Conditions", "ObservedGeneration", "RunningCount", "SucceededCount", "FailedCount", "Etag", }); - internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Execution_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Execution_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_Execution_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Execution_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Execution_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Execution_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.TaskTemplateProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java deleted file mode 100644 index 157c281e9a1c..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/execution_template.proto - -package com.google.cloud.run.v2; - -public final class ExecutionTemplateProto { - private ExecutionTemplateProto() {} - 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_ExecutionTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ExecutionTemplate_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/execution_template" + - ".proto\022\023google.cloud.run.v2\032\037google/api/" + - "field_behavior.proto\032\'google/cloud/run/v" + - "2/task_template.proto\"\353\002\n\021ExecutionTempl" + - "ate\022B\n\006labels\030\001 \003(\01322.google.cloud.run.v" + - "2.ExecutionTemplate.LabelsEntry\022L\n\013annot" + - "ations\030\002 \003(\01327.google.cloud.run.v2.Execu" + - "tionTemplate.AnnotationsEntry\022\023\n\013paralle" + - "lism\030\003 \001(\005\022\022\n\ntask_count\030\004 \001(\005\0228\n\010templa" + - "te\030\005 \001(\0132!.google.cloud.run.v2.TaskTempl" + - "ateB\003\340A\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bk\n\027com.googl" + - "e.cloud.run.v2B\026ExecutionTemplateProtoP\001" + - "Z6google.golang.org/genproto/googleapis/" + - "cloud/run/v2;runb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.run.v2.TaskTemplateProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_ExecutionTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor, - new java.lang.String[] { "Labels", "Annotations", "Parallelism", "TaskCount", "Template", }); - internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ExecutionTemplate_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_ExecutionTemplate_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ExecutionTemplate_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.run.v2.TaskTemplateProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java deleted file mode 100644 index 1d7059ee5b5f..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetExecutionRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/execution.proto - -package com.google.cloud.run.v2; - -public interface GetExecutionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetExecutionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The full name of the Execution.
-   * Format:
-   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
-   * 
- * - * 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 Execution.
-   * Format:
-   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
-   * 
- * - * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java deleted file mode 100644 index 198f75aa7c4f..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetJobRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/job.proto - -package com.google.cloud.run.v2; - -public interface GetJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The full name of the Job.
-   * Format: projects/{project}/locations/{location}/jobs/{job}
-   * 
- * - * 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 Job.
-   * Format: projects/{project}/locations/{location}/jobs/{job}
-   * 
- * - * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetRevisionRequestOrBuilder.java deleted file mode 100644 index 81c3a8f2eac9..000000000000 --- a/owl-bot-staging/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetServiceRequestOrBuilder.java deleted file mode 100644 index a11975208d43..000000000000 --- a/owl-bot-staging/java-run/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/{project}/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/{project}/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java deleted file mode 100644 index f8f6c1f31415..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GetTaskRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/task.proto - -package com.google.cloud.run.v2; - -public interface GetTaskRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.GetTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The full name of the Task.
-   * Format:
-   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
-   * 
- * - * 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 Task.
-   * Format:
-   * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
-   * 
- * - * 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java deleted file mode 100644 index 124b01d7e2d0..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java +++ /dev/null @@ -1,295 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/job.proto - -package com.google.cloud.run.v2; - -public final class JobProto { - private JobProto() {} - 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_CreateJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_GetJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListJobsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListJobsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RunJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Job_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Job_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Job_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Job_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Job_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ExecutionReference_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ExecutionReference_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\035google/cloud/run/v2/job.proto\022\023google." + - "cloud.run.v2\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\035google/api/launch_" + - "stage.proto\032\031google/api/resource.proto\032#" + - "google/cloud/run/v2/condition.proto\032,goo" + - "gle/cloud/run/v2/execution_template.prot" + - "o\032)google/cloud/run/v2/vendor_settings.p" + - "roto\032\036google/iam/v1/iam_policy.proto\032\032go" + - "ogle/iam/v1/policy.proto\032#google/longrun" + - "ning/operations.proto\032\037google/protobuf/t" + - "imestamp.proto\"\232\001\n\020CreateJobRequest\022.\n\006p" + - "arent\030\001 \001(\tB\036\340A\002\372A\030\022\026run.googleapis.com/" + - "Job\022*\n\003job\030\002 \001(\0132\030.google.cloud.run.v2.J" + - "obB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022\025\n\rvalidate" + - "_only\030\004 \001(\010\"=\n\rGetJobRequest\022,\n\004name\030\001 \001" + - "(\tB\036\340A\002\372A\030\n\026run.googleapis.com/Job\"l\n\020Up" + - "dateJobRequest\022*\n\003job\030\001 \001(\0132\030.google.clo" + - "ud.run.v2.JobB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" + - "\010\022\025\n\rallow_missing\030\004 \001(\010\"~\n\017ListJobsRequ" + - "est\022.\n\006parent\030\001 \001(\tB\036\340A\002\372A\030\022\026run.googlea" + - "pis.com/Job\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\"S\n\020List" + - "JobsResponse\022&\n\004jobs\030\001 \003(\0132\030.google.clou" + - "d.run.v2.Job\022\027\n\017next_page_token\030\002 \001(\t\"e\n" + - "\020DeleteJobRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + - "\026run.googleapis.com/Job\022\025\n\rvalidate_only" + - "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"b\n\rRunJobRequest\022,\n" + - "\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026run.googleapis.com/" + - "Job\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" + - "\"\212\t\n\003Job\022\014\n\004name\030\001 \001(\t\022\020\n\003uid\030\002 \001(\tB\003\340A\003" + - "\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0224\n\006labels\030\004 \003(" + - "\0132$.google.cloud.run.v2.Job.LabelsEntry\022" + - ">\n\013annotations\030\005 \003(\0132).google.cloud.run." + - "v2.Job.AnnotationsEntry\0224\n\013create_time\030\006" + - " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + - "\013update_time\030\007 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.googl" + - "e.protobuf.TimestampB\003\340A\003\0224\n\013expire_time" + - "\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "\024\n\007creator\030\n \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\013" + - " \001(\tB\003\340A\003\022\016\n\006client\030\014 \001(\t\022\026\n\016client_vers" + - "ion\030\r \001(\t\022-\n\014launch_stage\030\016 \001(\0162\027.google" + - ".api.LaunchStage\022F\n\024binary_authorization" + - "\030\017 \001(\0132(.google.cloud.run.v2.BinaryAutho" + - "rization\022=\n\010template\030\020 \001(\0132&.google.clou" + - "d.run.v2.ExecutionTemplateB\003\340A\002\022 \n\023obser" + - "ved_generation\030\021 \001(\003B\003\340A\003\022?\n\022terminal_co" + - "ndition\030\022 \001(\0132\036.google.cloud.run.v2.Cond" + - "itionB\003\340A\003\0227\n\nconditions\030\023 \003(\0132\036.google." + - "cloud.run.v2.ConditionB\003\340A\003\022\034\n\017execution" + - "_count\030\024 \001(\005B\003\340A\003\022N\n\030latest_created_exec" + - "ution\030\026 \001(\0132\'.google.cloud.run.v2.Execut" + - "ionReferenceB\003\340A\003\022\030\n\013reconciling\030\027 \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\020Annotat" + - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001:R\352AO\n\026run.googleapis.com/Job\0222projects" + - "/{project}/locations/{location}/jobs/{jo" + - "b}R\001\001\"\253\001\n\022ExecutionReference\022/\n\004name\030\001 \001" + - "(\tB!\372A\036\n\034run.googleapis.com/Execution\022/\n" + - "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + - "estamp\0223\n\017completion_time\030\003 \001(\0132\032.google" + - ".protobuf.Timestamp2\314\013\n\004Jobs\022\251\001\n\tCreateJ" + - "ob\022%.google.cloud.run.v2.CreateJobReques" + - "t\032\035.google.longrunning.Operation\"V\202\323\344\223\002/" + - "\"(/v2/{parent=projects/*/locations/*}/jo" + - "bs:\003job\332A\021parent,job,job_id\312A\n\n\003Job\022\003Job" + - "\022\177\n\006GetJob\022\".google.cloud.run.v2.GetJobR" + - "equest\032\030.google.cloud.run.v2.Job\"7\202\323\344\223\002*" + - "\022(/v2/{name=projects/*/locations/*/jobs/" + - "*}\332A\004name\022\222\001\n\010ListJobs\022$.google.cloud.ru" + - "n.v2.ListJobsRequest\032%.google.cloud.run." + - "v2.ListJobsResponse\"9\202\323\344\223\002*\022(/v2/{parent" + - "=projects/*/locations/*}/jobs\332A\006parent\022\237" + - "\001\n\tUpdateJob\022%.google.cloud.run.v2.Updat" + - "eJobRequest\032\035.google.longrunning.Operati" + - "on\"L\202\323\344\223\00232,/v2/{job.name=projects/*/loc" + - "ations/*/jobs/*}:\003job\332A\003job\312A\n\n\003Job\022\003Job" + - "\022\227\001\n\tDeleteJob\022%.google.cloud.run.v2.Del" + - "eteJobRequest\032\035.google.longrunning.Opera" + - "tion\"D\202\323\344\223\002**(/v2/{name=projects/*/locat" + - "ions/*/jobs/*}\332A\004name\312A\n\n\003Job\022\003Job\022\244\001\n\006R" + - "unJob\022\".google.cloud.run.v2.RunJobReques" + - "t\032\035.google.longrunning.Operation\"W\202\323\344\223\0021" + - "\",/v2/{name=projects/*/locations/*/jobs/" + - "*}:run:\001*\332A\004name\312A\026\n\tExecution\022\tExecutio" + - "n\022\214\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" + - "mPolicyRequest\032\025.google.iam.v1.Policy\"A\202" + - "\323\344\223\002;\0229/v2/{resource=projects/*/location" + - "s/*/jobs/*}:getIamPolicy\022\217\001\n\014SetIamPolic" + - "y\022\".google.iam.v1.SetIamPolicyRequest\032\025." + - "google.iam.v1.Policy\"D\202\323\344\223\002>\"9/v2/{resou" + - "rce=projects/*/locations/*/jobs/*}:setIa" + - "mPolicy:\001*\022\265\001\n\022TestIamPermissions\022(.goog" + - "le.iam.v1.TestIamPermissionsRequest\032).go" + - "ogle.iam.v1.TestIamPermissionsResponse\"J" + - "\202\323\344\223\002D\"?/v2/{resource=projects/*/locatio" + - "ns/*/jobs/*}:testIamPermissions:\001*\032F\312A\022r" + - "un.googleapis.com\322A.https://www.googleap" + - "is.com/auth/cloud-platformB]\n\027com.google" + - ".cloud.run.v2B\010JobProtoP\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.ExecutionTemplateProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_CreateJobRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_CreateJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_CreateJobRequest_descriptor, - new java.lang.String[] { "Parent", "Job", "JobId", "ValidateOnly", }); - internal_static_google_cloud_run_v2_GetJobRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_GetJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_UpdateJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_UpdateJobRequest_descriptor, - new java.lang.String[] { "Job", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_run_v2_ListJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_ListJobsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListJobsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_cloud_run_v2_ListJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_ListJobsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListJobsResponse_descriptor, - new java.lang.String[] { "Jobs", "NextPageToken", }); - internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_run_v2_DeleteJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_DeleteJobRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_run_v2_RunJobRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_run_v2_RunJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RunJobRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_run_v2_Job_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_run_v2_Job_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Job_descriptor, - new java.lang.String[] { "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Creator", "LastModifier", "Client", "ClientVersion", "LaunchStage", "BinaryAuthorization", "Template", "ObservedGeneration", "TerminalCondition", "Conditions", "ExecutionCount", "LatestCreatedExecution", "Reconciling", "Etag", }); - internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Job_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Job_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_Job_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Job_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Job_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Job_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_ExecutionReference_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_run_v2_ExecutionReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ExecutionReference_descriptor, - new java.lang.String[] { "Name", "CreateTime", "CompletionTime", }); - 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.ExecutionTemplateProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java deleted file mode 100644 index 6dd5adc14dc6..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java +++ /dev/null @@ -1,283 +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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Probe_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Probe_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_HTTPGetAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_HTTPHeader_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_TCPSocketAction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_TCPSocketAction_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\"\234\003\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\022\023\n\013working_dir\030\t \001(\t\0222\n\016liveness" + - "_probe\030\n \001(\0132\032.google.cloud.run.v2.Probe" + - "\0221\n\rstartup_probe\030\013 \001(\0132\032.google.cloud.r" + - "un.v2.Probe\"\236\001\n\024ResourceRequirements\022E\n\006" + - "limits\030\001 \003(\01325.google.cloud.run.v2.Resou" + - "rceRequirements.LimitsEntry\022\020\n\010cpu_idle\030" + - "\002 \001(\010\032-\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\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(\013" + - "2!.google.cloud.run.v2.EnvVarSourceH\000B\010\n" + - "\006values\"N\n\014EnvVarSource\022>\n\016secret_key_re" + - "f\030\001 \001(\0132&.google.cloud.run.v2.SecretKeyS" + - "elector\"\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*secret" + - "manager.googleapis.com/SecretVersion\"5\n\r" + - "ContainerPort\022\014\n\004name\030\001 \001(\t\022\026\n\016container" + - "_port\030\003 \001(\005\"9\n\013VolumeMount\022\021\n\004name\030\001 \001(\t" + - "B\003\340A\002\022\027\n\nmount_path\030\003 \001(\tB\003\340A\002\"\252\001\n\006Volum" + - "e\022\021\n\004name\030\001 \001(\tB\003\340A\002\0229\n\006secret\030\002 \001(\0132\'.g" + - "oogle.cloud.run.v2.SecretVolumeSourceH\000\022" + - "C\n\022cloud_sql_instance\030\003 \001(\0132%.google.clo" + - "ud.run.v2.CloudSqlInstanceH\000B\r\n\013volume_t" + - "ype\"r\n\022SecretVolumeSource\022\023\n\006secret\030\001 \001(" + - "\tB\003\340A\002\0221\n\005items\030\002 \003(\0132\".google.cloud.run" + - ".v2.VersionToPath\022\024\n\014default_mode\030\003 \001(\005\"" + - "A\n\rVersionToPath\022\021\n\004path\030\001 \001(\tB\003\340A\002\022\017\n\007v" + - "ersion\030\002 \001(\t\022\014\n\004mode\030\003 \001(\005\"%\n\020CloudSqlIn" + - "stance\022\021\n\tinstances\030\001 \003(\t\"\364\001\n\005Probe\022\035\n\025i" + - "nitial_delay_seconds\030\001 \001(\005\022\027\n\017timeout_se" + - "conds\030\002 \001(\005\022\026\n\016period_seconds\030\003 \001(\005\022\031\n\021f" + - "ailure_threshold\030\004 \001(\005\0226\n\010http_get\030\005 \001(\013" + - "2\".google.cloud.run.v2.HTTPGetActionH\000\022:" + - "\n\ntcp_socket\030\006 \001(\0132$.google.cloud.run.v2" + - ".TCPSocketActionH\000B\014\n\nprobe_type\"T\n\rHTTP" + - "GetAction\022\014\n\004path\030\001 \001(\t\0225\n\014http_headers\030" + - "\004 \003(\0132\037.google.cloud.run.v2.HTTPHeader\"." + - "\n\nHTTPHeader\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\r\n\005value" + - "\030\002 \001(\t\"\037\n\017TCPSocketAction\022\014\n\004port\030\001 \001(\005B" + - "\366\003\n\027com.google.cloud.run.v2B\013K8sMinProto" + - "P\001Z6google.golang.org/genproto/googleapi" + - "s/cloud/run/v2;run\352Ax\n!cloudkms.googleap" + - "is.com/CryptoKey\022Sprojects/{project}/loc" + - "ations/{location}/keyRings/{key_ring}/cr" + - "yptoKeys/{crypto_key}\352AJ\n#secretmanager." + - "googleapis.com/Secret\022#projects/{project" + - "}/secrets/{secret}\352Ad\n*secretmanager.goo" + - "gleapis.com/SecretVersion\0226projects/{pro" + - "ject}/secrets/{secret}/versions/{version" + - "}\352Ad\n\"vpcaccess.googleapis.com/Connector" + - "\022>projects/{project}/locations/{location" + - "}/connectors/{connector}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", "WorkingDir", "LivenessProbe", "StartupProbe", }); - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_ResourceRequirements_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor, - new java.lang.String[] { "Limits", "CpuIdle", }); - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor = - internal_static_google_cloud_run_v2_ResourceRequirements_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_EnvVar_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_EnvVar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_EnvVar_descriptor, - new java.lang.String[] { "Name", "Value", "ValueSource", "Values", }); - internal_static_google_cloud_run_v2_EnvVarSource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_EnvVarSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_EnvVarSource_descriptor, - new java.lang.String[] { "SecretKeyRef", }); - internal_static_google_cloud_run_v2_SecretKeySelector_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_SecretKeySelector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_SecretKeySelector_descriptor, - new java.lang.String[] { "Secret", "Version", }); - internal_static_google_cloud_run_v2_ContainerPort_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_run_v2_ContainerPort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ContainerPort_descriptor, - new java.lang.String[] { "Name", "ContainerPort", }); - internal_static_google_cloud_run_v2_VolumeMount_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_run_v2_VolumeMount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VolumeMount_descriptor, - new java.lang.String[] { "Name", "MountPath", }); - internal_static_google_cloud_run_v2_Volume_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_run_v2_Volume_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Volume_descriptor, - new java.lang.String[] { "Name", "Secret", "CloudSqlInstance", "VolumeType", }); - internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_run_v2_SecretVolumeSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_SecretVolumeSource_descriptor, - new java.lang.String[] { "Secret", "Items", "DefaultMode", }); - internal_static_google_cloud_run_v2_VersionToPath_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_run_v2_VersionToPath_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VersionToPath_descriptor, - new java.lang.String[] { "Path", "Version", "Mode", }); - internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_run_v2_CloudSqlInstance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_CloudSqlInstance_descriptor, - new java.lang.String[] { "Instances", }); - internal_static_google_cloud_run_v2_Probe_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_run_v2_Probe_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Probe_descriptor, - new java.lang.String[] { "InitialDelaySeconds", "TimeoutSeconds", "PeriodSeconds", "FailureThreshold", "HttpGet", "TcpSocket", "ProbeType", }); - internal_static_google_cloud_run_v2_HTTPGetAction_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_run_v2_HTTPGetAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_HTTPGetAction_descriptor, - new java.lang.String[] { "Path", "HttpHeaders", }); - internal_static_google_cloud_run_v2_HTTPHeader_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_run_v2_HTTPHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_HTTPHeader_descriptor, - new java.lang.String[] { "Name", "Value", }); - internal_static_google_cloud_run_v2_TCPSocketAction_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_run_v2_TCPSocketAction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_TCPSocketAction_descriptor, - new java.lang.String[] { "Port", }); - 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java deleted file mode 100644 index 1829e7d43250..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java +++ /dev/null @@ -1,226 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/revision.proto - -package com.google.cloud.run.v2; - -public final class RevisionProto { - private RevisionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"google/cloud/run/v2/revision.proto\022\023go" + - "ogle.cloud.run.v2\032\034google/api/annotation" + - "s.proto\032\027google/api/client.proto\032\037google" + - "/api/field_behavior.proto\032\035google/api/la" + - "unch_stage.proto\032\031google/api/resource.pr" + - "oto\032\030google/api/routing.proto\032#google/cl" + - "oud/run/v2/condition.proto\032!google/cloud" + - "/run/v2/k8s.min.proto\032)google/cloud/run/" + - "v2/vendor_settings.proto\032#google/longrun" + - "ning/operations.proto\032\036google/protobuf/d" + - "uration.proto\032\037google/protobuf/timestamp" + - ".proto\"G\n\022GetRevisionRequest\0221\n\004name\030\001 \001" + - "(\tB#\340A\002\372A\035\n\033run.googleapis.com/Revision\"" + - "\210\001\n\024ListRevisionsRequest\0223\n\006parent\030\001 \001(\t" + - "B#\340A\002\372A\035\022\033run.googleapis.com/Revision\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" + - "show_deleted\030\004 \001(\010\"b\n\025ListRevisionsRespo" + - "nse\0220\n\trevisions\030\001 \003(\0132\035.google.cloud.ru" + - "n.v2.Revision\022\027\n\017next_page_token\030\002 \001(\t\"o" + - "\n\025DeleteRevisionRequest\0221\n\004name\030\001 \001(\tB#\340" + - "A\002\372A\035\n\033run.googleapis.com/Revision\022\025\n\rva" + - "lidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\301\n\n\010Revi" + - "sion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A" + - "\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0229\n\006labels\030\004 \003" + - "(\0132).google.cloud.run.v2.Revision.Labels" + - "Entry\022C\n\013annotations\030\005 \003(\0132..google.clou" + - "d.run.v2.Revision.AnnotationsEntry\0224\n\013cr" + - "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 " + - "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + - "expire_time\030\t \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\022-\n\014launch_stage\030\n \001(\0162\027.googl" + - "e.api.LaunchStage\0223\n\007service\030\013 \001(\tB\"\340A\003\372" + - "A\034\n\032run.googleapis.com/Service\0225\n\007scalin" + - "g\030\014 \001(\0132$.google.cloud.run.v2.RevisionSc" + - "aling\0222\n\nvpc_access\030\r \001(\0132\036.google.cloud" + - ".run.v2.VpcAccess\022(\n max_instance_reques" + - "t_concurrency\030\" \001(\005\022*\n\007timeout\030\017 \001(\0132\031.g" + - "oogle.protobuf.Duration\022\027\n\017service_accou" + - "nt\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google.cl" + - "oud.run.v2.Container\022,\n\007volumes\030\022 \003(\0132\033." + - "google.cloud.run.v2.Volume\022H\n\025execution_" + - "environment\030\024 \001(\0162).google.cloud.run.v2." + - "ExecutionEnvironment\022>\n\016encryption_key\030\025" + - " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" + - "oKey\022\030\n\013reconciling\030\036 \001(\010B\003\340A\003\0227\n\ncondit" + - "ions\030\037 \003(\0132\036.google.cloud.run.v2.Conditi" + - "onB\003\340A\003\022 \n\023observed_generation\030 \001(\003B\003\340A" + - "\003\022\024\n\007log_uri\030! \001(\tB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340" + - "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n\033run.googleap" + - "is.com/Revision\022Oprojects/{project}/loca" + - "tions/{location}/services/{service}/revi" + - "sions/{revision}R\001\0012\205\006\n\tRevisions\022\322\001\n\013Ge" + - "tRevision\022\'.google.cloud.run.v2.GetRevis" + - "ionRequest\032\035.google.cloud.run.v2.Revisio" + - "n\"{\202\323\344\223\002:\0228/v2/{name=projects/*/location" + - "s/*/services/*/revisions/*}\212\323\344\223\002.\022,\n\004nam" + - "e\022$projects/*/locations/{location=*}/**\332" + - "A\004name\022\347\001\n\rListRevisions\022).google.cloud." + - "run.v2.ListRevisionsRequest\032*.google.clo" + - "ud.run.v2.ListRevisionsResponse\"\177\202\323\344\223\002:\022" + - "8/v2/{parent=projects/*/locations/*/serv" + - "ices/*}/revisions\212\323\344\223\0020\022.\n\006parent\022$proje" + - "cts/*/locations/{location=*}/**\332A\006parent" + - "\022\360\001\n\016DeleteRevision\022*.google.cloud.run.v" + - "2.DeleteRevisionRequest\032\035.google.longrun" + - "ning.Operation\"\222\001\202\323\344\223\002:*8/v2/{name=proje" + - "cts/*/locations/*/services/*/revisions/*" + - "}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{l" + - "ocation=*}/**\332A\004name\312A\024\n\010Revision\022\010Revis" + - "ion\032F\312A\022run.googleapis.com\322A.https://www" + - ".googleapis.com/auth/cloud-platformBb\n\027c" + - "om.google.cloud.run.v2B\rRevisionProtoP\001Z" + - "6google.golang.org/genproto/googleapis/c" + - "loud/run/v2;runb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.cloud.run.v2.ConditionProto.getDescriptor(), - com.google.cloud.run.v2.K8sMinProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_GetRevisionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetRevisionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_ListRevisionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListRevisionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_ListRevisionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListRevisionsResponse_descriptor, - new java.lang.String[] { "Revisions", "NextPageToken", }); - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_DeleteRevisionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_DeleteRevisionRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_run_v2_Revision_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_Revision_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_descriptor, - new java.lang.String[] { "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "LaunchStage", "Service", "Scaling", "VpcAccess", "MaxInstanceRequestConcurrency", "Timeout", "ServiceAccount", "Containers", "Volumes", "ExecutionEnvironment", "EncryptionKey", "Reconciling", "Conditions", "ObservedGeneration", "LogUri", "Etag", }); - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Revision_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Revision_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.LaunchStageProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.cloud.run.v2.ConditionProto.getDescriptor(); - com.google.cloud.run.v2.K8sMinProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java deleted file mode 100644 index 4b86c8be11c4..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/revision_template.proto - -package com.google.cloud.run.v2; - -public final class RevisionTemplateProto { - private RevisionTemplateProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/run/v2/revision_template." + - "proto\022\023google.cloud.run.v2\032\031google/api/r" + - "esource.proto\032!google/cloud/run/v2/k8s.m" + - "in.proto\032)google/cloud/run/v2/vendor_set" + - "tings.proto\032\036google/protobuf/duration.pr" + - "oto\"\377\005\n\020RevisionTemplate\0222\n\010revision\030\001 \001" + - "(\tB \372A\035\n\033run.googleapis.com/Revision\022A\n\006" + - "labels\030\002 \003(\01321.google.cloud.run.v2.Revis" + - "ionTemplate.LabelsEntry\022K\n\013annotations\030\003" + - " \003(\01326.google.cloud.run.v2.RevisionTempl" + - "ate.AnnotationsEntry\0225\n\007scaling\030\004 \001(\0132$." + - "google.cloud.run.v2.RevisionScaling\0222\n\nv" + - "pc_access\030\006 \001(\0132\036.google.cloud.run.v2.Vp" + - "cAccess\022*\n\007timeout\030\010 \001(\0132\031.google.protob" + - "uf.Duration\022\027\n\017service_account\030\t \001(\t\0222\n\n" + - "containers\030\n \003(\0132\036.google.cloud.run.v2.C" + - "ontainer\022,\n\007volumes\030\013 \003(\0132\033.google.cloud" + - ".run.v2.Volume\022H\n\025execution_environment\030" + - "\r \001(\0162).google.cloud.run.v2.ExecutionEnv" + - "ironment\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!c" + - "loudkms.googleapis.com/CryptoKey\022(\n max_" + - "instance_request_concurrency\030\017 \001(\005\032-\n\013La" + - "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001Bj\n\027com.google.cloud.run.v2" + - "B\025RevisionTemplateProtoP\001Z6google.golang" + - ".org/genproto/googleapis/cloud/run/v2;ru" + - "nb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.run.v2.K8sMinProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_RevisionTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor, - new java.lang.String[] { "Revision", "Labels", "Annotations", "Scaling", "VpcAccess", "Timeout", "ServiceAccount", "Containers", "Volumes", "ExecutionEnvironment", "EncryptionKey", "MaxInstanceRequestConcurrency", }); - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionTemplate_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.run.v2.K8sMinProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java deleted file mode 100644 index 6a7900808751..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java +++ /dev/null @@ -1,287 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/service.proto - -package com.google.cloud.run.v2; - -public final class ServiceProto { - private ServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!google/cloud/run/v2/service.proto\022\023goo" + - "gle.cloud.run.v2\032\034google/api/annotations" + - ".proto\032\027google/api/client.proto\032\037google/" + - "api/field_behavior.proto\032\035google/api/lau" + - "nch_stage.proto\032\031google/api/resource.pro" + - "to\032\030google/api/routing.proto\032#google/clo" + - "ud/run/v2/condition.proto\032+google/cloud/" + - "run/v2/revision_template.proto\032(google/c" + - "loud/run/v2/traffic_target.proto\032)google" + - "/cloud/run/v2/vendor_settings.proto\032\036goo" + - "gle/iam/v1/iam_policy.proto\032\032google/iam/" + - "v1/policy.proto\032#google/longrunning/oper" + - "ations.proto\032\037google/protobuf/timestamp." + - "proto\"\256\001\n\024CreateServiceRequest\0222\n\006parent" + - "\030\001 \001(\tB\"\340A\002\372A\034\022\032run.googleapis.com/Servi" + - "ce\0222\n\007service\030\002 \001(\0132\034.google.cloud.run.v" + - "2.ServiceB\003\340A\002\022\027\n\nservice_id\030\003 \001(\tB\003\340A\002\022" + - "\025\n\rvalidate_only\030\004 \001(\010\"x\n\024UpdateServiceR" + - "equest\0222\n\007service\030\001 \001(\0132\034.google.cloud.r" + - "un.v2.ServiceB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(" + - "\010\022\025\n\rallow_missing\030\004 \001(\010\"\206\001\n\023ListService" + - "sRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032run.go" + - "ogleapis.com/Service\022\021\n\tpage_size\030\002 \001(\005\022" + - "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + - "\010\"_\n\024ListServicesResponse\022.\n\010services\030\001 " + - "\003(\0132\034.google.cloud.run.v2.Service\022\027\n\017nex" + - "t_page_token\030\002 \001(\t\"E\n\021GetServiceRequest\022" + - "0\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.co" + - "m/Service\"m\n\024DeleteServiceRequest\0220\n\004nam" + - "e\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.com/Serv" + - "ice\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" + - "\"\230\013\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" + - "n\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\027\n\ngeneration\030" + - "\004 \001(\003B\003\340A\003\0228\n\006labels\030\005 \003(\0132(.google.clou" + - "d.run.v2.Service.LabelsEntry\022B\n\013annotati" + - "ons\030\006 \003(\0132-.google.cloud.run.v2.Service." + - "AnnotationsEntry\0224\n\013create_time\030\007 \001(\0132\032." + - "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + - "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\0224\n\013expire_time\030\n \001(\0132" + - "\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007crea" + - "tor\030\013 \001(\tB\003\340A\003\022\032\n\rlast_modifier\030\014 \001(\tB\003\340" + - "A\003\022\016\n\006client\030\r \001(\t\022\026\n\016client_version\030\016 \001" + - "(\t\0224\n\007ingress\030\017 \001(\0162#.google.cloud.run.v" + - "2.IngressTraffic\022-\n\014launch_stage\030\020 \001(\0162\027" + - ".google.api.LaunchStage\022F\n\024binary_author" + - "ization\030\021 \001(\0132(.google.cloud.run.v2.Bina" + - "ryAuthorization\022<\n\010template\030\022 \001(\0132%.goog" + - "le.cloud.run.v2.RevisionTemplateB\003\340A\002\0223\n" + - "\007traffic\030\023 \003(\0132\".google.cloud.run.v2.Tra" + - "fficTarget\022 \n\023observed_generation\030\036 \001(\003B" + - "\003\340A\003\022?\n\022terminal_condition\030\037 \001(\0132\036.googl" + - "e.cloud.run.v2.ConditionB\003\340A\003\0227\n\nconditi" + - "ons\030 \003(\0132\036.google.cloud.run.v2.Conditio" + - "nB\003\340A\003\022B\n\025latest_ready_revision\030! \001(\tB#\340" + - "A\003\372A\035\n\033run.googleapis.com/Revision\022D\n\027la" + - "test_created_revision\030\" \001(\tB#\340A\003\372A\035\n\033run" + - ".googleapis.com/Revision\022G\n\020traffic_stat" + - "uses\030# \003(\0132(.google.cloud.run.v2.Traffic" + - "TargetStatusB\003\340A\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\030\n\013r" + - "econciling\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003" + - "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis" + - ".com/Service\022:projects/{project}/locatio" + - "ns/{location}/services/{service}R\001\0012\267\r\n\010" + - "Services\022\375\001\n\rCreateService\022).google.clou" + - "d.run.v2.CreateServiceRequest\032\035.google.l" + - "ongrunning.Operation\"\241\001\202\323\344\223\0027\",/v2/{pare" + - "nt=projects/*/locations/*}/services:\007ser" + - "vice\212\323\344\223\002-\022+\n\006parent\022!projects/*/locatio" + - "ns/{location=*}\332A\031parent,service,service" + - "_id\312A\022\n\007Service\022\007Service\022\303\001\n\nGetService\022" + - "&.google.cloud.run.v2.GetServiceRequest\032" + - "\034.google.cloud.run.v2.Service\"o\202\323\344\223\002.\022,/" + - "v2/{name=projects/*/locations/*/services" + - "/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/" + - "{location=*}/**\332A\004name\022\325\001\n\014ListServices\022" + - "(.google.cloud.run.v2.ListServicesReques" + - "t\032).google.cloud.run.v2.ListServicesResp" + - "onse\"p\202\323\344\223\002.\022,/v2/{parent=projects/*/loc" + - "ations/*}/services\212\323\344\223\002-\022+\n\006parent\022!proj" + - "ects/*/locations/{location=*}\332A\006parent\022\374" + - "\001\n\rUpdateService\022).google.cloud.run.v2.U" + - "pdateServiceRequest\032\035.google.longrunning" + - ".Operation\"\240\001\202\323\344\223\002?24/v2/{service.name=p" + - "rojects/*/locations/*/services/*}:\007servi" + - "ce\212\323\344\223\0026\0224\n\014service.name\022$projects/*/loc" + - "ations/{location=*}/**\332A\007service\312A\022\n\007Ser" + - "vice\022\007Service\022\340\001\n\rDeleteService\022).google" + - ".cloud.run.v2.DeleteServiceRequest\032\035.goo" + - "gle.longrunning.Operation\"\204\001\202\323\344\223\002.*,/v2/" + - "{name=projects/*/locations/*/services/*}" + - "\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{lo" + - "cation=*}/**\332A\004name\312A\022\n\007Service\022\007Service" + - "\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam" + - "PolicyRequest\032\025.google.iam.v1.Policy\"E\202\323" + - "\344\223\002?\022=/v2/{resource=projects/*/locations" + - "/*/services/*}:getIamPolicy\022\223\001\n\014SetIamPo" + - "licy\022\".google.iam.v1.SetIamPolicyRequest" + - "\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{re" + - "source=projects/*/locations/*/services/*" + - "}:setIamPolicy:\001*\022\271\001\n\022TestIamPermissions" + - "\022(.google.iam.v1.TestIamPermissionsReque" + - "st\032).google.iam.v1.TestIamPermissionsRes" + - "ponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*/" + - "locations/*/services/*}:testIamPermissio" + - "ns:\001*\032F\312A\022run.googleapis.com\322A.https://w" + - "ww.googleapis.com/auth/cloud-platformBa\n" + - "\027com.google.cloud.run.v2B\014ServiceProtoP\001" + - "Z6google.golang.org/genproto/googleapis/" + - "cloud/run/v2;runb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.LaunchStageProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.cloud.run.v2.ConditionProto.getDescriptor(), - com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(), - com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(), - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_CreateServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_CreateServiceRequest_descriptor, - new java.lang.String[] { "Parent", "Service", "ServiceId", "ValidateOnly", }); - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_UpdateServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_UpdateServiceRequest_descriptor, - new java.lang.String[] { "Service", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_ListServicesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListServicesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_ListServicesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListServicesResponse_descriptor, - new java.lang.String[] { "Services", "NextPageToken", }); - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_GetServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetServiceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_run_v2_DeleteServiceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_DeleteServiceRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_run_v2_Service_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_run_v2_Service_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_descriptor, - new java.lang.String[] { "Name", "Description", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "UpdateTime", "DeleteTime", "ExpireTime", "Creator", "LastModifier", "Client", "ClientVersion", "Ingress", "LaunchStage", "BinaryAuthorization", "Template", "Traffic", "ObservedGeneration", "TerminalCondition", "Conditions", "LatestReadyRevision", "LatestCreatedRevision", "TrafficStatuses", "Uri", "Reconciling", "Etag", }); - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.LaunchStageProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.cloud.run.v2.ConditionProto.getDescriptor(); - com.google.cloud.run.v2.RevisionTemplateProto.getDescriptor(); - com.google.cloud.run.v2.TrafficTargetProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java deleted file mode 100644 index 30ccfe45c046..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java +++ /dev/null @@ -1,19 +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 interface TCPSocketActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TCPSocketAction) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Port number to access on the container. Must be in the range 1 to 65535.
-   * 
- * - * int32 port = 1; - * @return The port. - */ - int getPort(); -} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java deleted file mode 100644 index f4390fa13950..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java +++ /dev/null @@ -1,211 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/task.proto - -package com.google.cloud.run.v2; - -public final class TaskProto { - private TaskProto() {} - 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_GetTaskRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListTasksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_ListTasksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Task_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Task_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Task_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_Task_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_Task_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_TaskAttemptResult_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\036google/cloud/run/v2/task.proto\022\023google" + - ".cloud.run.v2\032\034google/api/annotations.pr" + - "oto\032\027google/api/client.proto\032\037google/api" + - "/field_behavior.proto\032\031google/api/resour" + - "ce.proto\032#google/cloud/run/v2/condition." + - "proto\032!google/cloud/run/v2/k8s.min.proto" + - "\032)google/cloud/run/v2/vendor_settings.pr" + - "oto\032\036google/protobuf/duration.proto\032\037goo" + - "gle/protobuf/timestamp.proto\032\027google/rpc" + - "/status.proto\"?\n\016GetTaskRequest\022-\n\004name\030" + - "\001 \001(\tB\037\340A\002\372A\031\n\027run.googleapis.com/Task\"\200" + - "\001\n\020ListTasksRequest\022/\n\006parent\030\001 \001(\tB\037\340A\002" + - "\372A\031\022\027run.googleapis.com/Task\022\021\n\tpage_siz" + - "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_dele" + - "ted\030\004 \001(\010\"V\n\021ListTasksResponse\022(\n\005tasks\030" + - "\001 \003(\0132\031.google.cloud.run.v2.Task\022\027\n\017next" + - "_page_token\030\002 \001(\t\"\303\013\n\004Task\022\021\n\004name\030\001 \001(\t" + - "B\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\0225\n\006labels\030\004 \003(\0132%.google.cloud." + - "run.v2.Task.LabelsEntry\022?\n\013annotations\030\005" + - " \003(\0132*.google.cloud.run.v2.Task.Annotati" + - "onsEntry\0224\n\013create_time\030\006 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\0223\n\nstart_time\030\033 \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\003\0228\n\017c" + - "ompletion_time\030\007 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.goo" + - "gle.protobuf.TimestampB\003\340A\003\0224\n\013delete_ti" + - "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\0224\n\013expire_time\030\n \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\022+\n\003job\030\014 \001(\tB\036\340A\003\372A\030\n\026ru" + - "n.googleapis.com/Job\0227\n\texecution\030\r \001(\tB" + - "$\340A\003\372A\036\n\034run.googleapis.com/Execution\0222\n" + - "\ncontainers\030\016 \003(\0132\036.google.cloud.run.v2." + - "Container\022,\n\007volumes\030\017 \003(\0132\033.google.clou" + - "d.run.v2.Volume\022\023\n\013max_retries\030\020 \001(\005\022*\n\007" + - "timeout\030\021 \001(\0132\031.google.protobuf.Duration" + - "\022\027\n\017service_account\030\022 \001(\t\022H\n\025execution_e" + - "nvironment\030\024 \001(\0162).google.cloud.run.v2.E" + - "xecutionEnvironment\022\030\n\013reconciling\030\025 \001(\010" + - "B\003\340A\003\0227\n\nconditions\030\026 \003(\0132\036.google.cloud" + - ".run.v2.ConditionB\003\340A\003\022 \n\023observed_gener" + - "ation\030\027 \001(\003B\003\340A\003\022\022\n\005index\030\030 \001(\005B\003\340A\003\022\024\n\007" + - "retried\030\031 \001(\005B\003\340A\003\022H\n\023last_attempt_resul" + - "t\030\032 \001(\0132&.google.cloud.run.v2.TaskAttemp" + - "tResultB\003\340A\003\022A\n\016encryption_key\030\034 \001(\tB)\340A" + - "\003\372A#\n!cloudkms.googleapis.com/CryptoKey\022" + - "7\n\nvpc_access\030\035 \001(\0132\036.google.cloud.run.v" + - "2.VpcAccessB\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013L" + - "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001:w\352At\n\027run.googleapis.com/" + - "Task\022Vprojects/{project}/locations/{loca" + - "tion}/jobs/{job}/executions/{execution}/" + - "tasks/{task}R\001\001\"T\n\021TaskAttemptResult\022\'\n\006" + - "status\030\001 \001(\0132\022.google.rpc.StatusB\003\340A\003\022\026\n" + - "\texit_code\030\002 \001(\005B\003\340A\0032\226\003\n\005Tasks\022\227\001\n\007GetT" + - "ask\022#.google.cloud.run.v2.GetTaskRequest" + - "\032\031.google.cloud.run.v2.Task\"L\202\323\344\223\002?\022=/v2" + - "/{name=projects/*/locations/*/jobs/*/exe" + - "cutions/*/tasks/*}\332A\004name\022\252\001\n\tListTasks\022" + - "%.google.cloud.run.v2.ListTasksRequest\032&" + - ".google.cloud.run.v2.ListTasksResponse\"N" + - "\202\323\344\223\002?\022=/v2/{parent=projects/*/locations" + - "/*/jobs/*/executions/*}/tasks\332A\006parent\032F" + - "\312A\022run.googleapis.com\322A.https://www.goog" + - "leapis.com/auth/cloud-platformB^\n\027com.go" + - "ogle.cloud.run.v2B\tTaskProtoP\001Z6google.g" + - "olang.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.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.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_GetTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_GetTaskRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_GetTaskRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_run_v2_ListTasksRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_ListTasksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListTasksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_cloud_run_v2_ListTasksResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_ListTasksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_ListTasksResponse_descriptor, - new java.lang.String[] { "Tasks", "NextPageToken", }); - internal_static_google_cloud_run_v2_Task_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_run_v2_Task_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Task_descriptor, - new java.lang.String[] { "Name", "Uid", "Generation", "Labels", "Annotations", "CreateTime", "StartTime", "CompletionTime", "UpdateTime", "DeleteTime", "ExpireTime", "Job", "Execution", "Containers", "Volumes", "MaxRetries", "Timeout", "ServiceAccount", "ExecutionEnvironment", "Reconciling", "Conditions", "ObservedGeneration", "Index", "Retried", "LastAttemptResult", "EncryptionKey", "VpcAccess", "Etag", }); - internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor = - internal_static_google_cloud_run_v2_Task_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_run_v2_Task_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_Task_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Task_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_run_v2_Task_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_Task_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_run_v2_TaskAttemptResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_TaskAttemptResult_descriptor, - new java.lang.String[] { "Status", "ExitCode", }); - 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); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.run.v2.ConditionProto.getDescriptor(); - com.google.cloud.run.v2.K8sMinProto.getDescriptor(); - com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java deleted file mode 100644 index 6640e3970426..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java +++ /dev/null @@ -1,76 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/task_template.proto - -package com.google.cloud.run.v2; - -public final class TaskTemplateProto { - private TaskTemplateProto() {} - 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_TaskTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_TaskTemplate_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/task_template.prot" + - "o\022\023google.cloud.run.v2\032\031google/api/resou" + - "rce.proto\032!google/cloud/run/v2/k8s.min.p" + - "roto\032)google/cloud/run/v2/vendor_setting" + - "s.proto\032\036google/protobuf/duration.proto\"" + - "\225\003\n\014TaskTemplate\0222\n\ncontainers\030\001 \003(\0132\036.g" + - "oogle.cloud.run.v2.Container\022,\n\007volumes\030" + - "\002 \003(\0132\033.google.cloud.run.v2.Volume\022\025\n\013ma" + - "x_retries\030\003 \001(\005H\000\022*\n\007timeout\030\004 \001(\0132\031.goo" + - "gle.protobuf.Duration\022\027\n\017service_account" + - "\030\005 \001(\t\022H\n\025execution_environment\030\006 \001(\0162)." + - "google.cloud.run.v2.ExecutionEnvironment" + - "\022>\n\016encryption_key\030\007 \001(\tB&\372A#\n!cloudkms." + - "googleapis.com/CryptoKey\0222\n\nvpc_access\030\010" + - " \001(\0132\036.google.cloud.run.v2.VpcAccessB\t\n\007" + - "retriesBf\n\027com.google.cloud.run.v2B\021Task" + - "TemplateProtoP\001Z6google.golang.org/genpr" + - "oto/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(), - 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_TaskTemplate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_TaskTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_TaskTemplate_descriptor, - new java.lang.String[] { "Containers", "Volumes", "MaxRetries", "Timeout", "ServiceAccount", "ExecutionEnvironment", "EncryptionKey", "VpcAccess", "Retries", }); - 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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TrafficTargetProto.java deleted file mode 100644 index 41e7bb879597..000000000000 --- a/owl-bot-staging/java-run/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/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java deleted file mode 100644 index 53c79f97fad9..000000000000 --- a/owl-bot-staging/java-run/v2/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ /dev/null @@ -1,96 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/run/v2/vendor_settings.proto - -package com.google.cloud.run.v2; - -public final class VendorSettingsProto { - private VendorSettingsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_VpcAccess_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_run_v2_RevisionScaling_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/run/v2/vendor_settings.pr" + - "oto\022\023google.cloud.run.v2\032\031google/api/res" + - "ource.proto\"\324\001\n\tVpcAccess\022:\n\tconnector\030\001" + - " \001(\tB\'\372A$\n\"vpcaccess.googleapis.com/Conn" + - "ector\0228\n\006egress\030\002 \001(\0162(.google.cloud.run" + - ".v2.VpcAccess.VpcEgress\"Q\n\tVpcEgress\022\032\n\026" + - "VPC_EGRESS_UNSPECIFIED\020\000\022\017\n\013ALL_TRAFFIC\020" + - "\001\022\027\n\023PRIVATE_RANGES_ONLY\020\002\"a\n\023BinaryAuth" + - "orization\022\025\n\013use_default\030\001 \001(\010H\000\022 \n\030brea" + - "kglass_justification\030\002 \001(\tB\021\n\017binauthz_m" + - "ethod\"I\n\017RevisionScaling\022\032\n\022min_instance" + - "_count\030\001 \001(\005\022\032\n\022max_instance_count\030\002 \001(\005" + - "*\231\001\n\016IngressTraffic\022\037\n\033INGRESS_TRAFFIC_U" + - "NSPECIFIED\020\000\022\027\n\023INGRESS_TRAFFIC_ALL\020\001\022!\n" + - "\035INGRESS_TRAFFIC_INTERNAL_ONLY\020\002\022*\n&INGR" + - "ESS_TRAFFIC_INTERNAL_LOAD_BALANCER\020\003*}\n\024" + - "ExecutionEnvironment\022%\n!EXECUTION_ENVIRO" + - "NMENT_UNSPECIFIED\020\000\022\036\n\032EXECUTION_ENVIRON" + - "MENT_GEN1\020\001\022\036\n\032EXECUTION_ENVIRONMENT_GEN" + - "2\020\002Bh\n\027com.google.cloud.run.v2B\023VendorSe" + - "ttingsProtoP\001Z6google.golang.org/genprot" + - "o/googleapis/cloud/run/v2;runb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_run_v2_VpcAccess_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_run_v2_VpcAccess_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_VpcAccess_descriptor, - new java.lang.String[] { "Connector", "Egress", }); - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_run_v2_BinaryAuthorization_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_BinaryAuthorization_descriptor, - new java.lang.String[] { "UseDefault", "BreakglassJustification", "BinauthzMethod", }); - internal_static_google_cloud_run_v2_RevisionScaling_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_run_v2_RevisionScaling_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_run_v2_RevisionScaling_descriptor, - new java.lang.String[] { "MinInstanceCount", "MaxInstanceCount", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}