From b106a7966d2273c813312fffe66709e2c3f14186 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 19 Feb 2024 10:01:16 +0000 Subject: [PATCH 1/2] docs: refine proto comment for run_as_non_root docs: add caution messages for container runnable username and password fields PiperOrigin-RevId: 608240389 Source-Link: https://github.com/googleapis/googleapis/commit/6f599f0782b0922a8b794dc35575288abf7debc9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6af0d38d953e7a5f9427d650ebcd3726fe286dce Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiNmFmMGQzOGQ5NTNlN2E1Zjk0MjdkNjUwZWJjZDM3MjZmZTI4NmRjZSJ9 --- .../cloud/batch/v1alpha/BatchServiceGrpc.java | 927 -- .../com/google/cloud/batch/v1/BatchProto.java | 263 - .../batch/v1/GetJobRequestOrBuilder.java | 55 - .../batch/v1/GetTaskRequestOrBuilder.java | 55 - .../com/google/cloud/batch/v1/JobProto.java | 509 -- .../batch/v1/TaskExecutionOrBuilder.java | 40 - .../com/google/cloud/batch/v1/TaskProto.java | 386 - .../google/cloud/batch/v1/VolumeProto.java | 94 - .../cloud/batch/v1alpha/BatchProto.java | 267 - .../batch/v1alpha/GetJobRequestOrBuilder.java | 55 - .../v1alpha/GetTaskRequestOrBuilder.java | 55 - .../google/cloud/batch/v1alpha/JobProto.java | 630 -- .../batch/v1alpha/ResourceUsageOrBuilder.java | 39 - .../google/cloud/batch/v1alpha/TaskProto.java | 407 - .../v1alpha/TaskResourceUsageOrBuilder.java | 40 - .../cloud/batch/v1alpha/VolumeProto.java | 111 - .../cloud/batch/v1/BatchServiceClient.java | 0 .../cloud/batch/v1/BatchServiceSettings.java | 1 + .../google/cloud/batch/v1/gapic_metadata.json | 0 .../google/cloud/batch/v1/package-info.java | 0 .../cloud/batch/v1/stub/BatchServiceStub.java | 0 .../v1/stub/BatchServiceStubSettings.java | 0 .../stub/GrpcBatchServiceCallableFactory.java | 0 .../batch/v1/stub/GrpcBatchServiceStub.java | 1 + .../HttpJsonBatchServiceCallableFactory.java | 0 .../v1/stub/HttpJsonBatchServiceStub.java | 1 + .../reflect-config.json | 0 .../v1/BatchServiceClientHttpJsonTest.java | 0 .../batch/v1/BatchServiceClientTest.java | 0 .../cloud/batch/v1/MockBatchService.java | 0 .../cloud/batch/v1/MockBatchServiceImpl.java | 0 .../google/cloud/batch/v1/MockLocations.java | 0 .../cloud/batch/v1/MockLocationsImpl.java | 0 .../cloud/batch/v1/BatchServiceGrpc.java | 587 +- .../cloud/batch/v1/AllocationPolicy.java | 6426 +++++-------- .../batch/v1/AllocationPolicyOrBuilder.java | 132 +- .../com/google/cloud/batch/v1/BatchProto.java | 234 + .../cloud/batch/v1/ComputeResource.java | 345 +- .../batch/v1/ComputeResourceOrBuilder.java | 27 +- .../cloud/batch/v1/CreateJobRequest.java | 566 +- .../batch/v1/CreateJobRequestOrBuilder.java | 61 +- .../cloud/batch/v1/DeleteJobRequest.java | 456 +- .../batch/v1/DeleteJobRequestOrBuilder.java | 45 +- .../google/cloud/batch/v1/Environment.java | 1196 ++- .../cloud/batch/v1/EnvironmentOrBuilder.java | 86 +- .../java/com/google/cloud/batch/v1/GCS.java | 299 +- .../google/cloud/batch/v1/GCSOrBuilder.java | 27 +- .../google/cloud/batch/v1/GetJobRequest.java | 337 +- .../batch/v1/GetJobRequestOrBuilder.java | 30 + .../google/cloud/batch/v1/GetTaskRequest.java | 337 +- .../batch/v1/GetTaskRequestOrBuilder.java | 30 + .../java/com/google/cloud/batch/v1/Job.java | 1635 ++-- .../com/google/cloud/batch/v1/JobName.java | 0 .../cloud/batch/v1/JobNotification.java | 877 +- .../batch/v1/JobNotificationOrBuilder.java | 35 +- .../google/cloud/batch/v1/JobOrBuilder.java | 192 +- .../com/google/cloud/batch/v1/JobProto.java | 445 + .../com/google/cloud/batch/v1/JobStatus.java | 2160 ++--- .../cloud/batch/v1/JobStatusOrBuilder.java | 93 +- .../cloud/batch/v1/LifecyclePolicy.java | 811 +- .../batch/v1/LifecyclePolicyOrBuilder.java | 32 +- .../cloud/batch/v1/ListJobsRequest.java | 561 +- .../batch/v1/ListJobsRequestOrBuilder.java | 57 +- .../cloud/batch/v1/ListJobsResponse.java | 585 +- .../batch/v1/ListJobsResponseOrBuilder.java | 64 +- .../cloud/batch/v1/ListTasksRequest.java | 515 +- .../batch/v1/ListTasksRequestOrBuilder.java | 56 +- .../cloud/batch/v1/ListTasksResponse.java | 582 +- .../batch/v1/ListTasksResponseOrBuilder.java | 64 +- .../google/cloud/batch/v1/LocationName.java | 0 .../com/google/cloud/batch/v1/LogsPolicy.java | 886 +- .../cloud/batch/v1/LogsPolicyOrBuilder.java | 53 +- .../java/com/google/cloud/batch/v1/NFS.java | 371 +- .../google/cloud/batch/v1/NFSOrBuilder.java | 36 +- .../cloud/batch/v1/OperationMetadata.java | 816 +- .../batch/v1/OperationMetadataOrBuilder.java | 91 +- .../com/google/cloud/batch/v1/Runnable.java | 3251 +++---- .../cloud/batch/v1/RunnableOrBuilder.java | 106 +- .../google/cloud/batch/v1/ServiceAccount.java | 417 +- .../batch/v1/ServiceAccountOrBuilder.java | 45 +- .../google/cloud/batch/v1/StatusEvent.java | 607 +- .../cloud/batch/v1/StatusEventOrBuilder.java | 58 +- .../java/com/google/cloud/batch/v1/Task.java | 387 +- .../google/cloud/batch/v1/TaskExecution.java | 271 +- .../batch/v1/TaskExecutionOrBuilder.java | 21 + .../com/google/cloud/batch/v1/TaskGroup.java | 967 +- .../google/cloud/batch/v1/TaskGroupName.java | 0 .../cloud/batch/v1/TaskGroupOrBuilder.java | 97 +- .../com/google/cloud/batch/v1/TaskName.java | 0 .../google/cloud/batch/v1/TaskOrBuilder.java | 35 +- .../com/google/cloud/batch/v1/TaskProto.java | 329 + .../com/google/cloud/batch/v1/TaskSpec.java | 1274 +-- .../cloud/batch/v1/TaskSpecOrBuilder.java | 137 +- .../com/google/cloud/batch/v1/TaskStatus.java | 536 +- .../cloud/batch/v1/TaskStatusOrBuilder.java | 42 +- .../com/google/cloud/batch/v1/Volume.java | 748 +- .../cloud/batch/v1/VolumeOrBuilder.java | 73 +- .../google/cloud/batch/v1/VolumeProto.java | 81 + .../proto/google/cloud/batch/v1/batch.proto | 0 .../proto/google/cloud/batch/v1/job.proto | 11 +- .../proto/google/cloud/batch/v1/task.proto | 41 +- .../proto/google/cloud/batch/v1/volume.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createjob/AsyncCreateJob.java | 0 .../batchservice/createjob/SyncCreateJob.java | 0 .../SyncCreateJobLocationnameJobString.java | 0 .../SyncCreateJobStringJobString.java | 0 .../deletejob/AsyncDeleteJob.java | 0 .../deletejob/AsyncDeleteJobLRO.java | 0 .../batchservice/deletejob/SyncDeleteJob.java | 0 .../deletejob/SyncDeleteJobString.java | 0 .../v1/batchservice/getjob/AsyncGetJob.java | 0 .../v1/batchservice/getjob/SyncGetJob.java | 0 .../getjob/SyncGetJobJobname.java | 0 .../batchservice/getjob/SyncGetJobString.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../v1/batchservice/gettask/AsyncGetTask.java | 0 .../v1/batchservice/gettask/SyncGetTask.java | 0 .../gettask/SyncGetTaskString.java | 0 .../gettask/SyncGetTaskTaskname.java | 0 .../batchservice/listjobs/AsyncListJobs.java | 0 .../listjobs/AsyncListJobsPaged.java | 0 .../batchservice/listjobs/SyncListJobs.java | 0 .../listjobs/SyncListJobsString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../listtasks/AsyncListTasks.java | 0 .../listtasks/AsyncListTasksPaged.java | 0 .../batchservice/listtasks/SyncListTasks.java | 0 .../listtasks/SyncListTasksString.java | 0 .../listtasks/SyncListTasksTaskgroupname.java | 0 .../createjob/SyncCreateJob.java | 0 .../createjob/SyncCreateJob.java | 0 .../batch/v1alpha/BatchServiceClient.java | 0 .../batch/v1alpha/BatchServiceSettings.java | 1 + .../cloud/batch/v1alpha/gapic_metadata.json | 0 .../cloud/batch/v1alpha/package-info.java | 0 .../batch/v1alpha/stub/BatchServiceStub.java | 0 .../stub/BatchServiceStubSettings.java | 0 .../stub/GrpcBatchServiceCallableFactory.java | 0 .../v1alpha/stub/GrpcBatchServiceStub.java | 1 + .../HttpJsonBatchServiceCallableFactory.java | 0 .../stub/HttpJsonBatchServiceStub.java | 1 + .../reflect-config.json | 0 .../BatchServiceClientHttpJsonTest.java | 0 .../batch/v1alpha/BatchServiceClientTest.java | 0 .../cloud/batch/v1alpha/MockBatchService.java | 0 .../batch/v1alpha/MockBatchServiceImpl.java | 0 .../cloud/batch/v1alpha/MockLocations.java | 0 .../batch/v1alpha/MockLocationsImpl.java | 0 .../cloud/batch/v1alpha/BatchServiceGrpc.java | 765 ++ .../cloud/batch/v1alpha/AllocationPolicy.java | 7946 ++++++----------- .../v1alpha/AllocationPolicyOrBuilder.java | 303 +- .../cloud/batch/v1alpha/BatchProto.java | 238 + .../cloud/batch/v1alpha/ComputeResource.java | 379 +- .../v1alpha/ComputeResourceOrBuilder.java | 30 +- .../cloud/batch/v1alpha/CreateJobRequest.java | 596 +- .../v1alpha/CreateJobRequestOrBuilder.java | 61 +- .../cloud/batch/v1alpha/DeleteJobRequest.java | 459 +- .../v1alpha/DeleteJobRequestOrBuilder.java | 45 +- .../cloud/batch/v1alpha/Environment.java | 1215 ++- .../batch/v1alpha/EnvironmentOrBuilder.java | 86 +- .../com/google/cloud/batch/v1alpha/GCS.java | 305 +- .../cloud/batch/v1alpha/GCSOrBuilder.java | 27 +- .../cloud/batch/v1alpha/GetJobRequest.java | 340 +- .../batch/v1alpha/GetJobRequestOrBuilder.java | 30 + .../cloud/batch/v1alpha/GetTaskRequest.java | 340 +- .../v1alpha/GetTaskRequestOrBuilder.java | 30 + .../com/google/cloud/batch/v1alpha/Job.java | 2092 ++--- .../cloud/batch/v1alpha/JobDependency.java | 686 +- .../batch/v1alpha/JobDependencyOrBuilder.java | 71 +- .../google/cloud/batch/v1alpha/JobName.java | 0 .../cloud/batch/v1alpha/JobNotification.java | 905 +- .../v1alpha/JobNotificationOrBuilder.java | 35 +- .../cloud/batch/v1alpha/JobOrBuilder.java | 244 +- .../google/cloud/batch/v1alpha/JobProto.java | 523 ++ .../google/cloud/batch/v1alpha/JobStatus.java | 2307 ++--- .../batch/v1alpha/JobStatusOrBuilder.java | 98 +- .../cloud/batch/v1alpha/LifecyclePolicy.java | 866 +- .../v1alpha/LifecyclePolicyOrBuilder.java | 35 +- .../cloud/batch/v1alpha/ListJobsRequest.java | 561 +- .../v1alpha/ListJobsRequestOrBuilder.java | 57 +- .../cloud/batch/v1alpha/ListJobsResponse.java | 589 +- .../v1alpha/ListJobsResponseOrBuilder.java | 64 +- .../cloud/batch/v1alpha/ListTasksRequest.java | 592 +- .../v1alpha/ListTasksRequestOrBuilder.java | 65 +- .../batch/v1alpha/ListTasksResponse.java | 587 +- .../v1alpha/ListTasksResponseOrBuilder.java | 64 +- .../cloud/batch/v1alpha/LocationName.java | 0 .../cloud/batch/v1alpha/LogsPolicy.java | 920 +- .../batch/v1alpha/LogsPolicyOrBuilder.java | 56 +- .../com/google/cloud/batch/v1alpha/NFS.java | 377 +- .../cloud/batch/v1alpha/NFSOrBuilder.java | 36 +- .../batch/v1alpha/OperationMetadata.java | 823 +- .../v1alpha/OperationMetadataOrBuilder.java | 91 +- .../com/google/cloud/batch/v1alpha/PD.java | 439 +- .../cloud/batch/v1alpha/PDOrBuilder.java | 46 +- .../cloud/batch/v1alpha/ResourceUsage.java | 280 +- .../batch/v1alpha/ResourceUsageOrBuilder.java | 20 + .../google/cloud/batch/v1alpha/Runnable.java | 2906 +++--- .../batch/v1alpha/RunnableOrBuilder.java | 106 +- .../cloud/batch/v1alpha/ServiceAccount.java | 420 +- .../v1alpha/ServiceAccountOrBuilder.java | 45 +- .../cloud/batch/v1alpha/StatusEvent.java | 618 +- .../batch/v1alpha/StatusEventOrBuilder.java | 58 +- .../com/google/cloud/batch/v1alpha/Task.java | 401 +- .../cloud/batch/v1alpha/TaskExecution.java | 343 +- .../batch/v1alpha/TaskExecutionOrBuilder.java | 30 +- .../google/cloud/batch/v1alpha/TaskGroup.java | 1264 +-- .../cloud/batch/v1alpha/TaskGroupName.java | 0 .../batch/v1alpha/TaskGroupOrBuilder.java | 127 +- .../google/cloud/batch/v1alpha/TaskName.java | 0 .../cloud/batch/v1alpha/TaskOrBuilder.java | 35 +- .../google/cloud/batch/v1alpha/TaskProto.java | 347 + .../batch/v1alpha/TaskResourceUsage.java | 287 +- .../v1alpha/TaskResourceUsageOrBuilder.java | 21 + .../google/cloud/batch/v1alpha/TaskSpec.java | 1276 +-- .../batch/v1alpha/TaskSpecOrBuilder.java | 135 +- .../cloud/batch/v1alpha/TaskStatus.java | 635 +- .../batch/v1alpha/TaskStatusOrBuilder.java | 50 +- .../google/cloud/batch/v1alpha/Volume.java | 911 +- .../cloud/batch/v1alpha/VolumeOrBuilder.java | 98 +- .../cloud/batch/v1alpha/VolumeProto.java | 95 + .../google/cloud/batch/v1alpha/batch.proto | 0 .../google/cloud/batch/v1alpha/job.proto | 0 .../google/cloud/batch/v1alpha/task.proto | 0 .../google/cloud/batch/v1alpha/volume.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createjob/AsyncCreateJob.java | 0 .../batchservice/createjob/SyncCreateJob.java | 0 .../SyncCreateJobLocationnameJobString.java | 0 .../SyncCreateJobStringJobString.java | 0 .../deletejob/AsyncDeleteJob.java | 0 .../deletejob/AsyncDeleteJobLRO.java | 0 .../batchservice/deletejob/SyncDeleteJob.java | 0 .../deletejob/SyncDeleteJobString.java | 0 .../batchservice/getjob/AsyncGetJob.java | 0 .../batchservice/getjob/SyncGetJob.java | 0 .../getjob/SyncGetJobJobname.java | 0 .../batchservice/getjob/SyncGetJobString.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../batchservice/gettask/AsyncGetTask.java | 0 .../batchservice/gettask/SyncGetTask.java | 0 .../gettask/SyncGetTaskString.java | 0 .../gettask/SyncGetTaskTaskname.java | 0 .../batchservice/listjobs/AsyncListJobs.java | 0 .../listjobs/AsyncListJobsPaged.java | 0 .../batchservice/listjobs/SyncListJobs.java | 0 .../listjobs/SyncListJobsString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../listtasks/AsyncListTasks.java | 0 .../listtasks/AsyncListTasksPaged.java | 0 .../batchservice/listtasks/SyncListTasks.java | 0 .../listtasks/SyncListTasksString.java | 0 .../listtasks/SyncListTasksTaskgroupname.java | 0 .../createjob/SyncCreateJob.java | 0 .../createjob/SyncCreateJob.java | 0 266 files changed, 27784 insertions(+), 44859 deletions(-) delete mode 100644 java-batch/grpc-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceGrpc.java delete mode 100644 java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java delete mode 100644 java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java delete mode 100644 java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java delete mode 100644 java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java delete mode 100644 java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java delete mode 100644 java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskProto.java delete mode 100644 java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeProto.java delete mode 100644 java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java delete mode 100644 java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetJobRequestOrBuilder.java delete mode 100644 java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetTaskRequestOrBuilder.java delete mode 100644 java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java delete mode 100644 java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ResourceUsageOrBuilder.java delete mode 100644 java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskProto.java delete mode 100644 java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskResourceUsageOrBuilder.java delete mode 100644 java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeProto.java rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java (99%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/gapic_metadata.json (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceCallableFactory.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java (99%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceCallableFactory.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceStub.java (99%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientHttpJsonTest.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientTest.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchService.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchServiceImpl.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockLocations.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockLocationsImpl.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java (51%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java (74%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java (76%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java (79%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java (74%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java (79%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java (73%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java (76%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java (66%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java (70%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java (66%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java (52%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java (61%) create mode 100644 owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java (61%) create mode 100644 owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java (69%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java (72%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java (73%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java (77%) create mode 100644 owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java (70%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java (71%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java (72%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java (76%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java (69%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java (65%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java (71%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java (66%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java (67%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java (60%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java (71%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java (66%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java (68%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java (65%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java (67%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java (55%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java (71%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java (75%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java (73%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/RunnableOrBuilder.java (82%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ServiceAccount.java (71%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ServiceAccountOrBuilder.java (72%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/StatusEvent.java (70%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/StatusEventOrBuilder.java (74%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Task.java (69%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecution.java (65%) create mode 100644 owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskGroup.java (77%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskGroupName.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskGroupOrBuilder.java (83%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskName.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskProto.java rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpec.java (78%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpecOrBuilder.java (86%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskStatus.java (72%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskStatusOrBuilder.java (68%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Volume.java (76%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeOrBuilder.java (85%) create mode 100644 owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeProto.java rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/batch.proto (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto (98%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/task.proto (90%) rename {java-batch => owl-bot-staging/java-batch/v1}/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/volume.proto (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/create/SyncCreateSetEndpoint.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/createjob/AsyncCreateJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/createjob/SyncCreateJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/createjob/SyncCreateJobLocationnameJobString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/createjob/SyncCreateJobStringJobString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/deletejob/AsyncDeleteJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/deletejob/AsyncDeleteJobLRO.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/deletejob/SyncDeleteJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/deletejob/SyncDeleteJobString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/getjob/AsyncGetJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/getjob/SyncGetJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/getjob/SyncGetJobJobname.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/getjob/SyncGetJobString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/getlocation/AsyncGetLocation.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/getlocation/SyncGetLocation.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/gettask/AsyncGetTask.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/gettask/SyncGetTask.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/gettask/SyncGetTaskString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/gettask/SyncGetTaskTaskname.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listjobs/AsyncListJobs.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listjobs/AsyncListJobsPaged.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listjobs/SyncListJobs.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listjobs/SyncListJobsString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listlocations/AsyncListLocations.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listlocations/AsyncListLocationsPaged.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listlocations/SyncListLocations.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listtasks/AsyncListTasks.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listtasks/AsyncListTasksPaged.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listtasks/SyncListTasks.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listtasks/SyncListTasksString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservice/listtasks/SyncListTasksTaskgroupname.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/batchservicesettings/createjob/SyncCreateJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1}/samples/snippets/generated/com/google/cloud/batch/v1/stub/batchservicestubsettings/createjob/SyncCreateJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceSettings.java (99%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/gapic_metadata.json (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/package-info.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStub.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/GrpcBatchServiceCallableFactory.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/GrpcBatchServiceStub.java (99%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/HttpJsonBatchServiceCallableFactory.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/HttpJsonBatchServiceStub.java (99%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1alpha/BatchServiceClientHttpJsonTest.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1alpha/BatchServiceClientTest.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1alpha/MockBatchService.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1alpha/MockBatchServiceImpl.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1alpha/MockLocations.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/google-cloud-batch/src/test/java/com/google/cloud/batch/v1alpha/MockLocationsImpl.java (100%) create mode 100644 owl-bot-staging/java-batch/v1alpha/grpc-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceGrpc.java rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java (72%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java (69%) create mode 100644 owl-bot-staging/java-batch/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ComputeResource.java (76%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ComputeResourceOrBuilder.java (80%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequest.java (74%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequestOrBuilder.java (79%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/DeleteJobRequest.java (73%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/DeleteJobRequestOrBuilder.java (77%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Environment.java (65%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/EnvironmentOrBuilder.java (70%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GCS.java (66%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GCSOrBuilder.java (53%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetJobRequest.java (61%) create mode 100644 owl-bot-staging/java-batch/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetJobRequestOrBuilder.java rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetTaskRequest.java (61%) create mode 100644 owl-bot-staging/java-batch/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetTaskRequestOrBuilder.java rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Job.java (70%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobDependency.java (64%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobDependencyOrBuilder.java (73%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobName.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotification.java (72%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotificationOrBuilder.java (74%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobOrBuilder.java (77%) create mode 100644 owl-bot-staging/java-batch/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobStatus.java (69%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobStatusOrBuilder.java (74%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LifecyclePolicy.java (70%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LifecyclePolicyOrBuilder.java (75%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListJobsRequest.java (70%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListJobsRequestOrBuilder.java (65%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListJobsResponse.java (71%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListJobsResponseOrBuilder.java (66%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListTasksRequest.java (68%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListTasksRequestOrBuilder.java (62%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListTasksResponse.java (71%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListTasksResponseOrBuilder.java (68%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LocationName.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicy.java (67%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicyOrBuilder.java (64%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFS.java (66%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFSOrBuilder.java (55%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/OperationMetadata.java (71%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/OperationMetadataOrBuilder.java (75%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PD.java (67%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PDOrBuilder.java (59%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ResourceUsage.java (64%) create mode 100644 owl-bot-staging/java-batch/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ResourceUsageOrBuilder.java rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Runnable.java (77%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/RunnableOrBuilder.java (83%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccount.java (71%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccountOrBuilder.java (73%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/StatusEvent.java (70%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/StatusEventOrBuilder.java (74%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Task.java (67%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskExecution.java (69%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskExecutionOrBuilder.java (62%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroup.java (76%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupName.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupOrBuilder.java (85%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskName.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskOrBuilder.java (67%) create mode 100644 owl-bot-staging/java-batch/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskProto.java rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskResourceUsage.java (64%) create mode 100644 owl-bot-staging/java-batch/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskResourceUsageOrBuilder.java rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpec.java (78%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpecOrBuilder.java (87%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskStatus.java (72%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskStatusOrBuilder.java (74%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Volume.java (74%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-batch/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeProto.java rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/task.proto (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/volume.proto (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/create/SyncCreateSetEndpoint.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/createjob/AsyncCreateJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/createjob/SyncCreateJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/createjob/SyncCreateJobLocationnameJobString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/createjob/SyncCreateJobStringJobString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/deletejob/AsyncDeleteJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/deletejob/AsyncDeleteJobLRO.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/deletejob/SyncDeleteJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/deletejob/SyncDeleteJobString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/getjob/AsyncGetJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/getjob/SyncGetJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/getjob/SyncGetJobJobname.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/getjob/SyncGetJobString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/getlocation/AsyncGetLocation.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/getlocation/SyncGetLocation.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/gettask/AsyncGetTask.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/gettask/SyncGetTask.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/gettask/SyncGetTaskString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/gettask/SyncGetTaskTaskname.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listjobs/AsyncListJobs.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listjobs/AsyncListJobsPaged.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listjobs/SyncListJobs.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listjobs/SyncListJobsString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listlocations/AsyncListLocations.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listlocations/AsyncListLocationsPaged.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listlocations/SyncListLocations.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listtasks/AsyncListTasks.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listtasks/AsyncListTasksPaged.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listtasks/SyncListTasks.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listtasks/SyncListTasksString.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservice/listtasks/SyncListTasksTaskgroupname.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/batchservicesettings/createjob/SyncCreateJob.java (100%) rename {java-batch => owl-bot-staging/java-batch/v1alpha}/samples/snippets/generated/com/google/cloud/batch/v1alpha/stub/batchservicestubsettings/createjob/SyncCreateJob.java (100%) diff --git a/java-batch/grpc-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceGrpc.java b/java-batch/grpc-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceGrpc.java deleted file mode 100644 index 427ce66c5433..000000000000 --- a/java-batch/grpc-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceGrpc.java +++ /dev/null @@ -1,927 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.batch.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Google Batch Service.
- * The service manages user submitted batch jobs and allocates Google Compute
- * Engine VM instances to run the jobs.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/batch/v1alpha/batch.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BatchServiceGrpc { - - private BatchServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.batch.v1alpha.BatchService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.CreateJobRequest, com.google.cloud.batch.v1alpha.Job> - getCreateJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateJob", - requestType = com.google.cloud.batch.v1alpha.CreateJobRequest.class, - responseType = com.google.cloud.batch.v1alpha.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.CreateJobRequest, com.google.cloud.batch.v1alpha.Job> - getCreateJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.CreateJobRequest, com.google.cloud.batch.v1alpha.Job> - getCreateJobMethod; - if ((getCreateJobMethod = BatchServiceGrpc.getCreateJobMethod) == null) { - synchronized (BatchServiceGrpc.class) { - if ((getCreateJobMethod = BatchServiceGrpc.getCreateJobMethod) == null) { - BatchServiceGrpc.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.batch.v1alpha.CreateJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.batch.v1alpha.Job.getDefaultInstance())) - .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("CreateJob")) - .build(); - } - } - } - return getCreateJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.GetJobRequest, com.google.cloud.batch.v1alpha.Job> - getGetJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetJob", - requestType = com.google.cloud.batch.v1alpha.GetJobRequest.class, - responseType = com.google.cloud.batch.v1alpha.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.GetJobRequest, com.google.cloud.batch.v1alpha.Job> - getGetJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.GetJobRequest, com.google.cloud.batch.v1alpha.Job> - getGetJobMethod; - if ((getGetJobMethod = BatchServiceGrpc.getGetJobMethod) == null) { - synchronized (BatchServiceGrpc.class) { - if ((getGetJobMethod = BatchServiceGrpc.getGetJobMethod) == null) { - BatchServiceGrpc.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.batch.v1alpha.GetJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.batch.v1alpha.Job.getDefaultInstance())) - .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("GetJob")) - .build(); - } - } - } - return getGetJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.DeleteJobRequest, com.google.longrunning.Operation> - getDeleteJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteJob", - requestType = com.google.cloud.batch.v1alpha.DeleteJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.DeleteJobRequest, com.google.longrunning.Operation> - getDeleteJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.DeleteJobRequest, com.google.longrunning.Operation> - getDeleteJobMethod; - if ((getDeleteJobMethod = BatchServiceGrpc.getDeleteJobMethod) == null) { - synchronized (BatchServiceGrpc.class) { - if ((getDeleteJobMethod = BatchServiceGrpc.getDeleteJobMethod) == null) { - BatchServiceGrpc.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.batch.v1alpha.DeleteJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("DeleteJob")) - .build(); - } - } - } - return getDeleteJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.ListJobsRequest, - com.google.cloud.batch.v1alpha.ListJobsResponse> - getListJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListJobs", - requestType = com.google.cloud.batch.v1alpha.ListJobsRequest.class, - responseType = com.google.cloud.batch.v1alpha.ListJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.ListJobsRequest, - com.google.cloud.batch.v1alpha.ListJobsResponse> - getListJobsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.ListJobsRequest, - com.google.cloud.batch.v1alpha.ListJobsResponse> - getListJobsMethod; - if ((getListJobsMethod = BatchServiceGrpc.getListJobsMethod) == null) { - synchronized (BatchServiceGrpc.class) { - if ((getListJobsMethod = BatchServiceGrpc.getListJobsMethod) == null) { - BatchServiceGrpc.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.batch.v1alpha.ListJobsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.batch.v1alpha.ListJobsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("ListJobs")) - .build(); - } - } - } - return getListJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.GetTaskRequest, com.google.cloud.batch.v1alpha.Task> - getGetTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTask", - requestType = com.google.cloud.batch.v1alpha.GetTaskRequest.class, - responseType = com.google.cloud.batch.v1alpha.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.GetTaskRequest, com.google.cloud.batch.v1alpha.Task> - getGetTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.GetTaskRequest, com.google.cloud.batch.v1alpha.Task> - getGetTaskMethod; - if ((getGetTaskMethod = BatchServiceGrpc.getGetTaskMethod) == null) { - synchronized (BatchServiceGrpc.class) { - if ((getGetTaskMethod = BatchServiceGrpc.getGetTaskMethod) == null) { - BatchServiceGrpc.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.batch.v1alpha.GetTaskRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.batch.v1alpha.Task.getDefaultInstance())) - .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("GetTask")) - .build(); - } - } - } - return getGetTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.ListTasksRequest, - com.google.cloud.batch.v1alpha.ListTasksResponse> - getListTasksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTasks", - requestType = com.google.cloud.batch.v1alpha.ListTasksRequest.class, - responseType = com.google.cloud.batch.v1alpha.ListTasksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.ListTasksRequest, - com.google.cloud.batch.v1alpha.ListTasksResponse> - getListTasksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.batch.v1alpha.ListTasksRequest, - com.google.cloud.batch.v1alpha.ListTasksResponse> - getListTasksMethod; - if ((getListTasksMethod = BatchServiceGrpc.getListTasksMethod) == null) { - synchronized (BatchServiceGrpc.class) { - if ((getListTasksMethod = BatchServiceGrpc.getListTasksMethod) == null) { - BatchServiceGrpc.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.batch.v1alpha.ListTasksRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.batch.v1alpha.ListTasksResponse - .getDefaultInstance())) - .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("ListTasks")) - .build(); - } - } - } - return getListTasksMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BatchServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchServiceStub(channel, callOptions); - } - }; - return BatchServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BatchServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchServiceBlockingStub(channel, callOptions); - } - }; - return BatchServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BatchServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchServiceFutureStub(channel, callOptions); - } - }; - return BatchServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Google Batch Service.
-   * The service manages user submitted batch jobs and allocates Google Compute
-   * Engine VM instances to run the jobs.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Create a Job.
-     * 
- */ - default void createJob( - com.google.cloud.batch.v1alpha.CreateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Get a Job specified by its resource name.
-     * 
- */ - default void getJob( - com.google.cloud.batch.v1alpha.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a Job.
-     * 
- */ - default void deleteJob( - com.google.cloud.batch.v1alpha.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); - } - - /** - * - * - *
-     * List all Jobs for a project within a region.
-     * 
- */ - default void listJobs( - com.google.cloud.batch.v1alpha.ListJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); - } - - /** - * - * - *
-     * Return a single Task.
-     * 
- */ - default void getTask( - com.google.cloud.batch.v1alpha.GetTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * List Tasks associated with a job.
-     * 
- */ - default void listTasks( - com.google.cloud.batch.v1alpha.ListTasksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service BatchService. - * - *
-   * Google Batch Service.
-   * The service manages user submitted batch jobs and allocates Google Compute
-   * Engine VM instances to run the jobs.
-   * 
- */ - public abstract static class BatchServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return BatchServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service BatchService. - * - *
-   * Google Batch Service.
-   * The service manages user submitted batch jobs and allocates Google Compute
-   * Engine VM instances to run the jobs.
-   * 
- */ - public static final class BatchServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private BatchServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a Job.
-     * 
- */ - public void createJob( - com.google.cloud.batch.v1alpha.CreateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Get a Job specified by its resource name.
-     * 
- */ - public void getJob( - com.google.cloud.batch.v1alpha.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Delete a Job.
-     * 
- */ - public void deleteJob( - com.google.cloud.batch.v1alpha.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List all Jobs for a project within a region.
-     * 
- */ - public void listJobs( - com.google.cloud.batch.v1alpha.ListJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Return a single Task.
-     * 
- */ - public void getTask( - com.google.cloud.batch.v1alpha.GetTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List Tasks associated with a job.
-     * 
- */ - public void listTasks( - com.google.cloud.batch.v1alpha.ListTasksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service BatchService. - * - *
-   * Google Batch Service.
-   * The service manages user submitted batch jobs and allocates Google Compute
-   * Engine VM instances to run the jobs.
-   * 
- */ - public static final class BatchServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BatchServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a Job.
-     * 
- */ - public com.google.cloud.batch.v1alpha.Job createJob( - com.google.cloud.batch.v1alpha.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get a Job specified by its resource name.
-     * 
- */ - public com.google.cloud.batch.v1alpha.Job getJob( - com.google.cloud.batch.v1alpha.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a Job.
-     * 
- */ - public com.google.longrunning.Operation deleteJob( - com.google.cloud.batch.v1alpha.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List all Jobs for a project within a region.
-     * 
- */ - public com.google.cloud.batch.v1alpha.ListJobsResponse listJobs( - com.google.cloud.batch.v1alpha.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListJobsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Return a single Task.
-     * 
- */ - public com.google.cloud.batch.v1alpha.Task getTask( - com.google.cloud.batch.v1alpha.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List Tasks associated with a job.
-     * 
- */ - public com.google.cloud.batch.v1alpha.ListTasksResponse listTasks( - com.google.cloud.batch.v1alpha.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTasksMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service BatchService. - * - *
-   * Google Batch Service.
-   * The service manages user submitted batch jobs and allocates Google Compute
-   * Engine VM instances to run the jobs.
-   * 
- */ - public static final class BatchServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BatchServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a Job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createJob(com.google.cloud.batch.v1alpha.CreateJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get a Job specified by its resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getJob(com.google.cloud.batch.v1alpha.GetJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a Job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteJob(com.google.cloud.batch.v1alpha.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List all Jobs for a project within a region.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.batch.v1alpha.ListJobsResponse> - listJobs(com.google.cloud.batch.v1alpha.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Return a single Task.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getTask(com.google.cloud.batch.v1alpha.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List Tasks associated with a job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.batch.v1alpha.ListTasksResponse> - listTasks(com.google.cloud.batch.v1alpha.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_JOB = 0; - private static final int METHODID_GET_JOB = 1; - private static final int METHODID_DELETE_JOB = 2; - private static final int METHODID_LIST_JOBS = 3; - private static final int METHODID_GET_TASK = 4; - private static final int METHODID_LIST_TASKS = 5; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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.batch.v1alpha.CreateJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JOB: - serviceImpl.getJob( - (com.google.cloud.batch.v1alpha.GetJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_JOB: - serviceImpl.deleteJob( - (com.google.cloud.batch.v1alpha.DeleteJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_JOBS: - serviceImpl.listJobs( - (com.google.cloud.batch.v1alpha.ListJobsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TASK: - serviceImpl.getTask( - (com.google.cloud.batch.v1alpha.GetTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TASKS: - serviceImpl.listTasks( - (com.google.cloud.batch.v1alpha.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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1alpha.CreateJobRequest, - com.google.cloud.batch.v1alpha.Job>(service, METHODID_CREATE_JOB))) - .addMethod( - getGetJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1alpha.GetJobRequest, - com.google.cloud.batch.v1alpha.Job>(service, METHODID_GET_JOB))) - .addMethod( - getDeleteJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1alpha.DeleteJobRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_JOB))) - .addMethod( - getListJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1alpha.ListJobsRequest, - com.google.cloud.batch.v1alpha.ListJobsResponse>(service, METHODID_LIST_JOBS))) - .addMethod( - getGetTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1alpha.GetTaskRequest, - com.google.cloud.batch.v1alpha.Task>(service, METHODID_GET_TASK))) - .addMethod( - getListTasksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1alpha.ListTasksRequest, - com.google.cloud.batch.v1alpha.ListTasksResponse>( - service, METHODID_LIST_TASKS))) - .build(); - } - - private abstract static class BatchServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BatchServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.batch.v1alpha.BatchProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BatchService"); - } - } - - private static final class BatchServiceFileDescriptorSupplier - extends BatchServiceBaseDescriptorSupplier { - BatchServiceFileDescriptorSupplier() {} - } - - private static final class BatchServiceMethodDescriptorSupplier - extends BatchServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - BatchServiceMethodDescriptorSupplier(java.lang.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 (BatchServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BatchServiceFileDescriptorSupplier()) - .addMethod(getCreateJobMethod()) - .addMethod(getGetJobMethod()) - .addMethod(getDeleteJobMethod()) - .addMethod(getListJobsMethod()) - .addMethod(getGetTaskMethod()) - .addMethod(getListTasksMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java deleted file mode 100644 index d2a722707229..000000000000 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1/batch.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1; - -public final class BatchProto { - private BatchProto() {} - - 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_batch_v1_CreateJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_CreateJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_GetJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_GetJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_DeleteJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_ListJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_ListJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_ListTasksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_ListTasksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_GetTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_OperationMetadata_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/batch/v1/batch.proto\022\025goo" - + "gle.cloud.batch.v1\032\034google/api/annotatio" - + "ns.proto\032\027google/api/client.proto\032\037googl" - + "e/api/field_behavior.proto\032\033google/api/f" - + "ield_info.proto\032\031google/api/resource.pro" - + "to\032\037google/cloud/batch/v1/job.proto\032 goo" - + "gle/cloud/batch/v1/task.proto\032#google/lo" - + "ngrunning/operations.proto\032\033google/proto" - + "buf/empty.proto\032\037google/protobuf/timesta" - + "mp.proto\"\233\001\n\020CreateJobRequest\0220\n\006parent\030" - + "\001 \001(\tB \340A\002\372A\032\022\030batch.googleapis.com/Job\022" - + "\016\n\006job_id\030\002 \001(\t\022,\n\003job\030\003 \001(\0132\032.google.cl" - + "oud.batch.v1.JobB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" - + "\tB\003\340A\001\"?\n\rGetJobRequest\022.\n\004name\030\001 \001(\tB \340" - + "A\002\372A\032\n\030batch.googleapis.com/Job\"N\n\020Delet" - + "eJobRequest\022\014\n\004name\030\001 \001(\t\022\023\n\006reason\030\002 \001(" - + "\tB\003\340A\001\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"o\n\017ListJ" - + "obsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\004 \001" - + "(\t\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"j\n\020ListJobsResp" - + "onse\022(\n\004jobs\030\001 \003(\0132\032.google.cloud.batch." - + "v1.Job\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"\201\001\n\020ListTasksRequest\0226\n\006par" - + "ent\030\001 \001(\tB&\340A\002\372A \n\036batch.googleapis.com/" - + "TaskGroup\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003" - + " \001(\005\022\022\n\npage_token\030\004 \001(\t\"m\n\021ListTasksRes" - + "ponse\022*\n\005tasks\030\001 \003(\0132\033.google.cloud.batc" - + "h.v1.Task\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" - + "reachable\030\003 \003(\t\"A\n\016GetTaskRequest\022/\n\004nam" - + "e\030\001 \001(\tB!\340A\002\372A\033\n\031batch.googleapis.com/Ta" - + "sk\"\200\002\n\021OperationMetadata\0224\n\013create_time\030" - + "\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221" - + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004" - + " \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#" - + "\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013a" - + "pi_version\030\007 \001(\tB\003\340A\0032\266\010\n\014BatchService\022\233" - + "\001\n\tCreateJob\022\'.google.cloud.batch.v1.Cre" - + "ateJobRequest\032\032.google.cloud.batch.v1.Jo" - + "b\"I\332A\021parent,job,job_id\202\323\344\223\002/\"(/v1/{pare" - + "nt=projects/*/locations/*}/jobs:\003job\022\203\001\n" - + "\006GetJob\022$.google.cloud.batch.v1.GetJobRe" - + "quest\032\032.google.cloud.batch.v1.Job\"7\332A\004na" - + "me\202\323\344\223\002*\022(/v1/{name=projects/*/locations" - + "/*/jobs/*}\022\317\001\n\tDeleteJob\022\'.google.cloud." - + "batch.v1.DeleteJobRequest\032\035.google.longr" - + "unning.Operation\"z\312A@\n\025google.protobuf.E" - + "mpty\022\'google.cloud.batch.v1.OperationMet" - + "adata\332A\004name\202\323\344\223\002**(/v1/{name=projects/*" - + "/locations/*/jobs/*}\022\226\001\n\010ListJobs\022&.goog" - + "le.cloud.batch.v1.ListJobsRequest\032\'.goog" - + "le.cloud.batch.v1.ListJobsResponse\"9\332A\006p" - + "arent\202\323\344\223\002*\022(/v1/{parent=projects/*/loca" - + "tions/*}/jobs\022\233\001\n\007GetTask\022%.google.cloud" - + ".batch.v1.GetTaskRequest\032\033.google.cloud." - + "batch.v1.Task\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=" - + "projects/*/locations/*/jobs/*/taskGroups" - + "/*/tasks/*}\022\256\001\n\tListTasks\022\'.google.cloud" - + ".batch.v1.ListTasksRequest\032(.google.clou" - + "d.batch.v1.ListTasksResponse\"N\332A\006parent\202" - + "\323\344\223\002?\022=/v1/{parent=projects/*/locations/" - + "*/jobs/*/taskGroups/*}/tasks\032H\312A\024batch.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\253\001\n\031com.google.cl" - + "oud.batch.v1B\nBatchProtoP\001Z/cloud.google" - + ".com/go/batch/apiv1/batchpb;batchpb\242\002\003GC" - + "B\252\002\025Google.Cloud.Batch.V1\312\002\025Google\\Cloud" - + "\\Batch\\V1\352\002\030Google::Cloud::Batch::V1b\006pr" - + "oto3" - }; - 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.FieldInfoProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.batch.v1.JobProto.getDescriptor(), - com.google.cloud.batch.v1.TaskProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_batch_v1_CreateJobRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_batch_v1_CreateJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_CreateJobRequest_descriptor, - new java.lang.String[] { - "Parent", "JobId", "Job", "RequestId", - }); - internal_static_google_cloud_batch_v1_GetJobRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_batch_v1_GetJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_GetJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_batch_v1_DeleteJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor, - new java.lang.String[] { - "Name", "Reason", "RequestId", - }); - internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_batch_v1_ListJobsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "OrderBy", "PageSize", "PageToken", - }); - internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_batch_v1_ListJobsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor, - new java.lang.String[] { - "Jobs", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_batch_v1_ListTasksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_batch_v1_ListTasksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor, - new java.lang.String[] { - "Tasks", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_batch_v1_GetTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_batch_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_batch_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - 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.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.FieldInfoProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.batch.v1.JobProto.getDescriptor(); - com.google.cloud.batch.v1.TaskProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java deleted file mode 100644 index c254e28a1261..000000000000 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1/batch.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1; - -public interface GetJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.GetJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Job name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Job name.
-   * 
- * - * - * 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-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java deleted file mode 100644 index 6003629c768a..000000000000 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1/batch.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1; - -public interface GetTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.GetTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Task name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Task name.
-   * 
- * - * - * 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-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java deleted file mode 100644 index 8851ffbd814c..000000000000 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java +++ /dev/null @@ -1,509 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1/job.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1; - -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_batch_v1_Job_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Job_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Job_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Job_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_LogsPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_LogsPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_JobStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_JobStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_JobNotification_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_JobNotification_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_JobNotification_Message_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_TaskGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_TaskGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_ServiceAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_ServiceAccount_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\037google/cloud/batch/v1/job.proto\022\025googl" - + "e.cloud.batch.v1\032\037google/api/field_behav" - + "ior.proto\032\031google/api/resource.proto\032 go" - + "ogle/cloud/batch/v1/task.proto\032\036google/p" - + "rotobuf/duration.proto\032\037google/protobuf/" - + "timestamp.proto\"\220\005\n\003Job\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\020\n\010priority\030\003 \001(\003\022:" - + "\n\013task_groups\030\004 \003(\0132 .google.cloud.batch" - + ".v1.TaskGroupB\003\340A\002\022B\n\021allocation_policy\030" - + "\007 \001(\0132\'.google.cloud.batch.v1.Allocation" - + "Policy\0226\n\006labels\030\010 \003(\0132&.google.cloud.ba" - + "tch.v1.Job.LabelsEntry\0225\n\006status\030\t \001(\0132 " - + ".google.cloud.batch.v1.JobStatusB\003\340A\003\0224\n" - + "\013create_time\030\013 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0224\n\013update_time\030\014 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0226\n\013logs_policy" - + "\030\r \001(\0132!.google.cloud.batch.v1.LogsPolic" - + "y\022=\n\rnotifications\030\016 \003(\0132&.google.cloud." - + "batch.v1.JobNotification\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:Q\352AN\n\030ba" - + "tch.googleapis.com/Job\0222projects/{projec" - + "t}/locations/{location}/jobs/{job}\"\315\002\n\nL" - + "ogsPolicy\022B\n\013destination\030\001 \001(\0162-.google." - + "cloud.batch.v1.LogsPolicy.Destination\022\021\n" - + "\tlogs_path\030\002 \001(\t\022W\n\024cloud_logging_option" - + "\030\003 \001(\01324.google.cloud.batch.v1.LogsPolic" - + "y.CloudLoggingOptionB\003\340A\001\032F\n\022CloudLoggin" - + "gOption\0220\n#use_generic_task_monitored_re" - + "source\030\001 \001(\010B\003\340A\001\"G\n\013Destination\022\033\n\027DEST" - + "INATION_UNSPECIFIED\020\000\022\021\n\rCLOUD_LOGGING\020\001" - + "\022\010\n\004PATH\020\002\"\200\007\n\tJobStatus\0225\n\005state\030\001 \001(\0162" - + "&.google.cloud.batch.v1.JobStatus.State\022" - + "9\n\rstatus_events\030\002 \003(\0132\".google.cloud.ba" - + "tch.v1.StatusEvent\022E\n\013task_groups\030\004 \003(\0132" - + "0.google.cloud.batch.v1.JobStatus.TaskGr" - + "oupsEntry\022/\n\014run_duration\030\005 \001(\0132\031.google" - + ".protobuf.Duration\032\321\001\n\016InstanceStatus\022\024\n" - + "\014machine_type\030\001 \001(\t\022U\n\022provisioning_mode" - + "l\030\002 \001(\01629.google.cloud.batch.v1.Allocati" - + "onPolicy.ProvisioningModel\022\021\n\ttask_pack\030" - + "\003 \001(\003\022?\n\tboot_disk\030\004 \001(\0132,.google.cloud." - + "batch.v1.AllocationPolicy.Disk\032\322\001\n\017TaskG" - + "roupStatus\022L\n\006counts\030\001 \003(\0132<.google.clou" - + "d.batch.v1.JobStatus.TaskGroupStatus.Cou" - + "ntsEntry\022B\n\tinstances\030\002 \003(\0132/.google.clo" - + "ud.batch.v1.JobStatus.InstanceStatus\032-\n\013" - + "CountsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:" - + "\0028\001\032c\n\017TaskGroupsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005v" - + "alue\030\002 \001(\01320.google.cloud.batch.v1.JobSt" - + "atus.TaskGroupStatus:\0028\001\"{\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020\001\022\r\n\tSCHEDULE" - + "D\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAILE" - + "D\020\005\022\030\n\024DELETION_IN_PROGRESS\020\006\"\374\002\n\017JobNot" - + "ification\022\024\n\014pubsub_topic\030\001 \001(\t\022?\n\007messa" - + "ge\030\002 \001(\0132..google.cloud.batch.v1.JobNoti" - + "fication.Message\032\304\001\n\007Message\0229\n\004type\030\001 \001" - + "(\0162+.google.cloud.batch.v1.JobNotificati" - + "on.Type\022=\n\rnew_job_state\030\002 \001(\0162&.google." - + "cloud.batch.v1.JobStatus.State\022?\n\016new_ta" - + "sk_state\030\003 \001(\0162\'.google.cloud.batch.v1.T" - + "askStatus.State\"K\n\004Type\022\024\n\020TYPE_UNSPECIF" - + "IED\020\000\022\025\n\021JOB_STATE_CHANGED\020\001\022\026\n\022TASK_STA" - + "TE_CHANGED\020\002\"\274\016\n\020AllocationPolicy\022H\n\010loc" - + "ation\030\001 \001(\01326.google.cloud.batch.v1.Allo" - + "cationPolicy.LocationPolicy\022S\n\tinstances" - + "\030\010 \003(\0132@.google.cloud.batch.v1.Allocatio" - + "nPolicy.InstancePolicyOrTemplate\022>\n\017serv" - + "ice_account\030\t \001(\0132%.google.cloud.batch.v" - + "1.ServiceAccount\022C\n\006labels\030\006 \003(\01323.googl" - + "e.cloud.batch.v1.AllocationPolicy.Labels" - + "Entry\022F\n\007network\030\007 \001(\01325.google.cloud.ba" - + "tch.v1.AllocationPolicy.NetworkPolicy\022J\n" - + "\tplacement\030\n \001(\01327.google.cloud.batch.v1" - + ".AllocationPolicy.PlacementPolicy\022\021\n\004tag" - + "s\030\013 \003(\tB\003\340A\001\032+\n\016LocationPolicy\022\031\n\021allowe" - + "d_locations\030\001 \003(\t\032q\n\004Disk\022\017\n\005image\030\004 \001(\t" - + "H\000\022\022\n\010snapshot\030\005 \001(\tH\000\022\014\n\004type\030\001 \001(\t\022\017\n\007" - + "size_gb\030\002 \001(\003\022\026\n\016disk_interface\030\006 \001(\tB\r\n" - + "\013data_source\032\212\001\n\014AttachedDisk\022@\n\010new_dis" - + "k\030\001 \001(\0132,.google.cloud.batch.v1.Allocati" - + "onPolicy.DiskH\000\022\027\n\rexisting_disk\030\002 \001(\tH\000" - + "\022\023\n\013device_name\030\003 \001(\tB\n\n\010attached\032h\n\013Acc" - + "elerator\022\014\n\004type\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\022\037\n" - + "\023install_gpu_drivers\030\003 \001(\010B\002\030\001\022\033\n\016driver" - + "_version\030\004 \001(\tB\003\340A\001\032\202\003\n\016InstancePolicy\022\024" - + "\n\014machine_type\030\002 \001(\t\022\030\n\020min_cpu_platform" - + "\030\003 \001(\t\022U\n\022provisioning_model\030\004 \001(\01629.goo" - + "gle.cloud.batch.v1.AllocationPolicy.Prov" - + "isioningModel\022I\n\014accelerators\030\005 \003(\01323.go" - + "ogle.cloud.batch.v1.AllocationPolicy.Acc" - + "elerator\022?\n\tboot_disk\030\010 \001(\0132,.google.clo" - + "ud.batch.v1.AllocationPolicy.Disk\022C\n\005dis" - + "ks\030\006 \003(\01324.google.cloud.batch.v1.Allocat" - + "ionPolicy.AttachedDisk\022\030\n\013reservation\030\007 " - + "\001(\tB\003\340A\001\032\261\001\n\030InstancePolicyOrTemplate\022H\n" - + "\006policy\030\001 \001(\01326.google.cloud.batch.v1.Al" - + "locationPolicy.InstancePolicyH\000\022\033\n\021insta" - + "nce_template\030\002 \001(\tH\000\022\033\n\023install_gpu_driv" - + "ers\030\003 \001(\010B\021\n\017policy_template\032W\n\020NetworkI" - + "nterface\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030" - + "\002 \001(\t\022\036\n\026no_external_ip_address\030\003 \001(\010\032e\n" - + "\rNetworkPolicy\022T\n\022network_interfaces\030\001 \003" - + "(\01328.google.cloud.batch.v1.AllocationPol" - + "icy.NetworkInterface\032<\n\017PlacementPolicy\022" - + "\023\n\013collocation\030\001 \001(\t\022\024\n\014max_distance\030\002 \001" - + "(\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"`\n\021ProvisioningModel\022\"\n\036PROVIS" - + "IONING_MODEL_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001" - + "\022\010\n\004SPOT\020\002\022\017\n\013PREEMPTIBLE\020\003\"\313\004\n\tTaskGrou" - + "p\022\021\n\004name\030\001 \001(\tB\003\340A\003\0227\n\ttask_spec\030\003 \001(\0132" - + "\037.google.cloud.batch.v1.TaskSpecB\003\340A\002\022\022\n" - + "\ntask_count\030\004 \001(\003\022\023\n\013parallelism\030\005 \001(\003\022L" - + "\n\021scheduling_policy\030\006 \001(\01621.google.cloud" - + ".batch.v1.TaskGroup.SchedulingPolicy\022=\n\021" - + "task_environments\030\t \003(\0132\".google.cloud.b" - + "atch.v1.Environment\022\033\n\023task_count_per_no" - + "de\030\n \001(\003\022\032\n\022require_hosts_file\030\013 \001(\010\022\026\n\016" - + "permissive_ssh\030\014 \001(\010\022\034\n\017run_as_non_root\030" - + "\016 \001(\010B\003\340A\001\"\\\n\020SchedulingPolicy\022!\n\035SCHEDU" - + "LING_POLICY_UNSPECIFIED\020\000\022\027\n\023AS_SOON_AS_" - + "POSSIBLE\020\001\022\014\n\010IN_ORDER\020\002:o\352Al\n\036batch.goo" - + "gleapis.com/TaskGroup\022Jprojects/{project" - + "}/locations/{location}/jobs/{job}/taskGr" - + "oups/{task_group}\"/\n\016ServiceAccount\022\r\n\005e" - + "mail\030\001 \001(\t\022\016\n\006scopes\030\002 \003(\tB\251\001\n\031com.googl" - + "e.cloud.batch.v1B\010JobProtoP\001Z/cloud.goog" - + "le.com/go/batch/apiv1/batchpb;batchpb\242\002\003" - + "GCB\252\002\025Google.Cloud.Batch.V1\312\002\025Google\\Clo" - + "ud\\Batch\\V1\352\002\030Google::Cloud::Batch::V1b\006" - + "proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.batch.v1.TaskProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_batch_v1_Job_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_batch_v1_Job_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Job_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "Priority", - "TaskGroups", - "AllocationPolicy", - "Labels", - "Status", - "CreateTime", - "UpdateTime", - "LogsPolicy", - "Notifications", - }); - internal_static_google_cloud_batch_v1_Job_LabelsEntry_descriptor = - internal_static_google_cloud_batch_v1_Job_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1_Job_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Job_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1_LogsPolicy_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_batch_v1_LogsPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_LogsPolicy_descriptor, - new java.lang.String[] { - "Destination", "LogsPath", "CloudLoggingOption", - }); - internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor = - internal_static_google_cloud_batch_v1_LogsPolicy_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor, - new java.lang.String[] { - "UseGenericTaskMonitoredResource", - }); - internal_static_google_cloud_batch_v1_JobStatus_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_batch_v1_JobStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_JobStatus_descriptor, - new java.lang.String[] { - "State", "StatusEvents", "TaskGroups", "RunDuration", - }); - internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor = - internal_static_google_cloud_batch_v1_JobStatus_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor, - new java.lang.String[] { - "MachineType", "ProvisioningModel", "TaskPack", "BootDisk", - }); - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor = - internal_static_google_cloud_batch_v1_JobStatus_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor, - new java.lang.String[] { - "Counts", "Instances", - }); - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_descriptor = - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_descriptor = - internal_static_google_cloud_batch_v1_JobStatus_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1_JobNotification_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_batch_v1_JobNotification_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_JobNotification_descriptor, - new java.lang.String[] { - "PubsubTopic", "Message", - }); - internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor = - internal_static_google_cloud_batch_v1_JobNotification_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1_JobNotification_Message_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor, - new java.lang.String[] { - "Type", "NewJobState", "NewTaskState", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_batch_v1_AllocationPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor, - new java.lang.String[] { - "Location", "Instances", "ServiceAccount", "Labels", "Network", "Placement", "Tags", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor = - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor, - new java.lang.String[] { - "AllowedLocations", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor = - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor, - new java.lang.String[] { - "Image", "Snapshot", "Type", "SizeGb", "DiskInterface", "DataSource", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor = - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor, - new java.lang.String[] { - "NewDisk", "ExistingDisk", "DeviceName", "Attached", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor = - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor, - new java.lang.String[] { - "Type", "Count", "InstallGpuDrivers", "DriverVersion", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor = - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor, - new java.lang.String[] { - "MachineType", - "MinCpuPlatform", - "ProvisioningModel", - "Accelerators", - "BootDisk", - "Disks", - "Reservation", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor = - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(5); - internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor, - new java.lang.String[] { - "Policy", "InstanceTemplate", "InstallGpuDrivers", "PolicyTemplate", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor = - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(6); - internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor, - new java.lang.String[] { - "Network", "Subnetwork", "NoExternalIpAddress", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor = - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(7); - internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor, - new java.lang.String[] { - "NetworkInterfaces", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor = - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(8); - internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor, - new java.lang.String[] { - "Collocation", "MaxDistance", - }); - internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor = - internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(9); - internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1_TaskGroup_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_batch_v1_TaskGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_TaskGroup_descriptor, - new java.lang.String[] { - "Name", - "TaskSpec", - "TaskCount", - "Parallelism", - "SchedulingPolicy", - "TaskEnvironments", - "TaskCountPerNode", - "RequireHostsFile", - "PermissiveSsh", - "RunAsNonRoot", - }); - internal_static_google_cloud_batch_v1_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_batch_v1_ServiceAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_ServiceAccount_descriptor, - new java.lang.String[] { - "Email", "Scopes", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.batch.v1.TaskProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java deleted file mode 100644 index ec95c6ff8762..000000000000 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1/task.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1; - -public interface TaskExecutionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.TaskExecution) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * When task is completed as the status of FAILED or SUCCEEDED,
-   * exit code is for one task execution result, default is 0 as success.
-   * 
- * - * int32 exit_code = 1; - * - * @return The exitCode. - */ - int getExitCode(); -} diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskProto.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskProto.java deleted file mode 100644 index b857b0a87672..000000000000 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskProto.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1/task.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1; - -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_batch_v1_ComputeResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_ComputeResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_StatusEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_StatusEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_TaskExecution_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_TaskExecution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_TaskStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_TaskStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Runnable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Runnable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Runnable_Container_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Runnable_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Runnable_Script_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Runnable_Script_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Runnable_Barrier_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Runnable_Barrier_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Runnable_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Runnable_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_TaskSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_TaskSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_TaskSpec_EnvironmentsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_TaskSpec_EnvironmentsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_LifecyclePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_LifecyclePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Task_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Task_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Environment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Environment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Environment_VariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Environment_VariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_Environment_SecretVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Environment_SecretVariablesEntry_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/batch/v1/task.proto\022\025goog" - + "le.cloud.batch.v1\032\037google/api/field_beha" - + "vior.proto\032\031google/api/resource.proto\032\"g" - + "oogle/cloud/batch/v1/volume.proto\032\036googl" - + "e/protobuf/duration.proto\032\037google/protob" - + "uf/timestamp.proto\"O\n\017ComputeResource\022\021\n" - + "\tcpu_milli\030\001 \001(\003\022\022\n\nmemory_mib\030\002 \001(\003\022\025\n\r" - + "boot_disk_mib\030\004 \001(\003\"\333\001\n\013StatusEvent\022\014\n\004t" - + "ype\030\003 \001(\t\022\023\n\013description\030\001 \001(\t\022.\n\nevent_" - + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022<" - + "\n\016task_execution\030\004 \001(\0132$.google.cloud.ba" - + "tch.v1.TaskExecution\022;\n\ntask_state\030\005 \001(\016" - + "2\'.google.cloud.batch.v1.TaskStatus.Stat" - + "e\"\"\n\rTaskExecution\022\021\n\texit_code\030\001 \001(\005\"\362\001" - + "\n\nTaskStatus\0226\n\005state\030\001 \001(\0162\'.google.clo" - + "ud.batch.v1.TaskStatus.State\0229\n\rstatus_e" - + "vents\030\002 \003(\0132\".google.cloud.batch.v1.Stat" - + "usEvent\"q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\013\n\007PENDING\020\001\022\014\n\010ASSIGNED\020\002\022\013\n\007RUNNING\020\003\022" - + "\n\n\006FAILED\020\004\022\r\n\tSUCCEEDED\020\005\022\016\n\nUNEXECUTED" - + "\020\006\"\236\006\n\010Runnable\022>\n\tcontainer\030\001 \001(\0132).goo" - + "gle.cloud.batch.v1.Runnable.ContainerH\000\022" - + "8\n\006script\030\002 \001(\0132&.google.cloud.batch.v1." - + "Runnable.ScriptH\000\022:\n\007barrier\030\006 \001(\0132\'.goo" - + "gle.cloud.batch.v1.Runnable.BarrierH\000\022\031\n" - + "\014display_name\030\n \001(\tB\003\340A\001\022\032\n\022ignore_exit_" - + "status\030\003 \001(\010\022\022\n\nbackground\030\004 \001(\010\022\022\n\nalwa" - + "ys_run\030\005 \001(\010\0227\n\013environment\030\007 \001(\0132\".goog" - + "le.cloud.batch.v1.Environment\022*\n\007timeout" - + "\030\010 \001(\0132\031.google.protobuf.Duration\022;\n\006lab" - + "els\030\t \003(\0132+.google.cloud.batch.v1.Runnab" - + "le.LabelsEntry\032\317\001\n\tContainer\022\021\n\timage_ur" - + "i\030\001 \001(\t\022\020\n\010commands\030\002 \003(\t\022\022\n\nentrypoint\030" - + "\003 \001(\t\022\017\n\007volumes\030\007 \003(\t\022\017\n\007options\030\010 \001(\t\022" - + "\036\n\026block_external_network\030\t \001(\010\022\020\n\010usern" - + "ame\030\n \001(\t\022\020\n\010password\030\013 \001(\t\022#\n\026enable_im" - + "age_streaming\030\014 \001(\010B\003\340A\001\0323\n\006Script\022\016\n\004pa" - + "th\030\001 \001(\tH\000\022\016\n\004text\030\002 \001(\tH\000B\t\n\007command\032\027\n" - + "\007Barrier\022\014\n\004name\030\001 \001(\t\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\014\n\nexecuta" - + "ble\"\375\003\n\010TaskSpec\0222\n\trunnables\030\010 \003(\0132\037.go" - + "ogle.cloud.batch.v1.Runnable\022@\n\020compute_" - + "resource\030\003 \001(\0132&.google.cloud.batch.v1.C" - + "omputeResource\0223\n\020max_run_duration\030\004 \001(\013" - + "2\031.google.protobuf.Duration\022\027\n\017max_retry" - + "_count\030\005 \001(\005\022B\n\022lifecycle_policies\030\t \003(\013" - + "2&.google.cloud.batch.v1.LifecyclePolicy" - + "\022K\n\014environments\030\006 \003(\01321.google.cloud.ba" - + "tch.v1.TaskSpec.EnvironmentsEntryB\002\030\001\022.\n" - + "\007volumes\030\007 \003(\0132\035.google.cloud.batch.v1.V" - + "olume\0227\n\013environment\030\n \001(\0132\".google.clou" - + "d.batch.v1.Environment\0323\n\021EnvironmentsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\212\002\n\017" - + "LifecyclePolicy\022=\n\006action\030\001 \001(\0162-.google" - + ".cloud.batch.v1.LifecyclePolicy.Action\022P" - + "\n\020action_condition\030\002 \001(\01326.google.cloud." - + "batch.v1.LifecyclePolicy.ActionCondition" - + "\032%\n\017ActionCondition\022\022\n\nexit_codes\030\001 \003(\005\"" - + "?\n\006Action\022\026\n\022ACTION_UNSPECIFIED\020\000\022\016\n\nRET" - + "RY_TASK\020\001\022\r\n\tFAIL_TASK\020\002\"\300\001\n\004Task\022\014\n\004nam" - + "e\030\001 \001(\t\0221\n\006status\030\002 \001(\0132!.google.cloud.b" - + "atch.v1.TaskStatus:w\352At\n\031batch.googleapi" - + "s.com/Task\022Wprojects/{project}/locations" - + "/{location}/jobs/{job}/taskGroups/{task_" - + "group}/tasks/{task}\"\217\003\n\013Environment\022D\n\tv" - + "ariables\030\001 \003(\01321.google.cloud.batch.v1.E" - + "nvironment.VariablesEntry\022Q\n\020secret_vari" - + "ables\030\002 \003(\01327.google.cloud.batch.v1.Envi" - + "ronment.SecretVariablesEntry\022I\n\023encrypte" - + "d_variables\030\003 \001(\0132,.google.cloud.batch.v" - + "1.Environment.KMSEnvMap\0322\n\tKMSEnvMap\022\020\n\010" - + "key_name\030\001 \001(\t\022\023\n\013cipher_text\030\002 \001(\t\0320\n\016V" - + "ariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\0326\n\024SecretVariablesEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\252\001\n\031com.google.clo" - + "ud.batch.v1B\tTaskProtoP\001Z/cloud.google.c" - + "om/go/batch/apiv1/batchpb;batchpb\242\002\003GCB\252" - + "\002\025Google.Cloud.Batch.V1\312\002\025Google\\Cloud\\B" - + "atch\\V1\352\002\030Google::Cloud::Batch::V1b\006prot" - + "o3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.batch.v1.VolumeProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_batch_v1_ComputeResource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_batch_v1_ComputeResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_ComputeResource_descriptor, - new java.lang.String[] { - "CpuMilli", "MemoryMib", "BootDiskMib", - }); - internal_static_google_cloud_batch_v1_StatusEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_batch_v1_StatusEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_StatusEvent_descriptor, - new java.lang.String[] { - "Type", "Description", "EventTime", "TaskExecution", "TaskState", - }); - internal_static_google_cloud_batch_v1_TaskExecution_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_batch_v1_TaskExecution_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_TaskExecution_descriptor, - new java.lang.String[] { - "ExitCode", - }); - internal_static_google_cloud_batch_v1_TaskStatus_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_batch_v1_TaskStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_TaskStatus_descriptor, - new java.lang.String[] { - "State", "StatusEvents", - }); - internal_static_google_cloud_batch_v1_Runnable_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_batch_v1_Runnable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Runnable_descriptor, - new java.lang.String[] { - "Container", - "Script", - "Barrier", - "DisplayName", - "IgnoreExitStatus", - "Background", - "AlwaysRun", - "Environment", - "Timeout", - "Labels", - "Executable", - }); - internal_static_google_cloud_batch_v1_Runnable_Container_descriptor = - internal_static_google_cloud_batch_v1_Runnable_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1_Runnable_Container_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Runnable_Container_descriptor, - new java.lang.String[] { - "ImageUri", - "Commands", - "Entrypoint", - "Volumes", - "Options", - "BlockExternalNetwork", - "Username", - "Password", - "EnableImageStreaming", - }); - internal_static_google_cloud_batch_v1_Runnable_Script_descriptor = - internal_static_google_cloud_batch_v1_Runnable_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_batch_v1_Runnable_Script_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Runnable_Script_descriptor, - new java.lang.String[] { - "Path", "Text", "Command", - }); - internal_static_google_cloud_batch_v1_Runnable_Barrier_descriptor = - internal_static_google_cloud_batch_v1_Runnable_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_batch_v1_Runnable_Barrier_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Runnable_Barrier_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_batch_v1_Runnable_LabelsEntry_descriptor = - internal_static_google_cloud_batch_v1_Runnable_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_batch_v1_Runnable_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Runnable_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1_TaskSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_batch_v1_TaskSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_TaskSpec_descriptor, - new java.lang.String[] { - "Runnables", - "ComputeResource", - "MaxRunDuration", - "MaxRetryCount", - "LifecyclePolicies", - "Environments", - "Volumes", - "Environment", - }); - internal_static_google_cloud_batch_v1_TaskSpec_EnvironmentsEntry_descriptor = - internal_static_google_cloud_batch_v1_TaskSpec_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1_TaskSpec_EnvironmentsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_TaskSpec_EnvironmentsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1_LifecyclePolicy_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_batch_v1_LifecyclePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_LifecyclePolicy_descriptor, - new java.lang.String[] { - "Action", "ActionCondition", - }); - internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_descriptor = - internal_static_google_cloud_batch_v1_LifecyclePolicy_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_descriptor, - new java.lang.String[] { - "ExitCodes", - }); - internal_static_google_cloud_batch_v1_Task_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_batch_v1_Task_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Task_descriptor, - new java.lang.String[] { - "Name", "Status", - }); - internal_static_google_cloud_batch_v1_Environment_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_batch_v1_Environment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Environment_descriptor, - new java.lang.String[] { - "Variables", "SecretVariables", "EncryptedVariables", - }); - internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_descriptor = - internal_static_google_cloud_batch_v1_Environment_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_descriptor, - new java.lang.String[] { - "KeyName", "CipherText", - }); - internal_static_google_cloud_batch_v1_Environment_VariablesEntry_descriptor = - internal_static_google_cloud_batch_v1_Environment_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_batch_v1_Environment_VariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Environment_VariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1_Environment_SecretVariablesEntry_descriptor = - internal_static_google_cloud_batch_v1_Environment_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_batch_v1_Environment_SecretVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Environment_SecretVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.batch.v1.VolumeProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeProto.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeProto.java deleted file mode 100644 index 0c7a03d69b0f..000000000000 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeProto.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1/volume.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1; - -public final class VolumeProto { - private VolumeProto() {} - - 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_batch_v1_Volume_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_Volume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_NFS_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_NFS_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1_GCS_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1_GCS_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/batch/v1/volume.proto\022\025go" - + "ogle.cloud.batch.v1\"\252\001\n\006Volume\022)\n\003nfs\030\001 " - + "\001(\0132\032.google.cloud.batch.v1.NFSH\000\022)\n\003gcs" - + "\030\003 \001(\0132\032.google.cloud.batch.v1.GCSH\000\022\025\n\013" - + "device_name\030\006 \001(\tH\000\022\022\n\nmount_path\030\004 \001(\t\022" - + "\025\n\rmount_options\030\005 \003(\tB\010\n\006source\"*\n\003NFS\022" - + "\016\n\006server\030\001 \001(\t\022\023\n\013remote_path\030\002 \001(\t\"\032\n\003" - + "GCS\022\023\n\013remote_path\030\001 \001(\tB\254\001\n\031com.google." - + "cloud.batch.v1B\013VolumeProtoP\001Z/cloud.goo" - + "gle.com/go/batch/apiv1/batchpb;batchpb\242\002" - + "\003GCB\252\002\025Google.Cloud.Batch.V1\312\002\025Google\\Cl" - + "oud\\Batch\\V1\352\002\030Google::Cloud::Batch::V1b" - + "\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_batch_v1_Volume_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_batch_v1_Volume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_Volume_descriptor, - new java.lang.String[] { - "Nfs", "Gcs", "DeviceName", "MountPath", "MountOptions", "Source", - }); - internal_static_google_cloud_batch_v1_NFS_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_batch_v1_NFS_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_NFS_descriptor, - new java.lang.String[] { - "Server", "RemotePath", - }); - internal_static_google_cloud_batch_v1_GCS_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_batch_v1_GCS_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1_GCS_descriptor, - new java.lang.String[] { - "RemotePath", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java deleted file mode 100644 index e845ebee2c08..000000000000 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java +++ /dev/null @@ -1,267 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1alpha/batch.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1alpha; - -public final class BatchProto { - private BatchProto() {} - - 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_batch_v1alpha_CreateJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_CreateJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_GetJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_GetJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_DeleteJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_DeleteJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_ListJobsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_ListJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_ListJobsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_ListJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_ListTasksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_ListTasksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_ListTasksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_ListTasksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_GetTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_GetTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_OperationMetadata_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/batch/v1alpha/batch.proto" - + "\022\032google.cloud.batch.v1alpha\032\034google/api" - + "/annotations.proto\032\027google/api/client.pr" - + "oto\032\037google/api/field_behavior.proto\032\033go" - + "ogle/api/field_info.proto\032\031google/api/re" - + "source.proto\032$google/cloud/batch/v1alpha" - + "/job.proto\032%google/cloud/batch/v1alpha/t" - + "ask.proto\032#google/longrunning/operations" - + ".proto\032\033google/protobuf/empty.proto\032\037goo" - + "gle/protobuf/timestamp.proto\"\240\001\n\020CreateJ" - + "obRequest\0220\n\006parent\030\001 \001(\tB \340A\002\372A\032\022\030batch" - + ".googleapis.com/Job\022\016\n\006job_id\030\002 \001(\t\0221\n\003j" - + "ob\030\003 \001(\0132\037.google.cloud.batch.v1alpha.Jo" - + "bB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"?\n\rGetJo" - + "bRequest\022.\n\004name\030\001 \001(\tB \340A\002\372A\032\n\030batch.go" - + "ogleapis.com/Job\"N\n\020DeleteJobRequest\022\014\n\004" - + "name\030\001 \001(\t\022\023\n\006reason\030\002 \001(\tB\003\340A\001\022\027\n\nreque" - + "st_id\030\004 \001(\tB\003\340A\001\"o\n\017ListJobsRequest\022\016\n\006p" - + "arent\030\001 \001(\t\022\016\n\006filter\030\004 \001(\t\022\025\n\010order_by\030" - + "\005 \001(\tB\003\340A\001\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"o\n\020ListJobsResponse\022-\n\004jobs\030\001 " - + "\003(\0132\037.google.cloud.batch.v1alpha.Job\022\027\n\017" - + "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" - + "(\t\"\223\001\n\020ListTasksRequest\0226\n\006parent\030\001 \001(\tB" - + "&\340A\002\372A \n\036batch.googleapis.com/TaskGroup\022" - + "\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\005 \001(\t\022\021\n\tpag" - + "e_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"r\n\021List" - + "TasksResponse\022/\n\005tasks\030\001 \003(\0132 .google.cl" - + "oud.batch.v1alpha.Task\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"A\n\016GetTaskR" - + "equest\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031batch.goog" - + "leapis.com/Task\"\200\002\n\021OperationMetadata\0224\n" - + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" - + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message" - + "\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellation\030\006 " - + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\221\t\n\014B" - + "atchService\022\252\001\n\tCreateJob\022,.google.cloud" - + ".batch.v1alpha.CreateJobRequest\032\037.google" - + ".cloud.batch.v1alpha.Job\"N\332A\021parent,job," - + "job_id\202\323\344\223\0024\"-/v1alpha/{parent=projects/" - + "*/locations/*}/jobs:\003job\022\222\001\n\006GetJob\022).go" - + "ogle.cloud.batch.v1alpha.GetJobRequest\032\037" - + ".google.cloud.batch.v1alpha.Job\"<\332A\004name" - + "\202\323\344\223\002/\022-/v1alpha/{name=projects/*/locati" - + "ons/*/jobs/*}\022\337\001\n\tDeleteJob\022,.google.clo" - + "ud.batch.v1alpha.DeleteJobRequest\032\035.goog" - + "le.longrunning.Operation\"\204\001\312AE\n\025google.p" - + "rotobuf.Empty\022,google.cloud.batch.v1alph" - + "a.OperationMetadata\332A\004name\202\323\344\223\002/*-/v1alp" - + "ha/{name=projects/*/locations/*/jobs/*}\022" - + "\245\001\n\010ListJobs\022+.google.cloud.batch.v1alph" - + "a.ListJobsRequest\032,.google.cloud.batch.v" - + "1alpha.ListJobsResponse\">\332A\006parent\202\323\344\223\002/" - + "\022-/v1alpha/{parent=projects/*/locations/" - + "*}/jobs\022\252\001\n\007GetTask\022*.google.cloud.batch" - + ".v1alpha.GetTaskRequest\032 .google.cloud.b" - + "atch.v1alpha.Task\"Q\332A\004name\202\323\344\223\002D\022B/v1alp" - + "ha/{name=projects/*/locations/*/jobs/*/t" - + "askGroups/*/tasks/*}\022\275\001\n\tListTasks\022,.goo" - + "gle.cloud.batch.v1alpha.ListTasksRequest" - + "\032-.google.cloud.batch.v1alpha.ListTasksR" - + "esponse\"S\332A\006parent\202\323\344\223\002D\022B/v1alpha/{pare" - + "nt=projects/*/locations/*/jobs/*/taskGro" - + "ups/*}/tasks\032H\312A\024batch.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\304\001\n\036com.google.cloud.batch.v1alph" - + "aB\nBatchProtoP\001Z4cloud.google.com/go/bat" - + "ch/apiv1alpha/batchpb;batchpb\242\002\003GCB\252\002\032Go" - + "ogle.Cloud.Batch.V1Alpha\312\002\032Google\\Cloud\\" - + "Batch\\V1alpha\352\002\035Google::Cloud::Batch::V1" - + "alphab\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.FieldInfoProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.batch.v1alpha.JobProto.getDescriptor(), - com.google.cloud.batch.v1alpha.TaskProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_batch_v1alpha_CreateJobRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_batch_v1alpha_CreateJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_CreateJobRequest_descriptor, - new java.lang.String[] { - "Parent", "JobId", "Job", "RequestId", - }); - internal_static_google_cloud_batch_v1alpha_GetJobRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_batch_v1alpha_GetJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_GetJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_batch_v1alpha_DeleteJobRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_batch_v1alpha_DeleteJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_DeleteJobRequest_descriptor, - new java.lang.String[] { - "Name", "Reason", "RequestId", - }); - internal_static_google_cloud_batch_v1alpha_ListJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_batch_v1alpha_ListJobsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_ListJobsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "OrderBy", "PageSize", "PageToken", - }); - internal_static_google_cloud_batch_v1alpha_ListJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_batch_v1alpha_ListJobsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_ListJobsResponse_descriptor, - new java.lang.String[] { - "Jobs", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_batch_v1alpha_ListTasksRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_batch_v1alpha_ListTasksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_ListTasksRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "OrderBy", "PageSize", "PageToken", - }); - internal_static_google_cloud_batch_v1alpha_ListTasksResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_batch_v1alpha_ListTasksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_ListTasksResponse_descriptor, - new java.lang.String[] { - "Tasks", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_batch_v1alpha_GetTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_batch_v1alpha_GetTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_GetTaskRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_batch_v1alpha_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_batch_v1alpha_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - 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.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.FieldInfoProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.batch.v1alpha.JobProto.getDescriptor(); - com.google.cloud.batch.v1alpha.TaskProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetJobRequestOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetJobRequestOrBuilder.java deleted file mode 100644 index 5e12196300e6..000000000000 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetJobRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1alpha/batch.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1alpha; - -public interface GetJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1alpha.GetJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Job name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Job name.
-   * 
- * - * - * 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-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetTaskRequestOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetTaskRequestOrBuilder.java deleted file mode 100644 index 2135722aa1f4..000000000000 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetTaskRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1alpha/batch.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1alpha; - -public interface GetTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1alpha.GetTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Task name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Task name.
-   * 
- * - * - * 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-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java deleted file mode 100644 index dc95e58c1ad4..000000000000 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java +++ /dev/null @@ -1,630 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1alpha/job.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1alpha; - -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_batch_v1alpha_Job_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Job_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Job_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Job_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_LogsPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_LogsPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_LogsPolicy_CloudLoggingOption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_LogsPolicy_CloudLoggingOption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_JobDependency_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_JobDependency_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_JobDependency_ItemsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_JobDependency_ItemsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_JobStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_JobStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_JobStatus_InstanceStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_JobStatus_InstanceStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_CountsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_CountsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_ResourceUsage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_ResourceUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_JobNotification_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_JobNotification_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_JobNotification_Message_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_JobNotification_Message_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_LocationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_LocationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_Disk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_Disk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_AttachedDisk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_AttachedDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_Accelerator_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_Accelerator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicyOrTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicyOrTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_NetworkInterface_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_NetworkInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_NetworkPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_NetworkPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_PlacementPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_PlacementPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_TaskGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_TaskGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_TaskGroup_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_TaskGroup_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_ServiceAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_ServiceAccount_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/batch/v1alpha/job.proto\022\032" - + "google.cloud.batch.v1alpha\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032%google/cloud/batch/v1alpha/task." - + "proto\032\036google/protobuf/duration.proto\032\037g" - + "oogle/protobuf/timestamp.proto\"\323\007\n\003Job\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\020\n\010p" - + "riority\030\003 \001(\003\022?\n\013task_groups\030\004 \003(\0132%.goo" - + "gle.cloud.batch.v1alpha.TaskGroupB\003\340A\002\022K" - + "\n\021scheduling_policy\030\005 \001(\01620.google.cloud" - + ".batch.v1alpha.Job.SchedulingPolicy\022?\n\014d" - + "ependencies\030\006 \003(\0132).google.cloud.batch.v" - + "1alpha.JobDependency\022G\n\021allocation_polic" - + "y\030\007 \001(\0132,.google.cloud.batch.v1alpha.All" - + "ocationPolicy\022;\n\006labels\030\010 \003(\0132+.google.c" - + "loud.batch.v1alpha.Job.LabelsEntry\022:\n\006st" - + "atus\030\t \001(\0132%.google.cloud.batch.v1alpha." - + "JobStatusB\003\340A\003\022E\n\014notification\030\n \001(\0132+.g" - + "oogle.cloud.batch.v1alpha.JobNotificatio" - + "nB\002\030\001\0224\n\013create_time\030\013 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\014 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022;\n\013log" - + "s_policy\030\r \001(\0132&.google.cloud.batch.v1al" - + "pha.LogsPolicy\022B\n\rnotifications\030\016 \003(\0132+." - + "google.cloud.batch.v1alpha.JobNotificati" - + "on\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"N\n\020SchedulingPolicy\022!\n\035SCHEDUL" - + "ING_POLICY_UNSPECIFIED\020\000\022\027\n\023AS_SOON_AS_P" - + "OSSIBLE\020\001:Q\352AN\n\030batch.googleapis.com/Job" - + "\0222projects/{project}/locations/{location" - + "}/jobs/{job}\"\327\002\n\nLogsPolicy\022G\n\013destinati" - + "on\030\001 \001(\01622.google.cloud.batch.v1alpha.Lo" - + "gsPolicy.Destination\022\021\n\tlogs_path\030\002 \001(\t\022" - + "\\\n\024cloud_logging_option\030\003 \001(\01329.google.c" - + "loud.batch.v1alpha.LogsPolicy.CloudLoggi" - + "ngOptionB\003\340A\001\032F\n\022CloudLoggingOption\0220\n#u" - + "se_generic_task_monitored_resource\030\001 \001(\010" - + "B\003\340A\001\"G\n\013Destination\022\033\n\027DESTINATION_UNSP" - + "ECIFIED\020\000\022\021\n\rCLOUD_LOGGING\020\001\022\010\n\004PATH\020\002\"\371" - + "\001\n\rJobDependency\022C\n\005items\030\001 \003(\01324.google" - + ".cloud.batch.v1alpha.JobDependency.Items" - + "Entry\032\\\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005valu" - + "e\030\002 \001(\0162..google.cloud.batch.v1alpha.Job" - + "Dependency.Type:\0028\001\"E\n\004Type\022\024\n\020TYPE_UNSP" - + "ECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\014\n\010" - + "FINISHED\020\003\"\353\007\n\tJobStatus\022:\n\005state\030\001 \001(\0162" - + "+.google.cloud.batch.v1alpha.JobStatus.S" - + "tate\022>\n\rstatus_events\030\002 \003(\0132\'.google.clo" - + "ud.batch.v1alpha.StatusEvent\022J\n\013task_gro" - + "ups\030\004 \003(\01325.google.cloud.batch.v1alpha.J" - + "obStatus.TaskGroupsEntry\022/\n\014run_duration" - + "\030\005 \001(\0132\031.google.protobuf.Duration\022A\n\016res" - + "ource_usage\030\006 \001(\0132).google.cloud.batch.v" - + "1alpha.ResourceUsage\032\333\001\n\016InstanceStatus\022" - + "\024\n\014machine_type\030\001 \001(\t\022Z\n\022provisioning_mo" - + "del\030\002 \001(\0162>.google.cloud.batch.v1alpha.A" - + "llocationPolicy.ProvisioningModel\022\021\n\ttas" - + "k_pack\030\003 \001(\003\022D\n\tboot_disk\030\004 \001(\01321.google" - + ".cloud.batch.v1alpha.AllocationPolicy.Di" - + "sk\032\334\001\n\017TaskGroupStatus\022Q\n\006counts\030\001 \003(\0132A" - + ".google.cloud.batch.v1alpha.JobStatus.Ta" - + "skGroupStatus.CountsEntry\022G\n\tinstances\030\002" - + " \003(\01324.google.cloud.batch.v1alpha.JobSta" - + "tus.InstanceStatus\032-\n\013CountsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\032h\n\017TaskGroupsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022D\n\005value\030\002 \001(\01325.googl" - + "e.cloud.batch.v1alpha.JobStatus.TaskGrou" - + "pStatus:\0028\001\"{\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\n\n\006QUEUED\020\001\022\r\n\tSCHEDULED\020\002\022\013\n\007RUNNIN" - + "G\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAILED\020\005\022\030\n\024DELETI" - + "ON_IN_PROGRESS\020\006\"#\n\rResourceUsage\022\022\n\ncor" - + "e_hours\030\001 \001(\001\"\220\003\n\017JobNotification\022\024\n\014pub" - + "sub_topic\030\001 \001(\t\022D\n\007message\030\002 \001(\01323.googl" - + "e.cloud.batch.v1alpha.JobNotification.Me" - + "ssage\032\323\001\n\007Message\022>\n\004type\030\001 \001(\01620.google" - + ".cloud.batch.v1alpha.JobNotification.Typ" - + "e\022B\n\rnew_job_state\030\002 \001(\0162+.google.cloud." - + "batch.v1alpha.JobStatus.State\022D\n\016new_tas" - + "k_state\030\003 \001(\0162,.google.cloud.batch.v1alp" - + "ha.TaskStatus.State\"K\n\004Type\022\024\n\020TYPE_UNSP" - + "ECIFIED\020\000\022\025\n\021JOB_STATE_CHANGED\020\001\022\026\n\022TASK" - + "_STATE_CHANGED\020\002\"\261\021\n\020AllocationPolicy\022M\n" - + "\010location\030\001 \001(\0132;.google.cloud.batch.v1a" - + "lpha.AllocationPolicy.LocationPolicy\022Q\n\010" - + "instance\030\002 \001(\0132;.google.cloud.batch.v1al" - + "pha.AllocationPolicy.InstancePolicyB\002\030\001\022" - + "X\n\tinstances\030\010 \003(\0132E.google.cloud.batch." - + "v1alpha.AllocationPolicy.InstancePolicyO" - + "rTemplate\022\036\n\022instance_templates\030\003 \003(\tB\002\030" - + "\001\022_\n\023provisioning_models\030\004 \003(\0162>.google." - + "cloud.batch.v1alpha.AllocationPolicy.Pro" - + "visioningModelB\002\030\001\022!\n\025service_account_em" - + "ail\030\005 \001(\tB\002\030\001\022C\n\017service_account\030\t \001(\0132*" - + ".google.cloud.batch.v1alpha.ServiceAccou" - + "nt\022H\n\006labels\030\006 \003(\01328.google.cloud.batch." - + "v1alpha.AllocationPolicy.LabelsEntry\022K\n\007" - + "network\030\007 \001(\0132:.google.cloud.batch.v1alp" - + "ha.AllocationPolicy.NetworkPolicy\022O\n\tpla" - + "cement\030\n \001(\0132<.google.cloud.batch.v1alph" - + "a.AllocationPolicy.PlacementPolicy\022\021\n\004ta" - + "gs\030\013 \003(\tB\003\340A\001\032E\n\016LocationPolicy\022\031\n\021allow" - + "ed_locations\030\001 \003(\t\022\030\n\020denied_locations\030\002" - + " \003(\t\032q\n\004Disk\022\017\n\005image\030\004 \001(\tH\000\022\022\n\010snapsho" - + "t\030\005 \001(\tH\000\022\014\n\004type\030\001 \001(\t\022\017\n\007size_gb\030\002 \001(\003" - + "\022\026\n\016disk_interface\030\006 \001(\tB\r\n\013data_source\032" - + "\217\001\n\014AttachedDisk\022E\n\010new_disk\030\001 \001(\01321.goo" - + "gle.cloud.batch.v1alpha.AllocationPolicy" - + ".DiskH\000\022\027\n\rexisting_disk\030\002 \001(\tH\000\022\023\n\013devi" - + "ce_name\030\003 \001(\tB\n\n\010attached\032h\n\013Accelerator" - + "\022\014\n\004type\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\022\037\n\023install" - + "_gpu_drivers\030\003 \001(\010B\002\030\001\022\033\n\016driver_version" - + "\030\004 \001(\tB\003\340A\001\032\271\003\n\016InstancePolicy\022!\n\025allowe" - + "d_machine_types\030\001 \003(\tB\002\030\001\022\024\n\014machine_typ" - + "e\030\002 \001(\t\022\030\n\020min_cpu_platform\030\003 \001(\t\022Z\n\022pro" - + "visioning_model\030\004 \001(\0162>.google.cloud.bat" - + "ch.v1alpha.AllocationPolicy.Provisioning" - + "Model\022N\n\014accelerators\030\005 \003(\01328.google.clo" - + "ud.batch.v1alpha.AllocationPolicy.Accele" - + "rator\022D\n\tboot_disk\030\010 \001(\01321.google.cloud." - + "batch.v1alpha.AllocationPolicy.Disk\022H\n\005d" - + "isks\030\006 \003(\01329.google.cloud.batch.v1alpha." - + "AllocationPolicy.AttachedDisk\022\030\n\013reserva" - + "tion\030\007 \001(\tB\003\340A\001\032\266\001\n\030InstancePolicyOrTemp" - + "late\022M\n\006policy\030\001 \001(\0132;.google.cloud.batc" - + "h.v1alpha.AllocationPolicy.InstancePolic" - + "yH\000\022\033\n\021instance_template\030\002 \001(\tH\000\022\033\n\023inst" - + "all_gpu_drivers\030\003 \001(\010B\021\n\017policy_template" - + "\032W\n\020NetworkInterface\022\017\n\007network\030\001 \001(\t\022\022\n" - + "\nsubnetwork\030\002 \001(\t\022\036\n\026no_external_ip_addr" - + "ess\030\003 \001(\010\032j\n\rNetworkPolicy\022Y\n\022network_in" - + "terfaces\030\001 \003(\0132=.google.cloud.batch.v1al" - + "pha.AllocationPolicy.NetworkInterface\032<\n" - + "\017PlacementPolicy\022\023\n\013collocation\030\001 \001(\t\022\024\n" - + "\014max_distance\030\002 \001(\003\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\021Provisioni" - + "ngModel\022\"\n\036PROVISIONING_MODEL_UNSPECIFIE" - + "D\020\000\022\014\n\010STANDARD\020\001\022\010\n\004SPOT\020\002\022\017\n\013PREEMPTIB" - + "LE\020\003\"\225\006\n\tTaskGroup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022<\n" - + "\ttask_spec\030\003 \001(\0132$.google.cloud.batch.v1" - + "alpha.TaskSpecB\003\340A\002\022\022\n\ntask_count\030\004 \001(\003\022" - + "\023\n\013parallelism\030\005 \001(\003\022Q\n\021scheduling_polic" - + "y\030\006 \001(\01626.google.cloud.batch.v1alpha.Tas" - + "kGroup.SchedulingPolicy\022G\n\021allocation_po" - + "licy\030\007 \001(\0132,.google.cloud.batch.v1alpha." - + "AllocationPolicy\022A\n\006labels\030\010 \003(\01321.googl" - + "e.cloud.batch.v1alpha.TaskGroup.LabelsEn" - + "try\022B\n\021task_environments\030\t \003(\0132\'.google." - + "cloud.batch.v1alpha.Environment\022\033\n\023task_" - + "count_per_node\030\n \001(\003\022\032\n\022require_hosts_fi" - + "le\030\013 \001(\010\022\026\n\016permissive_ssh\030\014 \001(\010\022\034\n\017run_" - + "as_non_root\030\016 \001(\010B\003\340A\001\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\\\n\020Schedul" - + "ingPolicy\022!\n\035SCHEDULING_POLICY_UNSPECIFI" - + "ED\020\000\022\027\n\023AS_SOON_AS_POSSIBLE\020\001\022\014\n\010IN_ORDE" - + "R\020\002:o\352Al\n\036batch.googleapis.com/TaskGroup" - + "\022Jprojects/{project}/locations/{location" - + "}/jobs/{job}/taskGroups/{task_group}\"/\n\016" - + "ServiceAccount\022\r\n\005email\030\001 \001(\t\022\016\n\006scopes\030" - + "\002 \003(\tB\302\001\n\036com.google.cloud.batch.v1alpha" - + "B\010JobProtoP\001Z4cloud.google.com/go/batch/" - + "apiv1alpha/batchpb;batchpb\242\002\003GCB\252\002\032Googl" - + "e.Cloud.Batch.V1Alpha\312\002\032Google\\Cloud\\Bat" - + "ch\\V1alpha\352\002\035Google::Cloud::Batch::V1alp" - + "hab\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(), - com.google.cloud.batch.v1alpha.TaskProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_batch_v1alpha_Job_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_batch_v1alpha_Job_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Job_descriptor, - new java.lang.String[] { - "Name", - "Uid", - "Priority", - "TaskGroups", - "SchedulingPolicy", - "Dependencies", - "AllocationPolicy", - "Labels", - "Status", - "Notification", - "CreateTime", - "UpdateTime", - "LogsPolicy", - "Notifications", - }); - internal_static_google_cloud_batch_v1alpha_Job_LabelsEntry_descriptor = - internal_static_google_cloud_batch_v1alpha_Job_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1alpha_Job_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Job_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1alpha_LogsPolicy_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_batch_v1alpha_LogsPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_LogsPolicy_descriptor, - new java.lang.String[] { - "Destination", "LogsPath", "CloudLoggingOption", - }); - internal_static_google_cloud_batch_v1alpha_LogsPolicy_CloudLoggingOption_descriptor = - internal_static_google_cloud_batch_v1alpha_LogsPolicy_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1alpha_LogsPolicy_CloudLoggingOption_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_LogsPolicy_CloudLoggingOption_descriptor, - new java.lang.String[] { - "UseGenericTaskMonitoredResource", - }); - internal_static_google_cloud_batch_v1alpha_JobDependency_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_batch_v1alpha_JobDependency_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_JobDependency_descriptor, - new java.lang.String[] { - "Items", - }); - internal_static_google_cloud_batch_v1alpha_JobDependency_ItemsEntry_descriptor = - internal_static_google_cloud_batch_v1alpha_JobDependency_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1alpha_JobDependency_ItemsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_JobDependency_ItemsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1alpha_JobStatus_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_batch_v1alpha_JobStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_JobStatus_descriptor, - new java.lang.String[] { - "State", "StatusEvents", "TaskGroups", "RunDuration", "ResourceUsage", - }); - internal_static_google_cloud_batch_v1alpha_JobStatus_InstanceStatus_descriptor = - internal_static_google_cloud_batch_v1alpha_JobStatus_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1alpha_JobStatus_InstanceStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_JobStatus_InstanceStatus_descriptor, - new java.lang.String[] { - "MachineType", "ProvisioningModel", "TaskPack", "BootDisk", - }); - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_descriptor = - internal_static_google_cloud_batch_v1alpha_JobStatus_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_descriptor, - new java.lang.String[] { - "Counts", "Instances", - }); - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_CountsEntry_descriptor = - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_CountsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupStatus_CountsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupsEntry_descriptor = - internal_static_google_cloud_batch_v1alpha_JobStatus_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_JobStatus_TaskGroupsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1alpha_ResourceUsage_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_batch_v1alpha_ResourceUsage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_ResourceUsage_descriptor, - new java.lang.String[] { - "CoreHours", - }); - internal_static_google_cloud_batch_v1alpha_JobNotification_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_batch_v1alpha_JobNotification_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_JobNotification_descriptor, - new java.lang.String[] { - "PubsubTopic", "Message", - }); - internal_static_google_cloud_batch_v1alpha_JobNotification_Message_descriptor = - internal_static_google_cloud_batch_v1alpha_JobNotification_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_batch_v1alpha_JobNotification_Message_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_JobNotification_Message_descriptor, - new java.lang.String[] { - "Type", "NewJobState", "NewTaskState", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor, - new java.lang.String[] { - "Location", - "Instance", - "Instances", - "InstanceTemplates", - "ProvisioningModels", - "ServiceAccountEmail", - "ServiceAccount", - "Labels", - "Network", - "Placement", - "Tags", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_LocationPolicy_descriptor = - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_LocationPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_LocationPolicy_descriptor, - new java.lang.String[] { - "AllowedLocations", "DeniedLocations", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_Disk_descriptor = - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_Disk_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_Disk_descriptor, - new java.lang.String[] { - "Image", "Snapshot", "Type", "SizeGb", "DiskInterface", "DataSource", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_AttachedDisk_descriptor = - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_AttachedDisk_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_AttachedDisk_descriptor, - new java.lang.String[] { - "NewDisk", "ExistingDisk", "DeviceName", "Attached", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_Accelerator_descriptor = - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_Accelerator_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_Accelerator_descriptor, - new java.lang.String[] { - "Type", "Count", "InstallGpuDrivers", "DriverVersion", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicy_descriptor = - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicy_descriptor, - new java.lang.String[] { - "AllowedMachineTypes", - "MachineType", - "MinCpuPlatform", - "ProvisioningModel", - "Accelerators", - "BootDisk", - "Disks", - "Reservation", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicyOrTemplate_descriptor = - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(5); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicyOrTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicyOrTemplate_descriptor, - new java.lang.String[] { - "Policy", "InstanceTemplate", "InstallGpuDrivers", "PolicyTemplate", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_NetworkInterface_descriptor = - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(6); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_NetworkInterface_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_NetworkInterface_descriptor, - new java.lang.String[] { - "Network", "Subnetwork", "NoExternalIpAddress", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_NetworkPolicy_descriptor = - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(7); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_NetworkPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_NetworkPolicy_descriptor, - new java.lang.String[] { - "NetworkInterfaces", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_PlacementPolicy_descriptor = - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(8); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_PlacementPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_PlacementPolicy_descriptor, - new java.lang.String[] { - "Collocation", "MaxDistance", - }); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_LabelsEntry_descriptor = - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor - .getNestedTypes() - .get(9); - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_AllocationPolicy_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1alpha_TaskGroup_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_batch_v1alpha_TaskGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_TaskGroup_descriptor, - new java.lang.String[] { - "Name", - "TaskSpec", - "TaskCount", - "Parallelism", - "SchedulingPolicy", - "AllocationPolicy", - "Labels", - "TaskEnvironments", - "TaskCountPerNode", - "RequireHostsFile", - "PermissiveSsh", - "RunAsNonRoot", - }); - internal_static_google_cloud_batch_v1alpha_TaskGroup_LabelsEntry_descriptor = - internal_static_google_cloud_batch_v1alpha_TaskGroup_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1alpha_TaskGroup_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_TaskGroup_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1alpha_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_batch_v1alpha_ServiceAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_ServiceAccount_descriptor, - new java.lang.String[] { - "Email", "Scopes", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.batch.v1alpha.TaskProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ResourceUsageOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ResourceUsageOrBuilder.java deleted file mode 100644 index 8daffbf30f45..000000000000 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ResourceUsageOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1alpha/job.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1alpha; - -public interface ResourceUsageOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1alpha.ResourceUsage) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The CPU core hours that the job consumes.
-   * 
- * - * double core_hours = 1; - * - * @return The coreHours. - */ - double getCoreHours(); -} diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskProto.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskProto.java deleted file mode 100644 index 7f9d5ba69f5b..000000000000 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskProto.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1alpha/task.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1alpha; - -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_batch_v1alpha_ComputeResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_ComputeResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_StatusEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_StatusEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_TaskExecution_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_TaskExecution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_TaskStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_TaskStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_TaskResourceUsage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_TaskResourceUsage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Runnable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Runnable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Runnable_Container_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Runnable_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Runnable_Script_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Runnable_Script_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Runnable_Barrier_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Runnable_Barrier_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Runnable_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Runnable_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_TaskSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_TaskSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_TaskSpec_EnvironmentsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_TaskSpec_EnvironmentsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_ActionCondition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_ActionCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Task_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Task_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Environment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Environment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Environment_KMSEnvMap_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Environment_KMSEnvMap_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Environment_VariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Environment_VariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_Environment_SecretVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Environment_SecretVariablesEntry_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/batch/v1alpha/task.proto\022" - + "\032google.cloud.batch.v1alpha\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032\'google/cloud/batch/v1alpha/volu" - + "me.proto\032\036google/protobuf/duration.proto" - + "\032\037google/protobuf/timestamp.proto\"b\n\017Com" - + "puteResource\022\021\n\tcpu_milli\030\001 \001(\003\022\022\n\nmemor" - + "y_mib\030\002 \001(\003\022\021\n\tgpu_count\030\003 \001(\003\022\025\n\rboot_d" - + "isk_mib\030\004 \001(\003\"\345\001\n\013StatusEvent\022\014\n\004type\030\003 " - + "\001(\t\022\023\n\013description\030\001 \001(\t\022.\n\nevent_time\030\002" - + " \001(\0132\032.google.protobuf.Timestamp\022A\n\016task" - + "_execution\030\004 \001(\0132).google.cloud.batch.v1" - + "alpha.TaskExecution\022@\n\ntask_state\030\005 \001(\0162" - + ",.google.cloud.batch.v1alpha.TaskStatus." - + "State\"?\n\rTaskExecution\022\021\n\texit_code\030\001 \001(" - + "\005\022\033\n\016stderr_snippet\030\002 \001(\tB\003\340A\001\"\303\002\n\nTaskS" - + "tatus\022;\n\005state\030\001 \001(\0162,.google.cloud.batc" - + "h.v1alpha.TaskStatus.State\022>\n\rstatus_eve" - + "nts\030\002 \003(\0132\'.google.cloud.batch.v1alpha.S" - + "tatusEvent\022E\n\016resource_usage\030\003 \001(\0132-.goo" - + "gle.cloud.batch.v1alpha.TaskResourceUsag" - + "e\"q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PEN" - + "DING\020\001\022\014\n\010ASSIGNED\020\002\022\013\n\007RUNNING\020\003\022\n\n\006FAI" - + "LED\020\004\022\r\n\tSUCCEEDED\020\005\022\016\n\nUNEXECUTED\020\006\"\'\n\021" - + "TaskResourceUsage\022\022\n\ncore_hours\030\001 \001(\001\"\267\006" - + "\n\010Runnable\022C\n\tcontainer\030\001 \001(\0132..google.c" - + "loud.batch.v1alpha.Runnable.ContainerH\000\022" - + "=\n\006script\030\002 \001(\0132+.google.cloud.batch.v1a" - + "lpha.Runnable.ScriptH\000\022?\n\007barrier\030\006 \001(\0132" - + ",.google.cloud.batch.v1alpha.Runnable.Ba" - + "rrierH\000\022\031\n\014display_name\030\n \001(\tB\003\340A\001\022\032\n\022ig" - + "nore_exit_status\030\003 \001(\010\022\022\n\nbackground\030\004 \001" - + "(\010\022\022\n\nalways_run\030\005 \001(\010\022<\n\013environment\030\007 " - + "\001(\0132\'.google.cloud.batch.v1alpha.Environ" - + "ment\022*\n\007timeout\030\010 \001(\0132\031.google.protobuf." - + "Duration\022@\n\006labels\030\t \003(\01320.google.cloud." - + "batch.v1alpha.Runnable.LabelsEntry\032\317\001\n\tC" - + "ontainer\022\021\n\timage_uri\030\001 \001(\t\022\020\n\010commands\030" - + "\002 \003(\t\022\022\n\nentrypoint\030\003 \001(\t\022\017\n\007volumes\030\007 \003" - + "(\t\022\017\n\007options\030\010 \001(\t\022\036\n\026block_external_ne" - + "twork\030\t \001(\010\022\020\n\010username\030\n \001(\t\022\020\n\010passwor" - + "d\030\013 \001(\t\022#\n\026enable_image_streaming\030\014 \001(\010B" - + "\003\340A\001\0323\n\006Script\022\016\n\004path\030\001 \001(\tH\000\022\016\n\004text\030\002" - + " \001(\tH\000B\t\n\007command\032\027\n\007Barrier\022\014\n\004name\030\001 \001" - + "(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001B\014\n\nexecutable\"\233\004\n\010TaskSpec\0227\n\t" - + "runnables\030\010 \003(\0132$.google.cloud.batch.v1a" - + "lpha.Runnable\022E\n\020compute_resource\030\003 \001(\0132" - + "+.google.cloud.batch.v1alpha.ComputeReso" - + "urce\0223\n\020max_run_duration\030\004 \001(\0132\031.google." - + "protobuf.Duration\022\027\n\017max_retry_count\030\005 \001" - + "(\005\022G\n\022lifecycle_policies\030\t \003(\0132+.google." - + "cloud.batch.v1alpha.LifecyclePolicy\022P\n\014e" - + "nvironments\030\006 \003(\01326.google.cloud.batch.v" - + "1alpha.TaskSpec.EnvironmentsEntryB\002\030\001\0223\n" - + "\007volumes\030\007 \003(\0132\".google.cloud.batch.v1al" - + "pha.Volume\022<\n\013environment\030\n \001(\0132\'.google" - + ".cloud.batch.v1alpha.Environment\0323\n\021Envi" - + "ronmentsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\"\224\002\n\017LifecyclePolicy\022B\n\006action\030\001 \001(" - + "\01622.google.cloud.batch.v1alpha.Lifecycle" - + "Policy.Action\022U\n\020action_condition\030\002 \001(\0132" - + ";.google.cloud.batch.v1alpha.LifecyclePo" - + "licy.ActionCondition\032%\n\017ActionCondition\022" - + "\022\n\nexit_codes\030\001 \003(\005\"?\n\006Action\022\026\n\022ACTION_" - + "UNSPECIFIED\020\000\022\016\n\nRETRY_TASK\020\001\022\r\n\tFAIL_TA" - + "SK\020\002\"\305\001\n\004Task\022\014\n\004name\030\001 \001(\t\0226\n\006status\030\002 " - + "\001(\0132&.google.cloud.batch.v1alpha.TaskSta" - + "tus:w\352At\n\031batch.googleapis.com/Task\022Wpro" - + "jects/{project}/locations/{location}/job" - + "s/{job}/taskGroups/{task_group}/tasks/{t" - + "ask}\"\236\003\n\013Environment\022I\n\tvariables\030\001 \003(\0132" - + "6.google.cloud.batch.v1alpha.Environment" - + ".VariablesEntry\022V\n\020secret_variables\030\002 \003(" - + "\0132<.google.cloud.batch.v1alpha.Environme" - + "nt.SecretVariablesEntry\022N\n\023encrypted_var" - + "iables\030\003 \001(\01321.google.cloud.batch.v1alph" - + "a.Environment.KMSEnvMap\0322\n\tKMSEnvMap\022\020\n\010" - + "key_name\030\001 \001(\t\022\023\n\013cipher_text\030\002 \001(\t\0320\n\016V" - + "ariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\0326\n\024SecretVariablesEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\303\001\n\036com.google.clo" - + "ud.batch.v1alphaB\tTaskProtoP\001Z4cloud.goo" - + "gle.com/go/batch/apiv1alpha/batchpb;batc" - + "hpb\242\002\003GCB\252\002\032Google.Cloud.Batch.V1Alpha\312\002" - + "\032Google\\Cloud\\Batch\\V1alpha\352\002\035Google::Cl" - + "oud::Batch::V1alphab\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(), - com.google.cloud.batch.v1alpha.VolumeProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_batch_v1alpha_ComputeResource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_batch_v1alpha_ComputeResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_ComputeResource_descriptor, - new java.lang.String[] { - "CpuMilli", "MemoryMib", "GpuCount", "BootDiskMib", - }); - internal_static_google_cloud_batch_v1alpha_StatusEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_batch_v1alpha_StatusEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_StatusEvent_descriptor, - new java.lang.String[] { - "Type", "Description", "EventTime", "TaskExecution", "TaskState", - }); - internal_static_google_cloud_batch_v1alpha_TaskExecution_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_batch_v1alpha_TaskExecution_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_TaskExecution_descriptor, - new java.lang.String[] { - "ExitCode", "StderrSnippet", - }); - internal_static_google_cloud_batch_v1alpha_TaskStatus_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_batch_v1alpha_TaskStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_TaskStatus_descriptor, - new java.lang.String[] { - "State", "StatusEvents", "ResourceUsage", - }); - internal_static_google_cloud_batch_v1alpha_TaskResourceUsage_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_batch_v1alpha_TaskResourceUsage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_TaskResourceUsage_descriptor, - new java.lang.String[] { - "CoreHours", - }); - internal_static_google_cloud_batch_v1alpha_Runnable_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_batch_v1alpha_Runnable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Runnable_descriptor, - new java.lang.String[] { - "Container", - "Script", - "Barrier", - "DisplayName", - "IgnoreExitStatus", - "Background", - "AlwaysRun", - "Environment", - "Timeout", - "Labels", - "Executable", - }); - internal_static_google_cloud_batch_v1alpha_Runnable_Container_descriptor = - internal_static_google_cloud_batch_v1alpha_Runnable_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1alpha_Runnable_Container_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Runnable_Container_descriptor, - new java.lang.String[] { - "ImageUri", - "Commands", - "Entrypoint", - "Volumes", - "Options", - "BlockExternalNetwork", - "Username", - "Password", - "EnableImageStreaming", - }); - internal_static_google_cloud_batch_v1alpha_Runnable_Script_descriptor = - internal_static_google_cloud_batch_v1alpha_Runnable_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_batch_v1alpha_Runnable_Script_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Runnable_Script_descriptor, - new java.lang.String[] { - "Path", "Text", "Command", - }); - internal_static_google_cloud_batch_v1alpha_Runnable_Barrier_descriptor = - internal_static_google_cloud_batch_v1alpha_Runnable_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_batch_v1alpha_Runnable_Barrier_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Runnable_Barrier_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_batch_v1alpha_Runnable_LabelsEntry_descriptor = - internal_static_google_cloud_batch_v1alpha_Runnable_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_batch_v1alpha_Runnable_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Runnable_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1alpha_TaskSpec_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_batch_v1alpha_TaskSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_TaskSpec_descriptor, - new java.lang.String[] { - "Runnables", - "ComputeResource", - "MaxRunDuration", - "MaxRetryCount", - "LifecyclePolicies", - "Environments", - "Volumes", - "Environment", - }); - internal_static_google_cloud_batch_v1alpha_TaskSpec_EnvironmentsEntry_descriptor = - internal_static_google_cloud_batch_v1alpha_TaskSpec_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1alpha_TaskSpec_EnvironmentsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_TaskSpec_EnvironmentsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_descriptor, - new java.lang.String[] { - "Action", "ActionCondition", - }); - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_ActionCondition_descriptor = - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_ActionCondition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_LifecyclePolicy_ActionCondition_descriptor, - new java.lang.String[] { - "ExitCodes", - }); - internal_static_google_cloud_batch_v1alpha_Task_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_batch_v1alpha_Task_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Task_descriptor, - new java.lang.String[] { - "Name", "Status", - }); - internal_static_google_cloud_batch_v1alpha_Environment_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_batch_v1alpha_Environment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Environment_descriptor, - new java.lang.String[] { - "Variables", "SecretVariables", "EncryptedVariables", - }); - internal_static_google_cloud_batch_v1alpha_Environment_KMSEnvMap_descriptor = - internal_static_google_cloud_batch_v1alpha_Environment_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_batch_v1alpha_Environment_KMSEnvMap_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Environment_KMSEnvMap_descriptor, - new java.lang.String[] { - "KeyName", "CipherText", - }); - internal_static_google_cloud_batch_v1alpha_Environment_VariablesEntry_descriptor = - internal_static_google_cloud_batch_v1alpha_Environment_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_batch_v1alpha_Environment_VariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Environment_VariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_batch_v1alpha_Environment_SecretVariablesEntry_descriptor = - internal_static_google_cloud_batch_v1alpha_Environment_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_batch_v1alpha_Environment_SecretVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Environment_SecretVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.batch.v1alpha.VolumeProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskResourceUsageOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskResourceUsageOrBuilder.java deleted file mode 100644 index 816d4112ade5..000000000000 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskResourceUsageOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1alpha/task.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1alpha; - -public interface TaskResourceUsageOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1alpha.TaskResourceUsage) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The CPU core hours the task consumes based on task requirement and run
-   * time.
-   * 
- * - * double core_hours = 1; - * - * @return The coreHours. - */ - double getCoreHours(); -} diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeProto.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeProto.java deleted file mode 100644 index 3c31c46bc0b6..000000000000 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeProto.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/batch/v1alpha/volume.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.batch.v1alpha; - -public final class VolumeProto { - private VolumeProto() {} - - 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_batch_v1alpha_Volume_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_Volume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_NFS_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_NFS_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_PD_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_PD_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_batch_v1alpha_GCS_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_batch_v1alpha_GCS_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/batch/v1alpha/volume.prot" - + "o\022\032google.cloud.batch.v1alpha\"\346\001\n\006Volume" - + "\022.\n\003nfs\030\001 \001(\0132\037.google.cloud.batch.v1alp" - + "ha.NFSH\000\0220\n\002pd\030\002 \001(\0132\036.google.cloud.batc" - + "h.v1alpha.PDB\002\030\001H\000\022.\n\003gcs\030\003 \001(\0132\037.google" - + ".cloud.batch.v1alpha.GCSH\000\022\025\n\013device_nam" - + "e\030\006 \001(\tH\000\022\022\n\nmount_path\030\004 \001(\t\022\025\n\rmount_o" - + "ptions\030\005 \003(\tB\010\n\006source\"*\n\003NFS\022\016\n\006server\030" - + "\001 \001(\t\022\023\n\013remote_path\030\002 \001(\t\"8\n\002PD\022\014\n\004disk" - + "\030\001 \001(\t\022\016\n\006device\030\002 \001(\t\022\024\n\010existing\030\003 \001(\010" - + "B\002\030\001\"\032\n\003GCS\022\023\n\013remote_path\030\001 \001(\tB\305\001\n\036com" - + ".google.cloud.batch.v1alphaB\013VolumeProto" - + "P\001Z4cloud.google.com/go/batch/apiv1alpha" - + "/batchpb;batchpb\242\002\003GCB\252\002\032Google.Cloud.Ba" - + "tch.V1Alpha\312\002\032Google\\Cloud\\Batch\\V1alpha" - + "\352\002\035Google::Cloud::Batch::V1alphab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_batch_v1alpha_Volume_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_batch_v1alpha_Volume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_Volume_descriptor, - new java.lang.String[] { - "Nfs", "Pd", "Gcs", "DeviceName", "MountPath", "MountOptions", "Source", - }); - internal_static_google_cloud_batch_v1alpha_NFS_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_batch_v1alpha_NFS_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_NFS_descriptor, - new java.lang.String[] { - "Server", "RemotePath", - }); - internal_static_google_cloud_batch_v1alpha_PD_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_batch_v1alpha_PD_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_PD_descriptor, - new java.lang.String[] { - "Disk", "Device", "Existing", - }); - internal_static_google_cloud_batch_v1alpha_GCS_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_batch_v1alpha_GCS_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_batch_v1alpha_GCS_descriptor, - new java.lang.String[] { - "RemotePath", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java similarity index 100% rename from java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java similarity index 99% rename from java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java index 1d6d8cc91a70..1d496466b5da 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java +++ b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java @@ -31,6 +31,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.batch.v1.stub.BatchServiceStubSettings; diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/gapic_metadata.json b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/gapic_metadata.json similarity index 100% rename from java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/gapic_metadata.json rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/gapic_metadata.json diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java similarity index 100% rename from java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java similarity index 100% rename from java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java similarity index 100% rename from java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceCallableFactory.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceCallableFactory.java similarity index 100% rename from java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceCallableFactory.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceCallableFactory.java diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java similarity index 99% rename from java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java index 77024ac68584..e3585498abbc 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java +++ b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java @@ -49,6 +49,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-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceCallableFactory.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceCallableFactory.java similarity index 100% rename from java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceCallableFactory.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceCallableFactory.java diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceStub.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceStub.java similarity index 99% rename from java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceStub.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceStub.java index eb783690226e..63e7afb5c068 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceStub.java +++ b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/HttpJsonBatchServiceStub.java @@ -33,6 +33,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.RequestParamsBuilder; diff --git a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json similarity index 100% rename from java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json diff --git a/java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientHttpJsonTest.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientHttpJsonTest.java similarity index 100% rename from java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientHttpJsonTest.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientHttpJsonTest.java diff --git a/java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientTest.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientTest.java similarity index 100% rename from java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientTest.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientTest.java diff --git a/java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchService.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchService.java similarity index 100% rename from java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchService.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchService.java diff --git a/java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchServiceImpl.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchServiceImpl.java similarity index 100% rename from java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchServiceImpl.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchServiceImpl.java diff --git a/java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockLocations.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockLocations.java similarity index 100% rename from java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockLocations.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockLocations.java diff --git a/java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockLocationsImpl.java b/owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockLocationsImpl.java similarity index 100% rename from java-batch/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockLocationsImpl.java rename to owl-bot-staging/java-batch/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockLocationsImpl.java diff --git a/java-batch/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java b/owl-bot-staging/java-batch/v1/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java similarity index 51% rename from java-batch/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java rename to owl-bot-staging/java-batch/v1/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java index c8570f531518..750b9713a86d 100644 --- a/java-batch/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java +++ b/owl-bot-staging/java-batch/v1/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.batch.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Google Batch Service.
  * The service manages user submitted batch jobs and allocates Google Compute
@@ -37,292 +20,237 @@ private BatchServiceGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.cloud.batch.v1.BatchService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.CreateJobRequest, com.google.cloud.batch.v1.Job>
-      getCreateJobMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateJobMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateJob",
       requestType = com.google.cloud.batch.v1.CreateJobRequest.class,
       responseType = com.google.cloud.batch.v1.Job.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.CreateJobRequest, com.google.cloud.batch.v1.Job>
-      getCreateJobMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.batch.v1.CreateJobRequest, com.google.cloud.batch.v1.Job>
-        getCreateJobMethod;
+  public static io.grpc.MethodDescriptor getCreateJobMethod() {
+    io.grpc.MethodDescriptor getCreateJobMethod;
     if ((getCreateJobMethod = BatchServiceGrpc.getCreateJobMethod) == null) {
       synchronized (BatchServiceGrpc.class) {
         if ((getCreateJobMethod = BatchServiceGrpc.getCreateJobMethod) == null) {
-          BatchServiceGrpc.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.batch.v1.CreateJobRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.batch.v1.Job.getDefaultInstance()))
-                      .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("CreateJob"))
-                      .build();
+          BatchServiceGrpc.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.batch.v1.CreateJobRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.batch.v1.Job.getDefaultInstance()))
+              .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("CreateJob"))
+              .build();
         }
       }
     }
     return getCreateJobMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.GetJobRequest, com.google.cloud.batch.v1.Job>
-      getGetJobMethod;
+  private static volatile io.grpc.MethodDescriptor getGetJobMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetJob",
       requestType = com.google.cloud.batch.v1.GetJobRequest.class,
       responseType = com.google.cloud.batch.v1.Job.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.GetJobRequest, com.google.cloud.batch.v1.Job>
-      getGetJobMethod() {
-    io.grpc.MethodDescriptor
-        getGetJobMethod;
+  public static io.grpc.MethodDescriptor getGetJobMethod() {
+    io.grpc.MethodDescriptor getGetJobMethod;
     if ((getGetJobMethod = BatchServiceGrpc.getGetJobMethod) == null) {
       synchronized (BatchServiceGrpc.class) {
         if ((getGetJobMethod = BatchServiceGrpc.getGetJobMethod) == null) {
-          BatchServiceGrpc.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.batch.v1.GetJobRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.batch.v1.Job.getDefaultInstance()))
-                      .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("GetJob"))
-                      .build();
+          BatchServiceGrpc.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.batch.v1.GetJobRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.batch.v1.Job.getDefaultInstance()))
+              .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("GetJob"))
+              .build();
         }
       }
     }
     return getGetJobMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.DeleteJobRequest, com.google.longrunning.Operation>
-      getDeleteJobMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteJobMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteJob",
       requestType = com.google.cloud.batch.v1.DeleteJobRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.DeleteJobRequest, com.google.longrunning.Operation>
-      getDeleteJobMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.batch.v1.DeleteJobRequest, com.google.longrunning.Operation>
-        getDeleteJobMethod;
+  public static io.grpc.MethodDescriptor getDeleteJobMethod() {
+    io.grpc.MethodDescriptor getDeleteJobMethod;
     if ((getDeleteJobMethod = BatchServiceGrpc.getDeleteJobMethod) == null) {
       synchronized (BatchServiceGrpc.class) {
         if ((getDeleteJobMethod = BatchServiceGrpc.getDeleteJobMethod) == null) {
-          BatchServiceGrpc.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.batch.v1.DeleteJobRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("DeleteJob"))
-                      .build();
+          BatchServiceGrpc.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.batch.v1.DeleteJobRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("DeleteJob"))
+              .build();
         }
       }
     }
     return getDeleteJobMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.ListJobsRequest, com.google.cloud.batch.v1.ListJobsResponse>
-      getListJobsMethod;
+  private static volatile io.grpc.MethodDescriptor getListJobsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListJobs",
       requestType = com.google.cloud.batch.v1.ListJobsRequest.class,
       responseType = com.google.cloud.batch.v1.ListJobsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.ListJobsRequest, com.google.cloud.batch.v1.ListJobsResponse>
-      getListJobsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.batch.v1.ListJobsRequest, com.google.cloud.batch.v1.ListJobsResponse>
-        getListJobsMethod;
+  public static io.grpc.MethodDescriptor getListJobsMethod() {
+    io.grpc.MethodDescriptor getListJobsMethod;
     if ((getListJobsMethod = BatchServiceGrpc.getListJobsMethod) == null) {
       synchronized (BatchServiceGrpc.class) {
         if ((getListJobsMethod = BatchServiceGrpc.getListJobsMethod) == null) {
-          BatchServiceGrpc.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.batch.v1.ListJobsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.batch.v1.ListJobsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("ListJobs"))
-                      .build();
+          BatchServiceGrpc.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.batch.v1.ListJobsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.batch.v1.ListJobsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("ListJobs"))
+              .build();
         }
       }
     }
     return getListJobsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.GetTaskRequest, com.google.cloud.batch.v1.Task>
-      getGetTaskMethod;
+  private static volatile io.grpc.MethodDescriptor getGetTaskMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetTask",
       requestType = com.google.cloud.batch.v1.GetTaskRequest.class,
       responseType = com.google.cloud.batch.v1.Task.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.GetTaskRequest, com.google.cloud.batch.v1.Task>
-      getGetTaskMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.batch.v1.GetTaskRequest, com.google.cloud.batch.v1.Task>
-        getGetTaskMethod;
+  public static io.grpc.MethodDescriptor getGetTaskMethod() {
+    io.grpc.MethodDescriptor getGetTaskMethod;
     if ((getGetTaskMethod = BatchServiceGrpc.getGetTaskMethod) == null) {
       synchronized (BatchServiceGrpc.class) {
         if ((getGetTaskMethod = BatchServiceGrpc.getGetTaskMethod) == null) {
-          BatchServiceGrpc.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.batch.v1.GetTaskRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.batch.v1.Task.getDefaultInstance()))
-                      .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("GetTask"))
-                      .build();
+          BatchServiceGrpc.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.batch.v1.GetTaskRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.batch.v1.Task.getDefaultInstance()))
+              .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("GetTask"))
+              .build();
         }
       }
     }
     return getGetTaskMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.ListTasksRequest, com.google.cloud.batch.v1.ListTasksResponse>
-      getListTasksMethod;
+  private static volatile io.grpc.MethodDescriptor getListTasksMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListTasks",
       requestType = com.google.cloud.batch.v1.ListTasksRequest.class,
       responseType = com.google.cloud.batch.v1.ListTasksResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.batch.v1.ListTasksRequest, com.google.cloud.batch.v1.ListTasksResponse>
-      getListTasksMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.batch.v1.ListTasksRequest, com.google.cloud.batch.v1.ListTasksResponse>
-        getListTasksMethod;
+  public static io.grpc.MethodDescriptor getListTasksMethod() {
+    io.grpc.MethodDescriptor getListTasksMethod;
     if ((getListTasksMethod = BatchServiceGrpc.getListTasksMethod) == null) {
       synchronized (BatchServiceGrpc.class) {
         if ((getListTasksMethod = BatchServiceGrpc.getListTasksMethod) == null) {
-          BatchServiceGrpc.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.batch.v1.ListTasksRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.batch.v1.ListTasksResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("ListTasks"))
-                      .build();
+          BatchServiceGrpc.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.batch.v1.ListTasksRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.batch.v1.ListTasksResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BatchServiceMethodDescriptorSupplier("ListTasks"))
+              .build();
         }
       }
     }
     return getListTasksMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static BatchServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BatchServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BatchServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BatchServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BatchServiceStub(channel, callOptions);
+        }
+      };
     return BatchServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BatchServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static BatchServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BatchServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BatchServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BatchServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BatchServiceBlockingStub(channel, callOptions);
+        }
+      };
     return BatchServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static BatchServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static BatchServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BatchServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BatchServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BatchServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BatchServiceFutureStub(channel, callOptions);
+        }
+      };
     return BatchServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Google Batch Service.
    * The service manages user submitted batch jobs and allocates Google Compute
@@ -332,79 +260,61 @@ public BatchServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Create a Job.
      * 
*/ - default void createJob( - com.google.cloud.batch.v1.CreateJobRequest request, + default void createJob(com.google.cloud.batch.v1.CreateJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateJobMethod(), responseObserver); } /** - * - * *
      * Get a Job specified by its resource name.
      * 
*/ - default void getJob( - com.google.cloud.batch.v1.GetJobRequest request, + default void getJob(com.google.cloud.batch.v1.GetJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); } /** - * - * *
      * Delete a Job.
      * 
*/ - default void deleteJob( - com.google.cloud.batch.v1.DeleteJobRequest request, + default void deleteJob(com.google.cloud.batch.v1.DeleteJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); } /** - * - * *
      * List all Jobs for a project within a region.
      * 
*/ - default void listJobs( - com.google.cloud.batch.v1.ListJobsRequest request, + default void listJobs(com.google.cloud.batch.v1.ListJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); } /** - * - * *
      * Return a single Task.
      * 
*/ - default void getTask( - com.google.cloud.batch.v1.GetTaskRequest request, + default void getTask(com.google.cloud.batch.v1.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); } /** - * - * *
      * List Tasks associated with a job.
      * 
*/ - default void listTasks( - com.google.cloud.batch.v1.ListTasksRequest request, + default void listTasks(com.google.cloud.batch.v1.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); } @@ -412,25 +322,22 @@ default void listTasks( /** * Base class for the server implementation of the service BatchService. - * *
    * Google Batch Service.
    * The service manages user submitted batch jobs and allocates Google Compute
    * Engine VM instances to run the jobs.
    * 
*/ - public abstract static class BatchServiceImplBase + public static abstract class BatchServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return BatchServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service BatchService. - * *
    * Google Batch Service.
    * The service manages user submitted batch jobs and allocates Google Compute
@@ -439,94 +346,78 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class BatchServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private BatchServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BatchServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected BatchServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected BatchServiceStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new BatchServiceStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Create a Job.
      * 
*/ - public void createJob( - com.google.cloud.batch.v1.CreateJobRequest request, + public void createJob(com.google.cloud.batch.v1.CreateJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateJobMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Get a Job specified by its resource name.
      * 
*/ - public void getJob( - com.google.cloud.batch.v1.GetJobRequest request, + public void getJob(com.google.cloud.batch.v1.GetJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Delete a Job.
      * 
*/ - public void deleteJob( - com.google.cloud.batch.v1.DeleteJobRequest request, + public void deleteJob(com.google.cloud.batch.v1.DeleteJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * List all Jobs for a project within a region.
      * 
*/ - public void listJobs( - com.google.cloud.batch.v1.ListJobsRequest request, + public void listJobs(com.google.cloud.batch.v1.ListJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Return a single Task.
      * 
*/ - public void getTask( - com.google.cloud.batch.v1.GetTaskRequest request, + public void getTask(com.google.cloud.batch.v1.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * List Tasks associated with a job.
      * 
*/ - public void listTasks( - com.google.cloud.batch.v1.ListTasksRequest request, + public void listTasks(com.google.cloud.batch.v1.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); @@ -535,7 +426,6 @@ public void listTasks( /** * A stub to allow clients to do synchronous rpc calls to service BatchService. - * *
    * Google Batch Service.
    * The service manages user submitted batch jobs and allocates Google Compute
@@ -544,7 +434,8 @@ public void listTasks(
    */
   public static final class BatchServiceBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private BatchServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BatchServiceBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -555,21 +446,16 @@ protected BatchServiceBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Create a Job.
      * 
*/ - public com.google.cloud.batch.v1.Job createJob( - com.google.cloud.batch.v1.CreateJobRequest request) { + public com.google.cloud.batch.v1.Job createJob(com.google.cloud.batch.v1.CreateJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateJobMethod(), getCallOptions(), request); } /** - * - * *
      * Get a Job specified by its resource name.
      * 
@@ -580,53 +466,41 @@ public com.google.cloud.batch.v1.Job getJob(com.google.cloud.batch.v1.GetJobRequ } /** - * - * *
      * Delete a Job.
      * 
*/ - public com.google.longrunning.Operation deleteJob( - com.google.cloud.batch.v1.DeleteJobRequest request) { + public com.google.longrunning.Operation deleteJob(com.google.cloud.batch.v1.DeleteJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteJobMethod(), getCallOptions(), request); } /** - * - * *
      * List all Jobs for a project within a region.
      * 
*/ - public com.google.cloud.batch.v1.ListJobsResponse listJobs( - com.google.cloud.batch.v1.ListJobsRequest request) { + public com.google.cloud.batch.v1.ListJobsResponse listJobs(com.google.cloud.batch.v1.ListJobsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListJobsMethod(), getCallOptions(), request); } /** - * - * *
      * Return a single Task.
      * 
*/ - public com.google.cloud.batch.v1.Task getTask( - com.google.cloud.batch.v1.GetTaskRequest request) { + public com.google.cloud.batch.v1.Task getTask(com.google.cloud.batch.v1.GetTaskRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetTaskMethod(), getCallOptions(), request); } /** - * - * *
      * List Tasks associated with a job.
      * 
*/ - public com.google.cloud.batch.v1.ListTasksResponse listTasks( - com.google.cloud.batch.v1.ListTasksRequest request) { + public com.google.cloud.batch.v1.ListTasksResponse listTasks(com.google.cloud.batch.v1.ListTasksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTasksMethod(), getCallOptions(), request); } @@ -634,7 +508,6 @@ public com.google.cloud.batch.v1.ListTasksResponse listTasks( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service BatchService. - * *
    * Google Batch Service.
    * The service manages user submitted batch jobs and allocates Google Compute
@@ -643,7 +516,8 @@ public com.google.cloud.batch.v1.ListTasksResponse listTasks(
    */
   public static final class BatchServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private BatchServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private BatchServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -654,21 +528,17 @@ protected BatchServiceFutureStub build(
     }
 
     /**
-     *
-     *
      * 
      * Create a Job.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createJob(com.google.cloud.batch.v1.CreateJobRequest request) { + public com.google.common.util.concurrent.ListenableFuture createJob( + com.google.cloud.batch.v1.CreateJobRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateJobMethod(), getCallOptions()), request); } /** - * - * *
      * Get a Job specified by its resource name.
      * 
@@ -680,55 +550,45 @@ public com.google.common.util.concurrent.ListenableFuture * Delete a Job. *
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteJob(com.google.cloud.batch.v1.DeleteJobRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteJob( + com.google.cloud.batch.v1.DeleteJobRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); } /** - * - * *
      * List all Jobs for a project within a region.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.batch.v1.ListJobsResponse> - listJobs(com.google.cloud.batch.v1.ListJobsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listJobs( + com.google.cloud.batch.v1.ListJobsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListJobsMethod(), getCallOptions()), request); } /** - * - * *
      * Return a single Task.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getTask(com.google.cloud.batch.v1.GetTaskRequest request) { + public com.google.common.util.concurrent.ListenableFuture getTask( + com.google.cloud.batch.v1.GetTaskRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); } /** - * - * *
      * List Tasks associated with a job.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.batch.v1.ListTasksResponse> - listTasks(com.google.cloud.batch.v1.ListTasksRequest request) { + public com.google.common.util.concurrent.ListenableFuture listTasks( + com.google.cloud.batch.v1.ListTasksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTasksMethod(), getCallOptions()), request); } @@ -741,11 +601,11 @@ public com.google.common.util.concurrent.ListenableFuture - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -759,36 +619,28 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_JOB: - serviceImpl.createJob( - (com.google.cloud.batch.v1.CreateJobRequest) request, + serviceImpl.createJob((com.google.cloud.batch.v1.CreateJobRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_JOB: - serviceImpl.getJob( - (com.google.cloud.batch.v1.GetJobRequest) request, + serviceImpl.getJob((com.google.cloud.batch.v1.GetJobRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_JOB: - serviceImpl.deleteJob( - (com.google.cloud.batch.v1.DeleteJobRequest) request, + serviceImpl.deleteJob((com.google.cloud.batch.v1.DeleteJobRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_JOBS: - serviceImpl.listJobs( - (com.google.cloud.batch.v1.ListJobsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listJobs((com.google.cloud.batch.v1.ListJobsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_TASK: - serviceImpl.getTask( - (com.google.cloud.batch.v1.GetTaskRequest) request, + serviceImpl.getTask((com.google.cloud.batch.v1.GetTaskRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_TASKS: - serviceImpl.listTasks( - (com.google.cloud.batch.v1.ListTasksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listTasks((com.google.cloud.batch.v1.ListTasksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -809,47 +661,52 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.CreateJobRequest, com.google.cloud.batch.v1.Job>( - service, METHODID_CREATE_JOB))) + getCreateJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.CreateJobRequest, + com.google.cloud.batch.v1.Job>( + service, METHODID_CREATE_JOB))) .addMethod( - getGetJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.GetJobRequest, com.google.cloud.batch.v1.Job>( - service, METHODID_GET_JOB))) + getGetJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.GetJobRequest, + com.google.cloud.batch.v1.Job>( + service, METHODID_GET_JOB))) .addMethod( - getDeleteJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.DeleteJobRequest, com.google.longrunning.Operation>( - service, METHODID_DELETE_JOB))) + getDeleteJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.DeleteJobRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_JOB))) .addMethod( - getListJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.ListJobsRequest, - com.google.cloud.batch.v1.ListJobsResponse>(service, METHODID_LIST_JOBS))) + getListJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.ListJobsRequest, + com.google.cloud.batch.v1.ListJobsResponse>( + service, METHODID_LIST_JOBS))) .addMethod( - getGetTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.GetTaskRequest, com.google.cloud.batch.v1.Task>( - service, METHODID_GET_TASK))) + getGetTaskMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.GetTaskRequest, + com.google.cloud.batch.v1.Task>( + service, METHODID_GET_TASK))) .addMethod( - getListTasksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.ListTasksRequest, - com.google.cloud.batch.v1.ListTasksResponse>(service, METHODID_LIST_TASKS))) + getListTasksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.ListTasksRequest, + com.google.cloud.batch.v1.ListTasksResponse>( + service, METHODID_LIST_TASKS))) .build(); } - private abstract static class BatchServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class BatchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { BatchServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -891,17 +748,15 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BatchServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BatchServiceFileDescriptorSupplier()) - .addMethod(getCreateJobMethod()) - .addMethod(getGetJobMethod()) - .addMethod(getDeleteJobMethod()) - .addMethod(getListJobsMethod()) - .addMethod(getGetTaskMethod()) - .addMethod(getListTasksMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BatchServiceFileDescriptorSupplier()) + .addMethod(getCreateJobMethod()) + .addMethod(getGetJobMethod()) + .addMethod(getDeleteJobMethod()) + .addMethod(getListJobsMethod()) + .addMethod(getGetTaskMethod()) + .addMethod(getListTasksMethod()) + .build(); } } } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java similarity index 74% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java index cc284ca20202..edb6564da91a 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto @@ -20,8 +5,6 @@ package com.google.cloud.batch.v1; /** - * - * *
  * A Job's resource allocation policy describes when, where, and how compute
  * resources should be allocated for the Job.
@@ -29,30 +12,31 @@
  *
  * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy}
  */
-public final class AllocationPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AllocationPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy)
     AllocationPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AllocationPolicy.newBuilder() to construct.
   private AllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AllocationPolicy() {
     instances_ = java.util.Collections.emptyList();
-    tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    tags_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AllocationPolicy();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.batch.v1.JobProto
-        .internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -63,33 +47,28 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
       case 6:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.batch.v1.JobProto
-        .internal_static_google_cloud_batch_v1_AllocationPolicy_fieldAccessorTable
+    return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.batch.v1.AllocationPolicy.class,
-            com.google.cloud.batch.v1.AllocationPolicy.Builder.class);
+            com.google.cloud.batch.v1.AllocationPolicy.class, com.google.cloud.batch.v1.AllocationPolicy.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Compute Engine VM instance provisioning model.
    * 
* * Protobuf enum {@code google.cloud.batch.v1.AllocationPolicy.ProvisioningModel} */ - public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum { + public enum ProvisioningModel + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -98,8 +77,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ PROVISIONING_MODEL_UNSPECIFIED(0), /** - * - * *
      * Standard VM.
      * 
@@ -108,8 +85,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ STANDARD(1), /** - * - * *
      * SPOT VM.
      * 
@@ -118,8 +93,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ SPOT(2), /** - * - * *
      * Preemptible VM (PVM).
      *
@@ -136,8 +109,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified.
      * 
@@ -146,8 +117,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ public static final int PROVISIONING_MODEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Standard VM.
      * 
@@ -156,8 +125,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ public static final int STANDARD_VALUE = 1; /** - * - * *
      * SPOT VM.
      * 
@@ -166,8 +133,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ public static final int SPOT_VALUE = 2; /** - * - * *
      * Preemptible VM (PVM).
      *
@@ -181,6 +146,7 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int PREEMPTIBLE_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -205,16 +171,11 @@ public static ProvisioningModel valueOf(int value) {
      */
     public static ProvisioningModel forNumber(int value) {
       switch (value) {
-        case 0:
-          return PROVISIONING_MODEL_UNSPECIFIED;
-        case 1:
-          return STANDARD;
-        case 2:
-          return SPOT;
-        case 3:
-          return PREEMPTIBLE;
-        default:
-          return null;
+        case 0: return PROVISIONING_MODEL_UNSPECIFIED;
+        case 1: return STANDARD;
+        case 2: return SPOT;
+        case 3: return PREEMPTIBLE;
+        default: return null;
       }
     }
 
@@ -222,28 +183,28 @@ public static ProvisioningModel forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        ProvisioningModel> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ProvisioningModel findValueByNumber(int number) {
+              return ProvisioningModel.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ProvisioningModel findValueByNumber(int number) {
-                return ProvisioningModel.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.batch.v1.AllocationPolicy.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -252,7 +213,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static ProvisioningModel 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;
@@ -269,14 +231,11 @@ private ProvisioningModel(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.batch.v1.AllocationPolicy.ProvisioningModel)
   }
 
-  public interface LocationPolicyOrBuilder
-      extends
+  public interface LocationPolicyOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.LocationPolicy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * A list of allowed location names represented by internal URLs.
      *
@@ -295,13 +254,11 @@ public interface LocationPolicyOrBuilder
      * 
* * repeated string allowed_locations = 1; - * * @return A list containing the allowedLocations. */ - java.util.List getAllowedLocationsList(); + java.util.List + getAllowedLocationsList(); /** - * - * *
      * A list of allowed location names represented by internal URLs.
      *
@@ -320,13 +277,10 @@ public interface LocationPolicyOrBuilder
      * 
* * repeated string allowed_locations = 1; - * * @return The count of allowedLocations. */ int getAllowedLocationsCount(); /** - * - * *
      * A list of allowed location names represented by internal URLs.
      *
@@ -345,14 +299,11 @@ public interface LocationPolicyOrBuilder
      * 
* * repeated string allowed_locations = 1; - * * @param index The index of the element to return. * @return The allowedLocations at the given index. */ java.lang.String getAllowedLocations(int index); /** - * - * *
      * A list of allowed location names represented by internal URLs.
      *
@@ -371,56 +322,54 @@ public interface LocationPolicyOrBuilder
      * 
* * repeated string allowed_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the allowedLocations at the given index. */ - com.google.protobuf.ByteString getAllowedLocationsBytes(int index); + com.google.protobuf.ByteString + getAllowedLocationsBytes(int index); } - /** Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.LocationPolicy} */ - public static final class LocationPolicy extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.LocationPolicy} + */ + public static final class LocationPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.LocationPolicy) LocationPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocationPolicy.newBuilder() to construct. private LocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocationPolicy() { - allowedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocationPolicy(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.class, - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder.class); + com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.class, com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder.class); } public static final int ALLOWED_LOCATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * A list of allowed location names represented by internal URLs.
      *
@@ -439,15 +388,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string allowed_locations = 1; - * * @return A list containing the allowedLocations. */ - public com.google.protobuf.ProtocolStringList getAllowedLocationsList() { + public com.google.protobuf.ProtocolStringList + getAllowedLocationsList() { return allowedLocations_; } /** - * - * *
      * A list of allowed location names represented by internal URLs.
      *
@@ -466,15 +413,12 @@ public com.google.protobuf.ProtocolStringList getAllowedLocationsList() {
      * 
* * repeated string allowed_locations = 1; - * * @return The count of allowedLocations. */ public int getAllowedLocationsCount() { return allowedLocations_.size(); } /** - * - * *
      * A list of allowed location names represented by internal URLs.
      *
@@ -493,7 +437,6 @@ public int getAllowedLocationsCount() {
      * 
* * repeated string allowed_locations = 1; - * * @param index The index of the element to return. * @return The allowedLocations at the given index. */ @@ -501,8 +444,6 @@ public java.lang.String getAllowedLocations(int index) { return allowedLocations_.get(index); } /** - * - * *
      * A list of allowed location names represented by internal URLs.
      *
@@ -521,16 +462,15 @@ public java.lang.String getAllowedLocations(int index) {
      * 
* * repeated string allowed_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the allowedLocations at the given index. */ - public com.google.protobuf.ByteString getAllowedLocationsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedLocationsBytes(int index) { return allowedLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -542,7 +482,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 < allowedLocations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedLocations_.getRaw(i)); } @@ -571,15 +512,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.batch.v1.AllocationPolicy.LocationPolicy)) { return super.equals(obj); } - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy other = - (com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy) obj; + com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy other = (com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy) obj; - if (!getAllowedLocationsList().equals(other.getAllowedLocationsList())) return false; + if (!getAllowedLocationsList() + .equals(other.getAllowedLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -601,94 +542,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -697,46 +633,49 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.LocationPolicy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.LocationPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.LocationPolicy) com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.class, - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder.class); + com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.class, com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder.class); } // Construct using com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.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(); bitField0_ = 0; - allowedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor; } @java.lang.Override @@ -755,11 +694,8 @@ public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy build() { @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy buildPartial() { - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy result = - new com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy result = new com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -776,41 +712,38 @@ private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy.LocationPo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy) { - return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy) other); + return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy)other); } else { super.mergeFrom(other); return this; @@ -818,8 +751,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy other) { - if (other == com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance()) - return this; + if (other == com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance()) return this; if (!other.allowedLocations_.isEmpty()) { if (allowedLocations_.isEmpty()) { allowedLocations_ = other.allowedLocations_; @@ -856,20 +788,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedLocationsIsMutable(); - allowedLocations_.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(); + ensureAllowedLocationsIsMutable(); + allowedLocations_.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) { @@ -879,12 +809,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList allowedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureAllowedLocationsIsMutable() { if (!allowedLocations_.isModifiable()) { allowedLocations_ = new com.google.protobuf.LazyStringArrayList(allowedLocations_); @@ -892,8 +820,6 @@ private void ensureAllowedLocationsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
        * A list of allowed location names represented by internal URLs.
        *
@@ -912,16 +838,14 @@ private void ensureAllowedLocationsIsMutable() {
        * 
* * repeated string allowed_locations = 1; - * * @return A list containing the allowedLocations. */ - public com.google.protobuf.ProtocolStringList getAllowedLocationsList() { + public com.google.protobuf.ProtocolStringList + getAllowedLocationsList() { allowedLocations_.makeImmutable(); return allowedLocations_; } /** - * - * *
        * A list of allowed location names represented by internal URLs.
        *
@@ -940,15 +864,12 @@ public com.google.protobuf.ProtocolStringList getAllowedLocationsList() {
        * 
* * repeated string allowed_locations = 1; - * * @return The count of allowedLocations. */ public int getAllowedLocationsCount() { return allowedLocations_.size(); } /** - * - * *
        * A list of allowed location names represented by internal URLs.
        *
@@ -967,7 +888,6 @@ public int getAllowedLocationsCount() {
        * 
* * repeated string allowed_locations = 1; - * * @param index The index of the element to return. * @return The allowedLocations at the given index. */ @@ -975,8 +895,6 @@ public java.lang.String getAllowedLocations(int index) { return allowedLocations_.get(index); } /** - * - * *
        * A list of allowed location names represented by internal URLs.
        *
@@ -995,16 +913,14 @@ public java.lang.String getAllowedLocations(int index) {
        * 
* * repeated string allowed_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the allowedLocations at the given index. */ - public com.google.protobuf.ByteString getAllowedLocationsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedLocationsBytes(int index) { return allowedLocations_.getByteString(index); } /** - * - * *
        * A list of allowed location names represented by internal URLs.
        *
@@ -1023,15 +939,13 @@ public com.google.protobuf.ByteString getAllowedLocationsBytes(int index) {
        * 
* * repeated string allowed_locations = 1; - * * @param index The index to set the value at. * @param value The allowedLocations to set. * @return This builder for chaining. */ - public Builder setAllowedLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAllowedLocations( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedLocationsIsMutable(); allowedLocations_.set(index, value); bitField0_ |= 0x00000001; @@ -1039,8 +953,6 @@ public Builder setAllowedLocations(int index, java.lang.String value) { return this; } /** - * - * *
        * A list of allowed location names represented by internal URLs.
        *
@@ -1059,14 +971,12 @@ public Builder setAllowedLocations(int index, java.lang.String value) {
        * 
* * repeated string allowed_locations = 1; - * * @param value The allowedLocations to add. * @return This builder for chaining. */ - public Builder addAllowedLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedLocations( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedLocationsIsMutable(); allowedLocations_.add(value); bitField0_ |= 0x00000001; @@ -1074,8 +984,6 @@ public Builder addAllowedLocations(java.lang.String value) { return this; } /** - * - * *
        * A list of allowed location names represented by internal URLs.
        *
@@ -1094,20 +1002,19 @@ public Builder addAllowedLocations(java.lang.String value) {
        * 
* * repeated string allowed_locations = 1; - * * @param values The allowedLocations to add. * @return This builder for chaining. */ - public Builder addAllAllowedLocations(java.lang.Iterable values) { + public Builder addAllAllowedLocations( + java.lang.Iterable values) { ensureAllowedLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedLocations_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * A list of allowed location names represented by internal URLs.
        *
@@ -1126,19 +1033,16 @@ public Builder addAllAllowedLocations(java.lang.Iterable value
        * 
* * repeated string allowed_locations = 1; - * * @return This builder for chaining. */ public Builder clearAllowedLocations() { - allowedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + allowedLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
        * A list of allowed location names represented by internal URLs.
        *
@@ -1157,14 +1061,12 @@ public Builder clearAllowedLocations() {
        * 
* * repeated string allowed_locations = 1; - * * @param value The bytes of the allowedLocations to add. * @return This builder for chaining. */ - public Builder addAllowedLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAllowedLocationsIsMutable(); allowedLocations_.add(value); @@ -1172,7 +1074,6 @@ public Builder addAllowedLocationsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1185,12 +1086,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.LocationPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.LocationPolicy) private static final com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy(); } @@ -1199,28 +1100,27 @@ public static com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationPolicy 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 LocationPolicy 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; @@ -1235,16 +1135,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DiskOrBuilder - extends + public interface DiskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.Disk) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * URL for a VM image to use as the data source for this disk.
      * For example, the following are all valid URLs:
@@ -1265,13 +1163,10 @@ public interface DiskOrBuilder
      * 
* * string image = 4; - * * @return Whether the image field is set. */ boolean hasImage(); /** - * - * *
      * URL for a VM image to use as the data source for this disk.
      * For example, the following are all valid URLs:
@@ -1292,13 +1187,10 @@ public interface DiskOrBuilder
      * 
* * string image = 4; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
      * URL for a VM image to use as the data source for this disk.
      * For example, the following are all valid URLs:
@@ -1319,54 +1211,44 @@ public interface DiskOrBuilder
      * 
* * string image = 4; - * * @return The bytes for image. */ - com.google.protobuf.ByteString getImageBytes(); + com.google.protobuf.ByteString + getImageBytes(); /** - * - * *
      * Name of a snapshot used as the data source.
      * Snapshot is not supported as boot disk now.
      * 
* * string snapshot = 5; - * * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** - * - * *
      * Name of a snapshot used as the data source.
      * Snapshot is not supported as boot disk now.
      * 
* * string snapshot = 5; - * * @return The snapshot. */ java.lang.String getSnapshot(); /** - * - * *
      * Name of a snapshot used as the data source.
      * Snapshot is not supported as boot disk now.
      * 
* * string snapshot = 5; - * * @return The bytes for snapshot. */ - com.google.protobuf.ByteString getSnapshotBytes(); + com.google.protobuf.ByteString + getSnapshotBytes(); /** - * - * *
      * Disk type as shown in `gcloud compute disk-types list`.
      * For example, local SSD uses type "local-ssd".
@@ -1375,13 +1257,10 @@ public interface DiskOrBuilder
      * 
* * string type = 1; - * * @return The type. */ java.lang.String getType(); /** - * - * *
      * Disk type as shown in `gcloud compute disk-types list`.
      * For example, local SSD uses type "local-ssd".
@@ -1390,14 +1269,12 @@ public interface DiskOrBuilder
      * 
* * string type = 1; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
      * Disk size in GB.
      *
@@ -1421,14 +1298,11 @@ public interface DiskOrBuilder
      * 
* * int64 size_gb = 2; - * * @return The sizeGb. */ long getSizeGb(); /** - * - * *
      * Local SSDs are available through both "SCSI" and "NVMe" interfaces.
      * If not indicated, "NVMe" will be the default one for local ssds.
@@ -1438,13 +1312,10 @@ public interface DiskOrBuilder
      * 
* * string disk_interface = 6; - * * @return The diskInterface. */ java.lang.String getDiskInterface(); /** - * - * *
      * Local SSDs are available through both "SCSI" and "NVMe" interfaces.
      * If not indicated, "NVMe" will be the default one for local ssds.
@@ -1454,16 +1325,14 @@ public interface DiskOrBuilder
      * 
* * string disk_interface = 6; - * * @return The bytes for diskInterface. */ - com.google.protobuf.ByteString getDiskInterfaceBytes(); + com.google.protobuf.ByteString + getDiskInterfaceBytes(); com.google.cloud.batch.v1.AllocationPolicy.Disk.DataSourceCase getDataSourceCase(); } /** - * - * *
    * A new persistent disk or a local ssd.
    * A VM can only have one local SSD setting but multiple local SSD partitions.
@@ -1473,16 +1342,15 @@ public interface DiskOrBuilder
    *
    * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.Disk}
    */
-  public static final class Disk extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Disk extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.Disk)
       DiskOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Disk.newBuilder() to construct.
     private Disk(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Disk() {
       type_ = "";
       diskInterface_ = "";
@@ -1490,39 +1358,34 @@ private Disk() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Disk();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_fieldAccessorTable
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.AllocationPolicy.Disk.class,
-              com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder.class);
+              com.google.cloud.batch.v1.AllocationPolicy.Disk.class, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder.class);
     }
 
     private int dataSourceCase_ = 0;
-
     @SuppressWarnings("serial")
     private java.lang.Object dataSource_;
-
     public enum DataSourceCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       IMAGE(4),
       SNAPSHOT(5),
       DATASOURCE_NOT_SET(0);
       private final int value;
-
       private DataSourceCase(int value) {
         this.value = value;
       }
@@ -1538,30 +1401,25 @@ public static DataSourceCase valueOf(int value) {
 
       public static DataSourceCase forNumber(int value) {
         switch (value) {
-          case 4:
-            return IMAGE;
-          case 5:
-            return SNAPSHOT;
-          case 0:
-            return DATASOURCE_NOT_SET;
-          default:
-            return null;
+          case 4: return IMAGE;
+          case 5: return SNAPSHOT;
+          case 0: return DATASOURCE_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public DataSourceCase getDataSourceCase() {
-      return DataSourceCase.forNumber(dataSourceCase_);
+    public DataSourceCase
+    getDataSourceCase() {
+      return DataSourceCase.forNumber(
+          dataSourceCase_);
     }
 
     public static final int IMAGE_FIELD_NUMBER = 4;
     /**
-     *
-     *
      * 
      * URL for a VM image to use as the data source for this disk.
      * For example, the following are all valid URLs:
@@ -1582,15 +1440,12 @@ public DataSourceCase getDataSourceCase() {
      * 
* * string image = 4; - * * @return Whether the image field is set. */ public boolean hasImage() { return dataSourceCase_ == 4; } /** - * - * *
      * URL for a VM image to use as the data source for this disk.
      * For example, the following are all valid URLs:
@@ -1611,7 +1466,6 @@ public boolean hasImage() {
      * 
* * string image = 4; - * * @return The image. */ public java.lang.String getImage() { @@ -1622,7 +1476,8 @@ 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(); if (dataSourceCase_ == 4) { dataSource_ = s; @@ -1631,8 +1486,6 @@ public java.lang.String getImage() { } } /** - * - * *
      * URL for a VM image to use as the data source for this disk.
      * For example, the following are all valid URLs:
@@ -1653,17 +1506,18 @@ public java.lang.String getImage() {
      * 
* * string image = 4; - * * @return The bytes for image. */ - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = ""; if (dataSourceCase_ == 4) { ref = dataSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (dataSourceCase_ == 4) { dataSource_ = b; } @@ -1675,30 +1529,24 @@ public com.google.protobuf.ByteString getImageBytes() { public static final int SNAPSHOT_FIELD_NUMBER = 5; /** - * - * *
      * Name of a snapshot used as the data source.
      * Snapshot is not supported as boot disk now.
      * 
* * string snapshot = 5; - * * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return dataSourceCase_ == 5; } /** - * - * *
      * Name of a snapshot used as the data source.
      * Snapshot is not supported as boot disk now.
      * 
* * string snapshot = 5; - * * @return The snapshot. */ public java.lang.String getSnapshot() { @@ -1709,7 +1557,8 @@ public java.lang.String getSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (dataSourceCase_ == 5) { dataSource_ = s; @@ -1718,25 +1567,24 @@ public java.lang.String getSnapshot() { } } /** - * - * *
      * Name of a snapshot used as the data source.
      * Snapshot is not supported as boot disk now.
      * 
* * string snapshot = 5; - * * @return The bytes for snapshot. */ - public com.google.protobuf.ByteString getSnapshotBytes() { + public com.google.protobuf.ByteString + getSnapshotBytes() { java.lang.Object ref = ""; if (dataSourceCase_ == 5) { ref = dataSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (dataSourceCase_ == 5) { dataSource_ = b; } @@ -1747,12 +1595,9 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } public static final int TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
      * Disk type as shown in `gcloud compute disk-types list`.
      * For example, local SSD uses type "local-ssd".
@@ -1761,7 +1606,6 @@ public com.google.protobuf.ByteString getSnapshotBytes() {
      * 
* * string type = 1; - * * @return The type. */ @java.lang.Override @@ -1770,15 +1614,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; } } /** - * - * *
      * Disk type as shown in `gcloud compute disk-types list`.
      * For example, local SSD uses type "local-ssd".
@@ -1787,15 +1630,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 { @@ -1806,8 +1650,6 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int SIZE_GB_FIELD_NUMBER = 2; private long sizeGb_ = 0L; /** - * - * *
      * Disk size in GB.
      *
@@ -1831,7 +1673,6 @@ public com.google.protobuf.ByteString getTypeBytes() {
      * 
* * int64 size_gb = 2; - * * @return The sizeGb. */ @java.lang.Override @@ -1840,12 +1681,9 @@ public long getSizeGb() { } public static final int DISK_INTERFACE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object diskInterface_ = ""; /** - * - * *
      * Local SSDs are available through both "SCSI" and "NVMe" interfaces.
      * If not indicated, "NVMe" will be the default one for local ssds.
@@ -1855,7 +1693,6 @@ public long getSizeGb() {
      * 
* * string disk_interface = 6; - * * @return The diskInterface. */ @java.lang.Override @@ -1864,15 +1701,14 @@ public java.lang.String getDiskInterface() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskInterface_ = s; return s; } } /** - * - * *
      * Local SSDs are available through both "SCSI" and "NVMe" interfaces.
      * If not indicated, "NVMe" will be the default one for local ssds.
@@ -1882,15 +1718,16 @@ public java.lang.String getDiskInterface() {
      * 
* * string disk_interface = 6; - * * @return The bytes for diskInterface. */ @java.lang.Override - public com.google.protobuf.ByteString getDiskInterfaceBytes() { + public com.google.protobuf.ByteString + getDiskInterfaceBytes() { java.lang.Object ref = diskInterface_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diskInterface_ = b; return b; } else { @@ -1899,7 +1736,6 @@ public com.google.protobuf.ByteString getDiskInterfaceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1911,7 +1747,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_); } @@ -1940,7 +1777,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (sizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, sizeGb_); } if (dataSourceCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dataSource_); @@ -1959,24 +1797,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.batch.v1.AllocationPolicy.Disk)) { return super.equals(obj); } - com.google.cloud.batch.v1.AllocationPolicy.Disk other = - (com.google.cloud.batch.v1.AllocationPolicy.Disk) obj; + com.google.cloud.batch.v1.AllocationPolicy.Disk other = (com.google.cloud.batch.v1.AllocationPolicy.Disk) obj; - if (!getType().equals(other.getType())) return false; - if (getSizeGb() != other.getSizeGb()) return false; - if (!getDiskInterface().equals(other.getDiskInterface())) return false; + if (!getType() + .equals(other.getType())) return false; + if (getSizeGb() + != other.getSizeGb()) return false; + if (!getDiskInterface() + .equals(other.getDiskInterface())) return false; if (!getDataSourceCase().equals(other.getDataSourceCase())) return false; switch (dataSourceCase_) { case 4: - if (!getImage().equals(other.getImage())) return false; + if (!getImage() + .equals(other.getImage())) return false; break; case 5: - if (!getSnapshot().equals(other.getSnapshot())) return false; + if (!getSnapshot() + .equals(other.getSnapshot())) return false; break; case 0: default: @@ -1995,7 +1837,8 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeGb()); hash = (37 * hash) + DISK_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getDiskInterface().hashCode(); switch (dataSourceCase_) { @@ -2016,93 +1859,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.Disk parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.AllocationPolicy.Disk prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2112,8 +1951,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A new persistent disk or a local ssd.
      * A VM can only have one local SSD setting but multiple local SSD partitions.
@@ -2123,33 +1960,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.Disk}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.Disk)
         com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_fieldAccessorTable
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.batch.v1.AllocationPolicy.Disk.class,
-                com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder.class);
+                com.google.cloud.batch.v1.AllocationPolicy.Disk.class, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder.class);
       }
 
       // Construct using com.google.cloud.batch.v1.AllocationPolicy.Disk.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();
@@ -2163,9 +2000,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor;
       }
 
       @java.lang.Override
@@ -2184,11 +2021,8 @@ public com.google.cloud.batch.v1.AllocationPolicy.Disk build() {
 
       @java.lang.Override
       public com.google.cloud.batch.v1.AllocationPolicy.Disk buildPartial() {
-        com.google.cloud.batch.v1.AllocationPolicy.Disk result =
-            new com.google.cloud.batch.v1.AllocationPolicy.Disk(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.batch.v1.AllocationPolicy.Disk result = new com.google.cloud.batch.v1.AllocationPolicy.Disk(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
@@ -2216,41 +2050,38 @@ private void buildPartialOneofs(com.google.cloud.batch.v1.AllocationPolicy.Disk
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.Disk) {
-          return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.Disk) other);
+          return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.Disk)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2258,8 +2089,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.Disk other) {
-        if (other == com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance()) return this;
         if (!other.getType().isEmpty()) {
           type_ = other.type_;
           bitField0_ |= 0x00000004;
@@ -2274,24 +2104,21 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.Disk other)
           onChanged();
         }
         switch (other.getDataSourceCase()) {
-          case IMAGE:
-            {
-              dataSourceCase_ = 4;
-              dataSource_ = other.dataSource_;
-              onChanged();
-              break;
-            }
-          case SNAPSHOT:
-            {
-              dataSourceCase_ = 5;
-              dataSource_ = other.dataSource_;
-              onChanged();
-              break;
-            }
-          case DATASOURCE_NOT_SET:
-            {
-              break;
-            }
+          case IMAGE: {
+            dataSourceCase_ = 4;
+            dataSource_ = other.dataSource_;
+            onChanged();
+            break;
+          }
+          case SNAPSHOT: {
+            dataSourceCase_ = 5;
+            dataSource_ = other.dataSource_;
+            onChanged();
+            break;
+          }
+          case DATASOURCE_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -2319,45 +2146,39 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  type_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 10
-              case 16:
-                {
-                  sizeGb_ = input.readInt64();
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 16
-              case 34:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  dataSourceCase_ = 4;
-                  dataSource_ = s;
-                  break;
-                } // case 34
-              case 42:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  dataSourceCase_ = 5;
-                  dataSource_ = s;
-                  break;
-                } // case 42
-              case 50:
-                {
-                  diskInterface_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 50
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                type_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 10
+              case 16: {
+                sizeGb_ = input.readInt64();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 16
+              case 34: {
+                java.lang.String s = input.readStringRequireUtf8();
+                dataSourceCase_ = 4;
+                dataSource_ = s;
+                break;
+              } // case 34
+              case 42: {
+                java.lang.String s = input.readStringRequireUtf8();
+                dataSourceCase_ = 5;
+                dataSource_ = s;
+                break;
+              } // case 42
+              case 50: {
+                diskInterface_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                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) {
@@ -2367,12 +2188,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int dataSourceCase_ = 0;
       private java.lang.Object dataSource_;
-
-      public DataSourceCase getDataSourceCase() {
-        return DataSourceCase.forNumber(dataSourceCase_);
+      public DataSourceCase
+          getDataSourceCase() {
+        return DataSourceCase.forNumber(
+            dataSourceCase_);
       }
 
       public Builder clearDataSource() {
@@ -2385,8 +2206,6 @@ public Builder clearDataSource() {
       private int bitField0_;
 
       /**
-       *
-       *
        * 
        * URL for a VM image to use as the data source for this disk.
        * For example, the following are all valid URLs:
@@ -2407,7 +2226,6 @@ public Builder clearDataSource() {
        * 
* * string image = 4; - * * @return Whether the image field is set. */ @java.lang.Override @@ -2415,8 +2233,6 @@ public boolean hasImage() { return dataSourceCase_ == 4; } /** - * - * *
        * URL for a VM image to use as the data source for this disk.
        * For example, the following are all valid URLs:
@@ -2437,7 +2253,6 @@ public boolean hasImage() {
        * 
* * string image = 4; - * * @return The image. */ @java.lang.Override @@ -2447,7 +2262,8 @@ public java.lang.String getImage() { ref = dataSource_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (dataSourceCase_ == 4) { dataSource_ = s; @@ -2458,8 +2274,6 @@ public java.lang.String getImage() { } } /** - * - * *
        * URL for a VM image to use as the data source for this disk.
        * For example, the following are all valid URLs:
@@ -2480,18 +2294,19 @@ public java.lang.String getImage() {
        * 
* * string image = 4; - * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = ""; if (dataSourceCase_ == 4) { ref = dataSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (dataSourceCase_ == 4) { dataSource_ = b; } @@ -2501,8 +2316,6 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
        * URL for a VM image to use as the data source for this disk.
        * For example, the following are all valid URLs:
@@ -2523,22 +2336,18 @@ public com.google.protobuf.ByteString getImageBytes() {
        * 
* * string image = 4; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataSourceCase_ = 4; dataSource_ = value; onChanged(); return this; } /** - * - * *
        * URL for a VM image to use as the data source for this disk.
        * For example, the following are all valid URLs:
@@ -2559,7 +2368,6 @@ public Builder setImage(java.lang.String value) {
        * 
* * string image = 4; - * * @return This builder for chaining. */ public Builder clearImage() { @@ -2571,8 +2379,6 @@ public Builder clearImage() { return this; } /** - * - * *
        * URL for a VM image to use as the data source for this disk.
        * For example, the following are all valid URLs:
@@ -2593,14 +2399,12 @@ public Builder clearImage() {
        * 
* * string image = 4; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataSourceCase_ = 4; dataSource_ = value; @@ -2609,15 +2413,12 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) { } /** - * - * *
        * Name of a snapshot used as the data source.
        * Snapshot is not supported as boot disk now.
        * 
* * string snapshot = 5; - * * @return Whether the snapshot field is set. */ @java.lang.Override @@ -2625,15 +2426,12 @@ public boolean hasSnapshot() { return dataSourceCase_ == 5; } /** - * - * *
        * Name of a snapshot used as the data source.
        * Snapshot is not supported as boot disk now.
        * 
* * string snapshot = 5; - * * @return The snapshot. */ @java.lang.Override @@ -2643,7 +2441,8 @@ public java.lang.String getSnapshot() { ref = dataSource_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (dataSourceCase_ == 5) { dataSource_ = s; @@ -2654,26 +2453,25 @@ public java.lang.String getSnapshot() { } } /** - * - * *
        * Name of a snapshot used as the data source.
        * Snapshot is not supported as boot disk now.
        * 
* * string snapshot = 5; - * * @return The bytes for snapshot. */ @java.lang.Override - public com.google.protobuf.ByteString getSnapshotBytes() { + public com.google.protobuf.ByteString + getSnapshotBytes() { java.lang.Object ref = ""; if (dataSourceCase_ == 5) { ref = dataSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (dataSourceCase_ == 5) { dataSource_ = b; } @@ -2683,37 +2481,30 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } } /** - * - * *
        * Name of a snapshot used as the data source.
        * Snapshot is not supported as boot disk now.
        * 
* * string snapshot = 5; - * * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSnapshot( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataSourceCase_ = 5; dataSource_ = value; onChanged(); return this; } /** - * - * *
        * Name of a snapshot used as the data source.
        * Snapshot is not supported as boot disk now.
        * 
* * string snapshot = 5; - * * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -2725,22 +2516,18 @@ public Builder clearSnapshot() { return this; } /** - * - * *
        * Name of a snapshot used as the data source.
        * Snapshot is not supported as boot disk now.
        * 
* * string snapshot = 5; - * * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataSourceCase_ = 5; dataSource_ = value; @@ -2750,8 +2537,6 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { private java.lang.Object type_ = ""; /** - * - * *
        * Disk type as shown in `gcloud compute disk-types list`.
        * For example, local SSD uses type "local-ssd".
@@ -2760,13 +2545,13 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) {
        * 
* * string type = 1; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -2775,8 +2560,6 @@ public java.lang.String getType() { } } /** - * - * *
        * Disk type as shown in `gcloud compute disk-types list`.
        * For example, local SSD uses type "local-ssd".
@@ -2785,14 +2568,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 { @@ -2800,8 +2584,6 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
        * Disk type as shown in `gcloud compute disk-types list`.
        * For example, local SSD uses type "local-ssd".
@@ -2810,22 +2592,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Disk type as shown in `gcloud compute disk-types list`.
        * For example, local SSD uses type "local-ssd".
@@ -2834,7 +2612,6 @@ public Builder setType(java.lang.String value) {
        * 
* * string type = 1; - * * @return This builder for chaining. */ public Builder clearType() { @@ -2844,8 +2621,6 @@ public Builder clearType() { return this; } /** - * - * *
        * Disk type as shown in `gcloud compute disk-types list`.
        * For example, local SSD uses type "local-ssd".
@@ -2854,14 +2629,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000004; @@ -2869,10 +2642,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { return this; } - private long sizeGb_; + private long sizeGb_ ; /** - * - * *
        * Disk size in GB.
        *
@@ -2896,7 +2667,6 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
        * 
* * int64 size_gb = 2; - * * @return The sizeGb. */ @java.lang.Override @@ -2904,8 +2674,6 @@ public long getSizeGb() { return sizeGb_; } /** - * - * *
        * Disk size in GB.
        *
@@ -2929,7 +2697,6 @@ public long getSizeGb() {
        * 
* * int64 size_gb = 2; - * * @param value The sizeGb to set. * @return This builder for chaining. */ @@ -2941,8 +2708,6 @@ public Builder setSizeGb(long value) { return this; } /** - * - * *
        * Disk size in GB.
        *
@@ -2966,7 +2731,6 @@ public Builder setSizeGb(long value) {
        * 
* * int64 size_gb = 2; - * * @return This builder for chaining. */ public Builder clearSizeGb() { @@ -2978,8 +2742,6 @@ public Builder clearSizeGb() { private java.lang.Object diskInterface_ = ""; /** - * - * *
        * Local SSDs are available through both "SCSI" and "NVMe" interfaces.
        * If not indicated, "NVMe" will be the default one for local ssds.
@@ -2989,13 +2751,13 @@ public Builder clearSizeGb() {
        * 
* * string disk_interface = 6; - * * @return The diskInterface. */ public java.lang.String getDiskInterface() { java.lang.Object ref = diskInterface_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskInterface_ = s; return s; @@ -3004,8 +2766,6 @@ public java.lang.String getDiskInterface() { } } /** - * - * *
        * Local SSDs are available through both "SCSI" and "NVMe" interfaces.
        * If not indicated, "NVMe" will be the default one for local ssds.
@@ -3015,14 +2775,15 @@ public java.lang.String getDiskInterface() {
        * 
* * string disk_interface = 6; - * * @return The bytes for diskInterface. */ - public com.google.protobuf.ByteString getDiskInterfaceBytes() { + public com.google.protobuf.ByteString + getDiskInterfaceBytes() { java.lang.Object ref = diskInterface_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diskInterface_ = b; return b; } else { @@ -3030,8 +2791,6 @@ public com.google.protobuf.ByteString getDiskInterfaceBytes() { } } /** - * - * *
        * Local SSDs are available through both "SCSI" and "NVMe" interfaces.
        * If not indicated, "NVMe" will be the default one for local ssds.
@@ -3041,22 +2800,18 @@ public com.google.protobuf.ByteString getDiskInterfaceBytes() {
        * 
* * string disk_interface = 6; - * * @param value The diskInterface to set. * @return This builder for chaining. */ - public Builder setDiskInterface(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDiskInterface( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } diskInterface_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * Local SSDs are available through both "SCSI" and "NVMe" interfaces.
        * If not indicated, "NVMe" will be the default one for local ssds.
@@ -3066,7 +2821,6 @@ public Builder setDiskInterface(java.lang.String value) {
        * 
* * string disk_interface = 6; - * * @return This builder for chaining. */ public Builder clearDiskInterface() { @@ -3076,8 +2830,6 @@ public Builder clearDiskInterface() { return this; } /** - * - * *
        * Local SSDs are available through both "SCSI" and "NVMe" interfaces.
        * If not indicated, "NVMe" will be the default one for local ssds.
@@ -3087,21 +2839,18 @@ public Builder clearDiskInterface() {
        * 
* * string disk_interface = 6; - * * @param value The bytes for diskInterface to set. * @return This builder for chaining. */ - public Builder setDiskInterfaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDiskInterfaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); diskInterface_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3114,12 +2863,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.Disk) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.Disk) private static final com.google.cloud.batch.v1.AllocationPolicy.Disk DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.Disk(); } @@ -3128,28 +2877,27 @@ public static com.google.cloud.batch.v1.AllocationPolicy.Disk getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Disk 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 Disk 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; @@ -3164,68 +2912,58 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy.Disk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AttachedDiskOrBuilder - extends + public interface AttachedDiskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.AttachedDisk) com.google.protobuf.MessageOrBuilder { /** * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; - * * @return Whether the newDisk field is set. */ boolean hasNewDisk(); /** * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; - * * @return The newDisk. */ com.google.cloud.batch.v1.AllocationPolicy.Disk getNewDisk(); - /** .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; */ + /** + * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; + */ com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getNewDiskOrBuilder(); /** - * - * *
      * Name of an existing PD.
      * 
* * string existing_disk = 2; - * * @return Whether the existingDisk field is set. */ boolean hasExistingDisk(); /** - * - * *
      * Name of an existing PD.
      * 
* * string existing_disk = 2; - * * @return The existingDisk. */ java.lang.String getExistingDisk(); /** - * - * *
      * Name of an existing PD.
      * 
* * string existing_disk = 2; - * * @return The bytes for existingDisk. */ - com.google.protobuf.ByteString getExistingDiskBytes(); + com.google.protobuf.ByteString + getExistingDiskBytes(); /** - * - * *
      * Device name that the guest operating system will see.
      * It is used by Runnable.volumes field to mount disks. So please specify
@@ -3234,13 +2972,10 @@ public interface AttachedDiskOrBuilder
      * 
* * string device_name = 3; - * * @return The deviceName. */ java.lang.String getDeviceName(); /** - * - * *
      * Device name that the guest operating system will see.
      * It is used by Runnable.volumes field to mount disks. So please specify
@@ -3249,16 +2984,14 @@ public interface AttachedDiskOrBuilder
      * 
* * string device_name = 3; - * * @return The bytes for deviceName. */ - com.google.protobuf.ByteString getDeviceNameBytes(); + com.google.protobuf.ByteString + getDeviceNameBytes(); com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.AttachedCase getAttachedCase(); } /** - * - * *
    * A new or an existing persistent disk (PD) or a local ssd attached to a VM
    * instance.
@@ -3266,55 +2999,49 @@ public interface AttachedDiskOrBuilder
    *
    * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.AttachedDisk}
    */
-  public static final class AttachedDisk extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class AttachedDisk extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.AttachedDisk)
       AttachedDiskOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use AttachedDisk.newBuilder() to construct.
     private AttachedDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private AttachedDisk() {
       deviceName_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new AttachedDisk();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_fieldAccessorTable
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.class,
-              com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder.class);
+              com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.class, com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder.class);
     }
 
     private int attachedCase_ = 0;
-
     @SuppressWarnings("serial")
     private java.lang.Object attached_;
-
     public enum AttachedCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       NEW_DISK(1),
       EXISTING_DISK(2),
       ATTACHED_NOT_SET(0);
       private final int value;
-
       private AttachedCase(int value) {
         this.value = value;
       }
@@ -3330,30 +3057,26 @@ public static AttachedCase valueOf(int value) {
 
       public static AttachedCase forNumber(int value) {
         switch (value) {
-          case 1:
-            return NEW_DISK;
-          case 2:
-            return EXISTING_DISK;
-          case 0:
-            return ATTACHED_NOT_SET;
-          default:
-            return null;
+          case 1: return NEW_DISK;
+          case 2: return EXISTING_DISK;
+          case 0: return ATTACHED_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public AttachedCase getAttachedCase() {
-      return AttachedCase.forNumber(attachedCase_);
+    public AttachedCase
+    getAttachedCase() {
+      return AttachedCase.forNumber(
+          attachedCase_);
     }
 
     public static final int NEW_DISK_FIELD_NUMBER = 1;
     /**
      * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
-     *
      * @return Whether the newDisk field is set.
      */
     @java.lang.Override
@@ -3362,49 +3085,44 @@ public boolean hasNewDisk() {
     }
     /**
      * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
-     *
      * @return The newDisk.
      */
     @java.lang.Override
     public com.google.cloud.batch.v1.AllocationPolicy.Disk getNewDisk() {
       if (attachedCase_ == 1) {
-        return (com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_;
+         return (com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_;
       }
       return com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance();
     }
-    /** .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; */
+    /**
+     * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
+     */
     @java.lang.Override
     public com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getNewDiskOrBuilder() {
       if (attachedCase_ == 1) {
-        return (com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_;
+         return (com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_;
       }
       return com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance();
     }
 
     public static final int EXISTING_DISK_FIELD_NUMBER = 2;
     /**
-     *
-     *
      * 
      * Name of an existing PD.
      * 
* * string existing_disk = 2; - * * @return Whether the existingDisk field is set. */ public boolean hasExistingDisk() { return attachedCase_ == 2; } /** - * - * *
      * Name of an existing PD.
      * 
* * string existing_disk = 2; - * * @return The existingDisk. */ public java.lang.String getExistingDisk() { @@ -3415,7 +3133,8 @@ public java.lang.String getExistingDisk() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (attachedCase_ == 2) { attached_ = s; @@ -3424,24 +3143,23 @@ public java.lang.String getExistingDisk() { } } /** - * - * *
      * Name of an existing PD.
      * 
* * string existing_disk = 2; - * * @return The bytes for existingDisk. */ - public com.google.protobuf.ByteString getExistingDiskBytes() { + public com.google.protobuf.ByteString + getExistingDiskBytes() { java.lang.Object ref = ""; if (attachedCase_ == 2) { ref = attached_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (attachedCase_ == 2) { attached_ = b; } @@ -3452,12 +3170,9 @@ public com.google.protobuf.ByteString getExistingDiskBytes() { } public static final int DEVICE_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object deviceName_ = ""; /** - * - * *
      * Device name that the guest operating system will see.
      * It is used by Runnable.volumes field to mount disks. So please specify
@@ -3466,7 +3181,6 @@ public com.google.protobuf.ByteString getExistingDiskBytes() {
      * 
* * string device_name = 3; - * * @return The deviceName. */ @java.lang.Override @@ -3475,15 +3189,14 @@ public java.lang.String getDeviceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceName_ = s; return s; } } /** - * - * *
      * Device name that the guest operating system will see.
      * It is used by Runnable.volumes field to mount disks. So please specify
@@ -3492,15 +3205,16 @@ public java.lang.String getDeviceName() {
      * 
* * string device_name = 3; - * * @return The bytes for deviceName. */ @java.lang.Override - public com.google.protobuf.ByteString getDeviceNameBytes() { + public com.google.protobuf.ByteString + getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deviceName_ = b; return b; } else { @@ -3509,7 +3223,6 @@ public com.google.protobuf.ByteString getDeviceNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3521,7 +3234,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 (attachedCase_ == 1) { output.writeMessage(1, (com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_); } @@ -3541,9 +3255,8 @@ public int getSerializedSize() { size = 0; if (attachedCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_); } if (attachedCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attached_); @@ -3559,22 +3272,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.batch.v1.AllocationPolicy.AttachedDisk)) { return super.equals(obj); } - com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk other = - (com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk) obj; + com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk other = (com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk) obj; - if (!getDeviceName().equals(other.getDeviceName())) return false; + if (!getDeviceName() + .equals(other.getDeviceName())) return false; if (!getAttachedCase().equals(other.getAttachedCase())) return false; switch (attachedCase_) { case 1: - if (!getNewDisk().equals(other.getNewDisk())) return false; + if (!getNewDisk() + .equals(other.getNewDisk())) return false; break; case 2: - if (!getExistingDisk().equals(other.getExistingDisk())) return false; + if (!getExistingDisk() + .equals(other.getExistingDisk())) return false; break; case 0: default: @@ -3610,94 +3325,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3707,8 +3417,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A new or an existing persistent disk (PD) or a local ssd attached to a VM
      * instance.
@@ -3716,33 +3424,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.AttachedDisk}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.AttachedDisk)
         com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_fieldAccessorTable
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.class,
-                com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder.class);
+                com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.class, com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder.class);
       }
 
       // Construct using com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.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();
@@ -3757,9 +3465,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor;
       }
 
       @java.lang.Override
@@ -3778,11 +3486,8 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk build() {
 
       @java.lang.Override
       public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk buildPartial() {
-        com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk result =
-            new com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk result = new com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
@@ -3795,11 +3500,11 @@ private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy.AttachedDi
         }
       }
 
-      private void buildPartialOneofs(
-          com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk result) {
+      private void buildPartialOneofs(com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk result) {
         result.attachedCase_ = attachedCase_;
         result.attached_ = this.attached_;
-        if (attachedCase_ == 1 && newDiskBuilder_ != null) {
+        if (attachedCase_ == 1 &&
+            newDiskBuilder_ != null) {
           result.attached_ = newDiskBuilder_.build();
         }
       }
@@ -3808,41 +3513,38 @@ private void buildPartialOneofs(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk) {
-          return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk) other);
+          return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3850,30 +3552,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk other) {
-        if (other == com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.getDefaultInstance()) return this;
         if (!other.getDeviceName().isEmpty()) {
           deviceName_ = other.deviceName_;
           bitField0_ |= 0x00000004;
           onChanged();
         }
         switch (other.getAttachedCase()) {
-          case NEW_DISK:
-            {
-              mergeNewDisk(other.getNewDisk());
-              break;
-            }
-          case EXISTING_DISK:
-            {
-              attachedCase_ = 2;
-              attached_ = other.attached_;
-              onChanged();
-              break;
-            }
-          case ATTACHED_NOT_SET:
-            {
-              break;
-            }
+          case NEW_DISK: {
+            mergeNewDisk(other.getNewDisk());
+            break;
+          }
+          case EXISTING_DISK: {
+            attachedCase_ = 2;
+            attached_ = other.attached_;
+            onChanged();
+            break;
+          }
+          case ATTACHED_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -3901,32 +3599,30 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(getNewDiskFieldBuilder().getBuilder(), extensionRegistry);
-                  attachedCase_ = 1;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  attachedCase_ = 2;
-                  attached_ = s;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  deviceName_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getNewDiskFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                attachedCase_ = 1;
+                break;
+              } // case 10
+              case 18: {
+                java.lang.String s = input.readStringRequireUtf8();
+                attachedCase_ = 2;
+                attached_ = s;
+                break;
+              } // case 18
+              case 26: {
+                deviceName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                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) {
@@ -3936,12 +3632,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int attachedCase_ = 0;
       private java.lang.Object attached_;
-
-      public AttachedCase getAttachedCase() {
-        return AttachedCase.forNumber(attachedCase_);
+      public AttachedCase
+          getAttachedCase() {
+        return AttachedCase.forNumber(
+            attachedCase_);
       }
 
       public Builder clearAttached() {
@@ -3954,13 +3650,9 @@ public Builder clearAttached() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.batch.v1.AllocationPolicy.Disk,
-              com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder,
-              com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder>
-          newDiskBuilder_;
+          com.google.cloud.batch.v1.AllocationPolicy.Disk, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder> newDiskBuilder_;
       /**
        * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
-       *
        * @return Whether the newDisk field is set.
        */
       @java.lang.Override
@@ -3969,7 +3661,6 @@ public boolean hasNewDisk() {
       }
       /**
        * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
-       *
        * @return The newDisk.
        */
       @java.lang.Override
@@ -3986,7 +3677,9 @@ public com.google.cloud.batch.v1.AllocationPolicy.Disk getNewDisk() {
           return com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance();
         }
       }
-      /** .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; */
+      /**
+       * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
+       */
       public Builder setNewDisk(com.google.cloud.batch.v1.AllocationPolicy.Disk value) {
         if (newDiskBuilder_ == null) {
           if (value == null) {
@@ -4000,7 +3693,9 @@ public Builder setNewDisk(com.google.cloud.batch.v1.AllocationPolicy.Disk value)
         attachedCase_ = 1;
         return this;
       }
-      /** .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; */
+      /**
+       * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
+       */
       public Builder setNewDisk(
           com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder builderForValue) {
         if (newDiskBuilder_ == null) {
@@ -4012,17 +3707,15 @@ public Builder setNewDisk(
         attachedCase_ = 1;
         return this;
       }
-      /** .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; */
+      /**
+       * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
+       */
       public Builder mergeNewDisk(com.google.cloud.batch.v1.AllocationPolicy.Disk value) {
         if (newDiskBuilder_ == null) {
-          if (attachedCase_ == 1
-              && attached_
-                  != com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance()) {
-            attached_ =
-                com.google.cloud.batch.v1.AllocationPolicy.Disk.newBuilder(
-                        (com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_)
-                    .mergeFrom(value)
-                    .buildPartial();
+          if (attachedCase_ == 1 &&
+              attached_ != com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance()) {
+            attached_ = com.google.cloud.batch.v1.AllocationPolicy.Disk.newBuilder((com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_)
+                .mergeFrom(value).buildPartial();
           } else {
             attached_ = value;
           }
@@ -4037,7 +3730,9 @@ public Builder mergeNewDisk(com.google.cloud.batch.v1.AllocationPolicy.Disk valu
         attachedCase_ = 1;
         return this;
       }
-      /** .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; */
+      /**
+       * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
+       */
       public Builder clearNewDisk() {
         if (newDiskBuilder_ == null) {
           if (attachedCase_ == 1) {
@@ -4054,11 +3749,15 @@ public Builder clearNewDisk() {
         }
         return this;
       }
-      /** .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; */
+      /**
+       * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
+       */
       public com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder getNewDiskBuilder() {
         return getNewDiskFieldBuilder().getBuilder();
       }
-      /** .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; */
+      /**
+       * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
+       */
       @java.lang.Override
       public com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getNewDiskOrBuilder() {
         if ((attachedCase_ == 1) && (newDiskBuilder_ != null)) {
@@ -4070,21 +3769,18 @@ public com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getNewDiskOrBuil
           return com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance();
         }
       }
-      /** .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; */
+      /**
+       * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
+       */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.batch.v1.AllocationPolicy.Disk,
-              com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder,
-              com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder>
+          com.google.cloud.batch.v1.AllocationPolicy.Disk, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder> 
           getNewDiskFieldBuilder() {
         if (newDiskBuilder_ == null) {
           if (!(attachedCase_ == 1)) {
             attached_ = com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance();
           }
-          newDiskBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.batch.v1.AllocationPolicy.Disk,
-                  com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder,
-                  com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder>(
+          newDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.batch.v1.AllocationPolicy.Disk, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder>(
                   (com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_,
                   getParentForChildren(),
                   isClean());
@@ -4096,14 +3792,11 @@ public com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getNewDiskOrBuil
       }
 
       /**
-       *
-       *
        * 
        * Name of an existing PD.
        * 
* * string existing_disk = 2; - * * @return Whether the existingDisk field is set. */ @java.lang.Override @@ -4111,14 +3804,11 @@ public boolean hasExistingDisk() { return attachedCase_ == 2; } /** - * - * *
        * Name of an existing PD.
        * 
* * string existing_disk = 2; - * * @return The existingDisk. */ @java.lang.Override @@ -4128,7 +3818,8 @@ public java.lang.String getExistingDisk() { ref = attached_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (attachedCase_ == 2) { attached_ = s; @@ -4139,25 +3830,24 @@ public java.lang.String getExistingDisk() { } } /** - * - * *
        * Name of an existing PD.
        * 
* * string existing_disk = 2; - * * @return The bytes for existingDisk. */ @java.lang.Override - public com.google.protobuf.ByteString getExistingDiskBytes() { + public com.google.protobuf.ByteString + getExistingDiskBytes() { java.lang.Object ref = ""; if (attachedCase_ == 2) { ref = attached_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (attachedCase_ == 2) { attached_ = b; } @@ -4167,35 +3857,28 @@ public com.google.protobuf.ByteString getExistingDiskBytes() { } } /** - * - * *
        * Name of an existing PD.
        * 
* * string existing_disk = 2; - * * @param value The existingDisk to set. * @return This builder for chaining. */ - public Builder setExistingDisk(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExistingDisk( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } attachedCase_ = 2; attached_ = value; onChanged(); return this; } /** - * - * *
        * Name of an existing PD.
        * 
* * string existing_disk = 2; - * * @return This builder for chaining. */ public Builder clearExistingDisk() { @@ -4207,21 +3890,17 @@ public Builder clearExistingDisk() { return this; } /** - * - * *
        * Name of an existing PD.
        * 
* * string existing_disk = 2; - * * @param value The bytes for existingDisk to set. * @return This builder for chaining. */ - public Builder setExistingDiskBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExistingDiskBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attachedCase_ = 2; attached_ = value; @@ -4231,8 +3910,6 @@ public Builder setExistingDiskBytes(com.google.protobuf.ByteString value) { private java.lang.Object deviceName_ = ""; /** - * - * *
        * Device name that the guest operating system will see.
        * It is used by Runnable.volumes field to mount disks. So please specify
@@ -4241,13 +3918,13 @@ public Builder setExistingDiskBytes(com.google.protobuf.ByteString value) {
        * 
* * string device_name = 3; - * * @return The deviceName. */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceName_ = s; return s; @@ -4256,8 +3933,6 @@ public java.lang.String getDeviceName() { } } /** - * - * *
        * Device name that the guest operating system will see.
        * It is used by Runnable.volumes field to mount disks. So please specify
@@ -4266,14 +3941,15 @@ public java.lang.String getDeviceName() {
        * 
* * string device_name = 3; - * * @return The bytes for deviceName. */ - public com.google.protobuf.ByteString getDeviceNameBytes() { + public com.google.protobuf.ByteString + getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deviceName_ = b; return b; } else { @@ -4281,8 +3957,6 @@ public com.google.protobuf.ByteString getDeviceNameBytes() { } } /** - * - * *
        * Device name that the guest operating system will see.
        * It is used by Runnable.volumes field to mount disks. So please specify
@@ -4291,22 +3965,18 @@ public com.google.protobuf.ByteString getDeviceNameBytes() {
        * 
* * string device_name = 3; - * * @param value The deviceName to set. * @return This builder for chaining. */ - public Builder setDeviceName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDeviceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } deviceName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Device name that the guest operating system will see.
        * It is used by Runnable.volumes field to mount disks. So please specify
@@ -4315,7 +3985,6 @@ public Builder setDeviceName(java.lang.String value) {
        * 
* * string device_name = 3; - * * @return This builder for chaining. */ public Builder clearDeviceName() { @@ -4325,8 +3994,6 @@ public Builder clearDeviceName() { return this; } /** - * - * *
        * Device name that the guest operating system will see.
        * It is used by Runnable.volumes field to mount disks. So please specify
@@ -4335,21 +4002,18 @@ public Builder clearDeviceName() {
        * 
* * string device_name = 3; - * * @param value The bytes for deviceName to set. * @return This builder for chaining. */ - public Builder setDeviceNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDeviceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4362,12 +4026,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.AttachedDisk) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.AttachedDisk) private static final com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk(); } @@ -4376,28 +4040,27 @@ public static com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttachedDisk 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 AttachedDisk 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; @@ -4412,72 +4075,58 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AcceleratorOrBuilder - extends + public interface AcceleratorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.Accelerator) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The accelerator type. For example, "nvidia-tesla-t4".
      * See `gcloud compute accelerator-types list`.
      * 
* * string type = 1; - * * @return The type. */ java.lang.String getType(); /** - * - * *
      * The accelerator type. For example, "nvidia-tesla-t4".
      * See `gcloud compute accelerator-types list`.
      * 
* * string type = 1; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
      * The number of accelerators of this type.
      * 
* * int64 count = 2; - * * @return The count. */ long getCount(); /** - * - * *
      * Deprecated: please use instances[0].install_gpu_drivers instead.
      * 
* * bool install_gpu_drivers = 3 [deprecated = true]; - * - * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=360 + * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. + * See google/cloud/batch/v1/job.proto;l=360 * @return The installGpuDrivers. */ - @java.lang.Deprecated - boolean getInstallGpuDrivers(); + @java.lang.Deprecated boolean getInstallGpuDrivers(); /** - * - * *
      * Optional. The NVIDIA GPU driver version that should be installed for this
      * type.
@@ -4489,13 +4138,10 @@ public interface AcceleratorOrBuilder
      * 
* * string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The driverVersion. */ java.lang.String getDriverVersion(); /** - * - * *
      * Optional. The NVIDIA GPU driver version that should be installed for this
      * type.
@@ -4507,30 +4153,27 @@ public interface AcceleratorOrBuilder
      * 
* * string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for driverVersion. */ - com.google.protobuf.ByteString getDriverVersionBytes(); + com.google.protobuf.ByteString + getDriverVersionBytes(); } /** - * - * *
    * Accelerator describes Compute Engine accelerators to be attached to the VM.
    * 
* * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.Accelerator} */ - public static final class Accelerator extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Accelerator extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.Accelerator) AcceleratorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Accelerator.newBuilder() to construct. private Accelerator(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Accelerator() { type_ = ""; driverVersion_ = ""; @@ -4538,39 +4181,34 @@ private Accelerator() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Accelerator(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.AllocationPolicy.Accelerator.class, - com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder.class); + com.google.cloud.batch.v1.AllocationPolicy.Accelerator.class, com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
      * The accelerator type. For example, "nvidia-tesla-t4".
      * See `gcloud compute accelerator-types list`.
      * 
* * string type = 1; - * * @return The type. */ @java.lang.Override @@ -4579,30 +4217,30 @@ 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; } } /** - * - * *
      * The accelerator type. For example, "nvidia-tesla-t4".
      * See `gcloud compute accelerator-types list`.
      * 
* * 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 { @@ -4613,14 +4251,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int COUNT_FIELD_NUMBER = 2; private long count_ = 0L; /** - * - * *
      * The number of accelerators of this type.
      * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -4631,31 +4266,24 @@ public long getCount() { public static final int INSTALL_GPU_DRIVERS_FIELD_NUMBER = 3; private boolean installGpuDrivers_ = false; /** - * - * *
      * Deprecated: please use instances[0].install_gpu_drivers instead.
      * 
* * bool install_gpu_drivers = 3 [deprecated = true]; - * - * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=360 + * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. + * See google/cloud/batch/v1/job.proto;l=360 * @return The installGpuDrivers. */ @java.lang.Override - @java.lang.Deprecated - public boolean getInstallGpuDrivers() { + @java.lang.Deprecated public boolean getInstallGpuDrivers() { return installGpuDrivers_; } public static final int DRIVER_VERSION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object driverVersion_ = ""; /** - * - * *
      * Optional. The NVIDIA GPU driver version that should be installed for this
      * type.
@@ -4667,7 +4295,6 @@ public boolean getInstallGpuDrivers() {
      * 
* * string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The driverVersion. */ @java.lang.Override @@ -4676,15 +4303,14 @@ public java.lang.String getDriverVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); driverVersion_ = s; return s; } } /** - * - * *
      * Optional. The NVIDIA GPU driver version that should be installed for this
      * type.
@@ -4696,15 +4322,16 @@ public java.lang.String getDriverVersion() {
      * 
* * string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for driverVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getDriverVersionBytes() { + public com.google.protobuf.ByteString + getDriverVersionBytes() { java.lang.Object ref = driverVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); driverVersion_ = b; return b; } else { @@ -4713,7 +4340,6 @@ public com.google.protobuf.ByteString getDriverVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4725,7 +4351,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_); } @@ -4751,10 +4378,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, count_); } if (installGpuDrivers_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, installGpuDrivers_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, installGpuDrivers_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, driverVersion_); @@ -4767,18 +4396,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.batch.v1.AllocationPolicy.Accelerator)) { return super.equals(obj); } - com.google.cloud.batch.v1.AllocationPolicy.Accelerator other = - (com.google.cloud.batch.v1.AllocationPolicy.Accelerator) obj; + com.google.cloud.batch.v1.AllocationPolicy.Accelerator other = (com.google.cloud.batch.v1.AllocationPolicy.Accelerator) obj; - if (!getType().equals(other.getType())) return false; - if (getCount() != other.getCount()) return false; - if (getInstallGpuDrivers() != other.getInstallGpuDrivers()) return false; - if (!getDriverVersion().equals(other.getDriverVersion())) return false; + if (!getType() + .equals(other.getType())) return false; + if (getCount() + != other.getCount()) return false; + if (getInstallGpuDrivers() + != other.getInstallGpuDrivers()) return false; + if (!getDriverVersion() + .equals(other.getDriverVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4793,9 +4425,11 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); hash = (37 * hash) + INSTALL_GPU_DRIVERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInstallGpuDrivers()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInstallGpuDrivers()); hash = (37 * hash) + DRIVER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDriverVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -4804,94 +4438,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.AllocationPolicy.Accelerator prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.AllocationPolicy.Accelerator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4901,41 +4530,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Accelerator describes Compute Engine accelerators to be attached to the VM.
      * 
* * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.Accelerator} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.Accelerator) com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.AllocationPolicy.Accelerator.class, - com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder.class); + com.google.cloud.batch.v1.AllocationPolicy.Accelerator.class, com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder.class); } // Construct using com.google.cloud.batch.v1.AllocationPolicy.Accelerator.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(); @@ -4948,9 +4575,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor; } @java.lang.Override @@ -4969,11 +4596,8 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator build() { @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.Accelerator buildPartial() { - com.google.cloud.batch.v1.AllocationPolicy.Accelerator result = - new com.google.cloud.batch.v1.AllocationPolicy.Accelerator(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.AllocationPolicy.Accelerator result = new com.google.cloud.batch.v1.AllocationPolicy.Accelerator(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -4998,41 +4622,38 @@ private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy.Accelerato public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.Accelerator) { - return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.Accelerator) other); + return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.Accelerator)other); } else { super.mergeFrom(other); return this; @@ -5040,8 +4661,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.Accelerator other) { - if (other == com.google.cloud.batch.v1.AllocationPolicy.Accelerator.getDefaultInstance()) - return this; + if (other == com.google.cloud.batch.v1.AllocationPolicy.Accelerator.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000001; @@ -5084,37 +4704,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - count_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - installGpuDrivers_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - driverVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + count_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + installGpuDrivers_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + driverVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -5124,26 +4739,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object type_ = ""; /** - * - * *
        * The accelerator type. For example, "nvidia-tesla-t4".
        * See `gcloud compute accelerator-types list`.
        * 
* * 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; @@ -5152,22 +4764,21 @@ public java.lang.String getType() { } } /** - * - * *
        * The accelerator type. For example, "nvidia-tesla-t4".
        * See `gcloud compute accelerator-types list`.
        * 
* * 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 { @@ -5175,37 +4786,30 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
        * The accelerator type. For example, "nvidia-tesla-t4".
        * See `gcloud compute accelerator-types list`.
        * 
* * string type = 1; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The accelerator type. For example, "nvidia-tesla-t4".
        * See `gcloud compute accelerator-types list`.
        * 
* * string type = 1; - * * @return This builder for chaining. */ public Builder clearType() { @@ -5215,22 +4819,18 @@ public Builder clearType() { return this; } /** - * - * *
        * The accelerator type. For example, "nvidia-tesla-t4".
        * See `gcloud compute accelerator-types list`.
        * 
* * string type = 1; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000001; @@ -5238,16 +4838,13 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { return this; } - private long count_; + private long count_ ; /** - * - * *
        * The number of accelerators of this type.
        * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -5255,14 +4852,11 @@ public long getCount() { return count_; } /** - * - * *
        * The number of accelerators of this type.
        * 
* * int64 count = 2; - * * @param value The count to set. * @return This builder for chaining. */ @@ -5274,14 +4868,11 @@ public Builder setCount(long value) { return this; } /** - * - * *
        * The number of accelerators of this type.
        * 
* * int64 count = 2; - * * @return This builder for chaining. */ public Builder clearCount() { @@ -5291,41 +4882,33 @@ public Builder clearCount() { return this; } - private boolean installGpuDrivers_; + private boolean installGpuDrivers_ ; /** - * - * *
        * Deprecated: please use instances[0].install_gpu_drivers instead.
        * 
* * bool install_gpu_drivers = 3 [deprecated = true]; - * - * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=360 + * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. + * See google/cloud/batch/v1/job.proto;l=360 * @return The installGpuDrivers. */ @java.lang.Override - @java.lang.Deprecated - public boolean getInstallGpuDrivers() { + @java.lang.Deprecated public boolean getInstallGpuDrivers() { return installGpuDrivers_; } /** - * - * *
        * Deprecated: please use instances[0].install_gpu_drivers instead.
        * 
* * bool install_gpu_drivers = 3 [deprecated = true]; - * - * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=360 + * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. + * See google/cloud/batch/v1/job.proto;l=360 * @param value The installGpuDrivers to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setInstallGpuDrivers(boolean value) { + @java.lang.Deprecated public Builder setInstallGpuDrivers(boolean value) { installGpuDrivers_ = value; bitField0_ |= 0x00000004; @@ -5333,20 +4916,16 @@ public Builder setInstallGpuDrivers(boolean value) { return this; } /** - * - * *
        * Deprecated: please use instances[0].install_gpu_drivers instead.
        * 
* * bool install_gpu_drivers = 3 [deprecated = true]; - * - * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=360 + * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. + * See google/cloud/batch/v1/job.proto;l=360 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearInstallGpuDrivers() { + @java.lang.Deprecated public Builder clearInstallGpuDrivers() { bitField0_ = (bitField0_ & ~0x00000004); installGpuDrivers_ = false; onChanged(); @@ -5355,8 +4934,6 @@ public Builder clearInstallGpuDrivers() { private java.lang.Object driverVersion_ = ""; /** - * - * *
        * Optional. The NVIDIA GPU driver version that should be installed for this
        * type.
@@ -5368,13 +4945,13 @@ public Builder clearInstallGpuDrivers() {
        * 
* * string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The driverVersion. */ public java.lang.String getDriverVersion() { java.lang.Object ref = driverVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); driverVersion_ = s; return s; @@ -5383,8 +4960,6 @@ public java.lang.String getDriverVersion() { } } /** - * - * *
        * Optional. The NVIDIA GPU driver version that should be installed for this
        * type.
@@ -5396,14 +4971,15 @@ public java.lang.String getDriverVersion() {
        * 
* * string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for driverVersion. */ - public com.google.protobuf.ByteString getDriverVersionBytes() { + public com.google.protobuf.ByteString + getDriverVersionBytes() { java.lang.Object ref = driverVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); driverVersion_ = b; return b; } else { @@ -5411,8 +4987,6 @@ public com.google.protobuf.ByteString getDriverVersionBytes() { } } /** - * - * *
        * Optional. The NVIDIA GPU driver version that should be installed for this
        * type.
@@ -5424,22 +4998,18 @@ public com.google.protobuf.ByteString getDriverVersionBytes() {
        * 
* * string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The driverVersion to set. * @return This builder for chaining. */ - public Builder setDriverVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDriverVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } driverVersion_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * Optional. The NVIDIA GPU driver version that should be installed for this
        * type.
@@ -5451,7 +5021,6 @@ public Builder setDriverVersion(java.lang.String value) {
        * 
* * string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDriverVersion() { @@ -5461,8 +5030,6 @@ public Builder clearDriverVersion() { return this; } /** - * - * *
        * Optional. The NVIDIA GPU driver version that should be installed for this
        * type.
@@ -5474,21 +5041,18 @@ public Builder clearDriverVersion() {
        * 
* * string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for driverVersion to set. * @return This builder for chaining. */ - public Builder setDriverVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDriverVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); driverVersion_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5501,12 +5065,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.Accelerator) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.Accelerator) private static final com.google.cloud.batch.v1.AllocationPolicy.Accelerator DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.Accelerator(); } @@ -5515,28 +5079,27 @@ public static com.google.cloud.batch.v1.AllocationPolicy.Accelerator getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Accelerator 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 Accelerator 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; @@ -5551,41 +5114,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy.Accelerator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface InstancePolicyOrBuilder - extends + public interface InstancePolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.InstancePolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The Compute Engine machine type.
      * 
* * string machine_type = 2; - * * @return The machineType. */ java.lang.String getMachineType(); /** - * - * *
      * The Compute Engine machine type.
      * 
* * string machine_type = 2; - * * @return The bytes for machineType. */ - com.google.protobuf.ByteString getMachineTypeBytes(); + com.google.protobuf.ByteString + getMachineTypeBytes(); /** - * - * *
      * The minimum CPU platform.
      * See
@@ -5593,13 +5149,10 @@ public interface InstancePolicyOrBuilder
      * 
* * string min_cpu_platform = 3; - * * @return The minCpuPlatform. */ java.lang.String getMinCpuPlatform(); /** - * - * *
      * The minimum CPU platform.
      * See
@@ -5607,51 +5160,40 @@ public interface InstancePolicyOrBuilder
      * 
* * string min_cpu_platform = 3; - * * @return The bytes for minCpuPlatform. */ - com.google.protobuf.ByteString getMinCpuPlatformBytes(); + com.google.protobuf.ByteString + getMinCpuPlatformBytes(); /** - * - * *
      * The provisioning model.
      * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; * @return The enum numeric value on the wire for provisioningModel. */ int getProvisioningModelValue(); /** - * - * *
      * The provisioning model.
      * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; * @return The provisioningModel. */ com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvisioningModel(); /** - * - * *
      * The accelerators attached to each VM instance.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ - java.util.List getAcceleratorsList(); + java.util.List + getAcceleratorsList(); /** - * - * *
      * The accelerators attached to each VM instance.
      * 
@@ -5660,8 +5202,6 @@ public interface InstancePolicyOrBuilder */ com.google.cloud.batch.v1.AllocationPolicy.Accelerator getAccelerators(int index); /** - * - * *
      * The accelerators attached to each VM instance.
      * 
@@ -5670,19 +5210,15 @@ public interface InstancePolicyOrBuilder */ int getAcceleratorsCount(); /** - * - * *
      * The accelerators attached to each VM instance.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ - java.util.List + java.util.List getAcceleratorsOrBuilderList(); /** - * - * *
      * The accelerators attached to each VM instance.
      * 
@@ -5693,8 +5229,6 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO int index); /** - * - * *
      * Boot disk to be created and attached to each VM by this InstancePolicy.
      * Boot disk will be deleted when the VM is deleted.
@@ -5702,13 +5236,10 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO
      * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8; - * * @return Whether the bootDisk field is set. */ boolean hasBootDisk(); /** - * - * *
      * Boot disk to be created and attached to each VM by this InstancePolicy.
      * Boot disk will be deleted when the VM is deleted.
@@ -5716,13 +5247,10 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO
      * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8; - * * @return The bootDisk. */ com.google.cloud.batch.v1.AllocationPolicy.Disk getBootDisk(); /** - * - * *
      * Boot disk to be created and attached to each VM by this InstancePolicy.
      * Boot disk will be deleted when the VM is deleted.
@@ -5734,8 +5262,6 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO
     com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder();
 
     /**
-     *
-     *
      * 
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the VM is deleted.
@@ -5746,10 +5272,9 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO
      *
      * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      */
-    java.util.List getDisksList();
+    java.util.List 
+        getDisksList();
     /**
-     *
-     *
      * 
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the VM is deleted.
@@ -5762,8 +5287,6 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO
      */
     com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk getDisks(int index);
     /**
-     *
-     *
      * 
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the VM is deleted.
@@ -5776,8 +5299,6 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO
      */
     int getDisksCount();
     /**
-     *
-     *
      * 
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the VM is deleted.
@@ -5788,11 +5309,9 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO
      *
      * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      */
-    java.util.List
+    java.util.List 
         getDisksOrBuilderList();
     /**
-     *
-     *
      * 
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the VM is deleted.
@@ -5803,38 +5322,32 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO
      *
      * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      */
-    com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisksOrBuilder(int index);
+    com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisksOrBuilder(
+        int index);
 
     /**
-     *
-     *
      * 
      * Optional. If specified, VMs will consume only the specified reservation.
      * If not specified (default), VMs will consume any applicable reservation.
      * 
* * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reservation. */ java.lang.String getReservation(); /** - * - * *
      * Optional. If specified, VMs will consume only the specified reservation.
      * If not specified (default), VMs will consume any applicable reservation.
      * 
* * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reservation. */ - com.google.protobuf.ByteString getReservationBytes(); + com.google.protobuf.ByteString + getReservationBytes(); } /** - * - * *
    * InstancePolicy describes an instance type and resources attached to each VM
    * created by this InstancePolicy.
@@ -5842,16 +5355,15 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO
    *
    * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.InstancePolicy}
    */
-  public static final class InstancePolicy extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class InstancePolicy extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.InstancePolicy)
       InstancePolicyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use InstancePolicy.newBuilder() to construct.
     private InstancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private InstancePolicy() {
       machineType_ = "";
       minCpuPlatform_ = "";
@@ -5863,39 +5375,34 @@ private InstancePolicy() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new InstancePolicy();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_fieldAccessorTable
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.class,
-              com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder.class);
+              com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.class, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder.class);
     }
 
     private int bitField0_;
     public static final int MACHINE_TYPE_FIELD_NUMBER = 2;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object machineType_ = "";
     /**
-     *
-     *
      * 
      * The Compute Engine machine type.
      * 
* * string machine_type = 2; - * * @return The machineType. */ @java.lang.Override @@ -5904,29 +5411,29 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** - * - * *
      * The Compute Engine machine type.
      * 
* * string machine_type = 2; - * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -5935,12 +5442,9 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object minCpuPlatform_ = ""; /** - * - * *
      * The minimum CPU platform.
      * See
@@ -5948,7 +5452,6 @@ public com.google.protobuf.ByteString getMachineTypeBytes() {
      * 
* * string min_cpu_platform = 3; - * * @return The minCpuPlatform. */ @java.lang.Override @@ -5957,15 +5460,14 @@ public java.lang.String getMinCpuPlatform() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); minCpuPlatform_ = s; return s; } } /** - * - * *
      * The minimum CPU platform.
      * See
@@ -5973,15 +5475,16 @@ public java.lang.String getMinCpuPlatform() {
      * 
* * string min_cpu_platform = 3; - * * @return The bytes for minCpuPlatform. */ @java.lang.Override - public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + public com.google.protobuf.ByteString + getMinCpuPlatformBytes() { java.lang.Object ref = minCpuPlatform_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); minCpuPlatform_ = b; return b; } else { @@ -5992,50 +5495,33 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { public static final int PROVISIONING_MODEL_FIELD_NUMBER = 4; private int provisioningModel_ = 0; /** - * - * *
      * The provisioning model.
      * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; * @return The enum numeric value on the wire for provisioningModel. */ - @java.lang.Override - public int getProvisioningModelValue() { + @java.lang.Override public int getProvisioningModelValue() { return provisioningModel_; } /** - * - * *
      * The provisioning model.
      * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; * @return The provisioningModel. */ - @java.lang.Override - public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvisioningModel() { - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.forNumber( - provisioningModel_); - return result == null - ? com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvisioningModel() { + com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.forNumber(provisioningModel_); + return result == null ? com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.UNRECOGNIZED : result; } public static final int ACCELERATORS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List accelerators_; - /** - * - * + /** *
      * The accelerators attached to each VM instance.
      * 
@@ -6043,13 +5529,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvision * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ @java.lang.Override - public java.util.List - getAcceleratorsList() { + public java.util.List getAcceleratorsList() { return accelerators_; } /** - * - * *
      * The accelerators attached to each VM instance.
      * 
@@ -6057,13 +5540,11 @@ public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvision * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ @java.lang.Override - public java.util.List + public java.util.List getAcceleratorsOrBuilderList() { return accelerators_; } /** - * - * *
      * The accelerators attached to each VM instance.
      * 
@@ -6075,8 +5556,6 @@ public int getAcceleratorsCount() { return accelerators_.size(); } /** - * - * *
      * The accelerators attached to each VM instance.
      * 
@@ -6088,8 +5567,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator getAccelerators(in return accelerators_.get(index); } /** - * - * *
      * The accelerators attached to each VM instance.
      * 
@@ -6105,8 +5582,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAccele public static final int BOOT_DISK_FIELD_NUMBER = 8; private com.google.cloud.batch.v1.AllocationPolicy.Disk bootDisk_; /** - * - * *
      * Boot disk to be created and attached to each VM by this InstancePolicy.
      * Boot disk will be deleted when the VM is deleted.
@@ -6114,7 +5589,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAccele
      * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8; - * * @return Whether the bootDisk field is set. */ @java.lang.Override @@ -6122,8 +5596,6 @@ public boolean hasBootDisk() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Boot disk to be created and attached to each VM by this InstancePolicy.
      * Boot disk will be deleted when the VM is deleted.
@@ -6131,18 +5603,13 @@ public boolean hasBootDisk() {
      * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8; - * * @return The bootDisk. */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.Disk getBootDisk() { - return bootDisk_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() - : bootDisk_; + return bootDisk_ == null ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() : bootDisk_; } /** - * - * *
      * Boot disk to be created and attached to each VM by this InstancePolicy.
      * Boot disk will be deleted when the VM is deleted.
@@ -6153,18 +5620,13 @@ public com.google.cloud.batch.v1.AllocationPolicy.Disk getBootDisk() {
      */
     @java.lang.Override
     public com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder() {
-      return bootDisk_ == null
-          ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance()
-          : bootDisk_;
+      return bootDisk_ == null ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() : bootDisk_;
     }
 
     public static final int DISKS_FIELD_NUMBER = 6;
-
     @SuppressWarnings("serial")
     private java.util.List disks_;
     /**
-     *
-     *
      * 
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the VM is deleted.
@@ -6180,8 +5642,6 @@ public java.util.List g
       return disks_;
     }
     /**
-     *
-     *
      * 
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the VM is deleted.
@@ -6193,14 +5653,11 @@ public java.util.List g
      * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      */
     @java.lang.Override
-    public java.util.List<
-            ? extends com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder>
+    public java.util.List 
         getDisksOrBuilderList() {
       return disks_;
     }
     /**
-     *
-     *
      * 
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the VM is deleted.
@@ -6216,8 +5673,6 @@ public int getDisksCount() {
       return disks_.size();
     }
     /**
-     *
-     *
      * 
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the VM is deleted.
@@ -6233,8 +5688,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk getDisks(int inde
       return disks_.get(index);
     }
     /**
-     *
-     *
      * 
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the VM is deleted.
@@ -6252,19 +5705,15 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisks
     }
 
     public static final int RESERVATION_FIELD_NUMBER = 7;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object reservation_ = "";
     /**
-     *
-     *
      * 
      * Optional. If specified, VMs will consume only the specified reservation.
      * If not specified (default), VMs will consume any applicable reservation.
      * 
* * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reservation. */ @java.lang.Override @@ -6273,30 +5722,30 @@ public java.lang.String getReservation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservation_ = s; return s; } } /** - * - * *
      * Optional. If specified, VMs will consume only the specified reservation.
      * If not specified (default), VMs will consume any applicable reservation.
      * 
* * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reservation. */ @java.lang.Override - public com.google.protobuf.ByteString getReservationBytes() { + public com.google.protobuf.ByteString + getReservationBytes() { java.lang.Object ref = reservation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservation_ = b; return b; } else { @@ -6305,7 +5754,6 @@ public com.google.protobuf.ByteString getReservationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6317,17 +5765,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, machineType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, minCpuPlatform_); } - if (provisioningModel_ - != com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel - .PROVISIONING_MODEL_UNSPECIFIED - .getNumber()) { + if (provisioningModel_ != com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.PROVISIONING_MODEL_UNSPECIFIED.getNumber()) { output.writeEnum(4, provisioningModel_); } for (int i = 0; i < accelerators_.size(); i++) { @@ -6357,23 +5803,24 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, minCpuPlatform_); } - if (provisioningModel_ - != com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel - .PROVISIONING_MODEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, provisioningModel_); + if (provisioningModel_ != com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.PROVISIONING_MODEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, provisioningModel_); } for (int i = 0; i < accelerators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, accelerators_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, accelerators_.get(i)); } for (int i = 0; i < disks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, disks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, disks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, reservation_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getBootDisk()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getBootDisk()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6383,24 +5830,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy)) { return super.equals(obj); } - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy other = - (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) obj; + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy other = (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) obj; - if (!getMachineType().equals(other.getMachineType())) return false; - if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; + if (!getMachineType() + .equals(other.getMachineType())) return false; + if (!getMinCpuPlatform() + .equals(other.getMinCpuPlatform())) return false; if (provisioningModel_ != other.provisioningModel_) return false; - if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; + if (!getAcceleratorsList() + .equals(other.getAcceleratorsList())) return false; if (hasBootDisk() != other.hasBootDisk()) return false; if (hasBootDisk()) { - if (!getBootDisk().equals(other.getBootDisk())) return false; + if (!getBootDisk() + .equals(other.getBootDisk())) return false; } - if (!getDisksList().equals(other.getDisksList())) return false; - if (!getReservation().equals(other.getReservation())) return false; + if (!getDisksList() + .equals(other.getDisksList())) return false; + if (!getReservation() + .equals(other.getReservation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6438,94 +5890,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6535,8 +5982,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * InstancePolicy describes an instance type and resources attached to each VM
      * created by this InstancePolicy.
@@ -6544,24 +5989,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.InstancePolicy}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.InstancePolicy)
         com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_fieldAccessorTable
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.class,
-                com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder.class);
+                com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.class, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder.class);
       }
 
       // Construct using com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.newBuilder()
@@ -6569,19 +6011,19 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getAcceleratorsFieldBuilder();
           getBootDiskFieldBuilder();
           getDisksFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -6613,9 +6055,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor;
       }
 
       @java.lang.Override
@@ -6634,18 +6076,14 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy build() {
 
       @java.lang.Override
       public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy buildPartial() {
-        com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy result =
-            new com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy(this);
+        com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy result = new com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy(this);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy result) {
+      private void buildPartialRepeatedFields(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy result) {
         if (acceleratorsBuilder_ == null) {
           if (((bitField0_ & 0x00000008) != 0)) {
             accelerators_ = java.util.Collections.unmodifiableList(accelerators_);
@@ -6679,7 +6117,9 @@ private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy.InstancePo
         }
         int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.bootDisk_ = bootDiskBuilder_ == null ? bootDisk_ : bootDiskBuilder_.build();
+          result.bootDisk_ = bootDiskBuilder_ == null
+              ? bootDisk_
+              : bootDiskBuilder_.build();
           to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000040) != 0)) {
@@ -6692,41 +6132,38 @@ private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy.InstancePo
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) {
-          return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) other);
+          return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -6734,8 +6171,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy other) {
-        if (other == com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.getDefaultInstance()) return this;
         if (!other.getMachineType().isEmpty()) {
           machineType_ = other.machineType_;
           bitField0_ |= 0x00000001;
@@ -6767,10 +6203,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.InstancePoli
               acceleratorsBuilder_ = null;
               accelerators_ = other.accelerators_;
               bitField0_ = (bitField0_ & ~0x00000008);
-              acceleratorsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getAcceleratorsFieldBuilder()
-                      : null;
+              acceleratorsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getAcceleratorsFieldBuilder() : null;
             } else {
               acceleratorsBuilder_.addAllMessages(other.accelerators_);
             }
@@ -6797,10 +6232,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.InstancePoli
               disksBuilder_ = null;
               disks_ = other.disks_;
               bitField0_ = (bitField0_ & ~0x00000020);
-              disksBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getDisksFieldBuilder()
-                      : null;
+              disksBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getDisksFieldBuilder() : null;
             } else {
               disksBuilder_.addAllMessages(other.disks_);
             }
@@ -6837,71 +6271,65 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 18:
-                {
-                  machineType_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  minCpuPlatform_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 26
-              case 32:
-                {
-                  provisioningModel_ = input.readEnum();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 32
-              case 42:
-                {
-                  com.google.cloud.batch.v1.AllocationPolicy.Accelerator m =
-                      input.readMessage(
-                          com.google.cloud.batch.v1.AllocationPolicy.Accelerator.parser(),
-                          extensionRegistry);
-                  if (acceleratorsBuilder_ == null) {
-                    ensureAcceleratorsIsMutable();
-                    accelerators_.add(m);
-                  } else {
-                    acceleratorsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 42
-              case 50:
-                {
-                  com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk m =
-                      input.readMessage(
-                          com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.parser(),
-                          extensionRegistry);
-                  if (disksBuilder_ == null) {
-                    ensureDisksIsMutable();
-                    disks_.add(m);
-                  } else {
-                    disksBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 50
-              case 58:
-                {
-                  reservation_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000040;
-                  break;
-                } // case 58
-              case 66:
-                {
-                  input.readMessage(getBootDiskFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 66
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 18: {
+                machineType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 18
+              case 26: {
+                minCpuPlatform_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+              case 32: {
+                provisioningModel_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+              case 42: {
+                com.google.cloud.batch.v1.AllocationPolicy.Accelerator m =
+                    input.readMessage(
+                        com.google.cloud.batch.v1.AllocationPolicy.Accelerator.parser(),
+                        extensionRegistry);
+                if (acceleratorsBuilder_ == null) {
+                  ensureAcceleratorsIsMutable();
+                  accelerators_.add(m);
+                } else {
+                  acceleratorsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+              case 50: {
+                com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk m =
+                    input.readMessage(
+                        com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.parser(),
+                        extensionRegistry);
+                if (disksBuilder_ == null) {
+                  ensureDisksIsMutable();
+                  disks_.add(m);
+                } else {
+                  disksBuilder_.addMessage(m);
+                }
+                break;
+              } // case 50
+              case 58: {
+                reservation_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+              case 66: {
+                input.readMessage(
+                    getBootDiskFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000010;
+                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) {
@@ -6911,25 +6339,22 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object machineType_ = "";
       /**
-       *
-       *
        * 
        * The Compute Engine machine type.
        * 
* * string machine_type = 2; - * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -6938,21 +6363,20 @@ public java.lang.String getMachineType() { } } /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 2; - * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -6960,35 +6384,28 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } } /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 2; - * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMachineType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } machineType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 2; - * * @return This builder for chaining. */ public Builder clearMachineType() { @@ -6998,21 +6415,17 @@ public Builder clearMachineType() { return this; } /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 2; - * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00000001; @@ -7022,8 +6435,6 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object minCpuPlatform_ = ""; /** - * - * *
        * The minimum CPU platform.
        * See
@@ -7031,13 +6442,13 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) {
        * 
* * string min_cpu_platform = 3; - * * @return The minCpuPlatform. */ public java.lang.String getMinCpuPlatform() { java.lang.Object ref = minCpuPlatform_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); minCpuPlatform_ = s; return s; @@ -7046,8 +6457,6 @@ public java.lang.String getMinCpuPlatform() { } } /** - * - * *
        * The minimum CPU platform.
        * See
@@ -7055,14 +6464,15 @@ public java.lang.String getMinCpuPlatform() {
        * 
* * string min_cpu_platform = 3; - * * @return The bytes for minCpuPlatform. */ - public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + public com.google.protobuf.ByteString + getMinCpuPlatformBytes() { java.lang.Object ref = minCpuPlatform_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); minCpuPlatform_ = b; return b; } else { @@ -7070,8 +6480,6 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { } } /** - * - * *
        * The minimum CPU platform.
        * See
@@ -7079,22 +6487,18 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() {
        * 
* * string min_cpu_platform = 3; - * * @param value The minCpuPlatform to set. * @return This builder for chaining. */ - public Builder setMinCpuPlatform(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMinCpuPlatform( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } minCpuPlatform_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The minimum CPU platform.
        * See
@@ -7102,7 +6506,6 @@ public Builder setMinCpuPlatform(java.lang.String value) {
        * 
* * string min_cpu_platform = 3; - * * @return This builder for chaining. */ public Builder clearMinCpuPlatform() { @@ -7112,8 +6515,6 @@ public Builder clearMinCpuPlatform() { return this; } /** - * - * *
        * The minimum CPU platform.
        * See
@@ -7121,14 +6522,12 @@ public Builder clearMinCpuPlatform() {
        * 
* * string min_cpu_platform = 3; - * * @param value The bytes for minCpuPlatform to set. * @return This builder for chaining. */ - public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMinCpuPlatformBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); minCpuPlatform_ = value; bitField0_ |= 0x00000002; @@ -7138,31 +6537,22 @@ public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { private int provisioningModel_ = 0; /** - * - * *
        * The provisioning model.
        * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; * @return The enum numeric value on the wire for provisioningModel. */ - @java.lang.Override - public int getProvisioningModelValue() { + @java.lang.Override public int getProvisioningModelValue() { return provisioningModel_; } /** - * - * *
        * The provisioning model.
        * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; * @param value The enum numeric value on the wire for provisioningModel to set. * @return This builder for chaining. */ @@ -7173,41 +6563,28 @@ public Builder setProvisioningModelValue(int value) { return this; } /** - * - * *
        * The provisioning model.
        * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; * @return The provisioningModel. */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvisioningModel() { - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.forNumber( - provisioningModel_); - return result == null - ? com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.UNRECOGNIZED - : result; + com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.forNumber(provisioningModel_); + return result == null ? com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.UNRECOGNIZED : result; } /** - * - * *
        * The provisioning model.
        * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; * @param value The provisioningModel to set. * @return This builder for chaining. */ - public Builder setProvisioningModel( - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel value) { + public Builder setProvisioningModel(com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel value) { if (value == null) { throw new NullPointerException(); } @@ -7217,15 +6594,11 @@ public Builder setProvisioningModel( return this; } /** - * - * *
        * The provisioning model.
        * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4; * @return This builder for chaining. */ public Builder clearProvisioningModel() { @@ -7236,34 +6609,25 @@ public Builder clearProvisioningModel() { } private java.util.List accelerators_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAcceleratorsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - accelerators_ = - new java.util.ArrayList( - accelerators_); + accelerators_ = new java.util.ArrayList(accelerators_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.Accelerator, - com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder, - com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder> - acceleratorsBuilder_; + com.google.cloud.batch.v1.AllocationPolicy.Accelerator, com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder, com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder> acceleratorsBuilder_; /** - * - * *
        * The accelerators attached to each VM instance.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ - public java.util.List - getAcceleratorsList() { + public java.util.List getAcceleratorsList() { if (acceleratorsBuilder_ == null) { return java.util.Collections.unmodifiableList(accelerators_); } else { @@ -7271,8 +6635,6 @@ private void ensureAcceleratorsIsMutable() { } } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7287,8 +6649,6 @@ public int getAcceleratorsCount() { } } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7303,8 +6663,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator getAccelerators(in } } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7326,8 +6684,6 @@ public Builder setAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7335,8 +6691,7 @@ public Builder setAccelerators( * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ public Builder setAccelerators( - int index, - com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder builderForValue) { + int index, com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.set(index, builderForValue.build()); @@ -7347,8 +6702,6 @@ public Builder setAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7369,8 +6722,6 @@ public Builder addAccelerators(com.google.cloud.batch.v1.AllocationPolicy.Accele return this; } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7392,8 +6743,6 @@ public Builder addAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7412,8 +6761,6 @@ public Builder addAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7421,8 +6768,7 @@ public Builder addAccelerators( * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ public Builder addAccelerators( - int index, - com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder builderForValue) { + int index, com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(index, builderForValue.build()); @@ -7433,8 +6779,6 @@ public Builder addAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7442,11 +6786,11 @@ public Builder addAccelerators( * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ public Builder addAllAccelerators( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, accelerators_); onChanged(); } else { acceleratorsBuilder_.addAllMessages(values); @@ -7454,8 +6798,6 @@ public Builder addAllAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7473,8 +6815,6 @@ public Builder clearAccelerators() { return this; } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7492,8 +6832,6 @@ public Builder removeAccelerators(int index) { return this; } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7505,34 +6843,28 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder getAcceler return getAcceleratorsFieldBuilder().getBuilder(index); } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ - public com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder - getAcceleratorsOrBuilder(int index) { + public com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder( + int index) { if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { + return accelerators_.get(index); } else { return acceleratorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ - public java.util.List< - ? extends com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder> - getAcceleratorsOrBuilderList() { + public java.util.List + getAcceleratorsOrBuilderList() { if (acceleratorsBuilder_ != null) { return acceleratorsBuilder_.getMessageOrBuilderList(); } else { @@ -7540,23 +6872,17 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder getAcceler } } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ - public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder - addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder() - .addBuilder( - com.google.cloud.batch.v1.AllocationPolicy.Accelerator.getDefaultInstance()); + public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder().addBuilder( + com.google.cloud.batch.v1.AllocationPolicy.Accelerator.getDefaultInstance()); } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
@@ -7565,35 +6891,26 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder getAcceler */ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder( int index) { - return getAcceleratorsFieldBuilder() - .addBuilder( - index, com.google.cloud.batch.v1.AllocationPolicy.Accelerator.getDefaultInstance()); + return getAcceleratorsFieldBuilder().addBuilder( + index, com.google.cloud.batch.v1.AllocationPolicy.Accelerator.getDefaultInstance()); } /** - * - * *
        * The accelerators attached to each VM instance.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ - public java.util.List - getAcceleratorsBuilderList() { + public java.util.List + getAcceleratorsBuilderList() { return getAcceleratorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.Accelerator, - com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder, - com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder> + com.google.cloud.batch.v1.AllocationPolicy.Accelerator, com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder, com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsFieldBuilder() { if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.Accelerator, - com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder, - com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder>( + acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.batch.v1.AllocationPolicy.Accelerator, com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder, com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder>( accelerators_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -7605,13 +6922,8 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder addAcceler private com.google.cloud.batch.v1.AllocationPolicy.Disk bootDisk_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.Disk, - com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, - com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder> - bootDiskBuilder_; + com.google.cloud.batch.v1.AllocationPolicy.Disk, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder> bootDiskBuilder_; /** - * - * *
        * Boot disk to be created and attached to each VM by this InstancePolicy.
        * Boot disk will be deleted when the VM is deleted.
@@ -7619,15 +6931,12 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder addAcceler
        * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8; - * * @return Whether the bootDisk field is set. */ public boolean hasBootDisk() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
        * Boot disk to be created and attached to each VM by this InstancePolicy.
        * Boot disk will be deleted when the VM is deleted.
@@ -7635,21 +6944,16 @@ public boolean hasBootDisk() {
        * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8; - * * @return The bootDisk. */ public com.google.cloud.batch.v1.AllocationPolicy.Disk getBootDisk() { if (bootDiskBuilder_ == null) { - return bootDisk_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() - : bootDisk_; + return bootDisk_ == null ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() : bootDisk_; } else { return bootDiskBuilder_.getMessage(); } } /** - * - * *
        * Boot disk to be created and attached to each VM by this InstancePolicy.
        * Boot disk will be deleted when the VM is deleted.
@@ -7672,8 +6976,6 @@ public Builder setBootDisk(com.google.cloud.batch.v1.AllocationPolicy.Disk value
         return this;
       }
       /**
-       *
-       *
        * 
        * Boot disk to be created and attached to each VM by this InstancePolicy.
        * Boot disk will be deleted when the VM is deleted.
@@ -7694,8 +6996,6 @@ public Builder setBootDisk(
         return this;
       }
       /**
-       *
-       *
        * 
        * Boot disk to be created and attached to each VM by this InstancePolicy.
        * Boot disk will be deleted when the VM is deleted.
@@ -7706,10 +7006,9 @@ public Builder setBootDisk(
        */
       public Builder mergeBootDisk(com.google.cloud.batch.v1.AllocationPolicy.Disk value) {
         if (bootDiskBuilder_ == null) {
-          if (((bitField0_ & 0x00000010) != 0)
-              && bootDisk_ != null
-              && bootDisk_
-                  != com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000010) != 0) &&
+            bootDisk_ != null &&
+            bootDisk_ != com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance()) {
             getBootDiskBuilder().mergeFrom(value);
           } else {
             bootDisk_ = value;
@@ -7724,8 +7023,6 @@ public Builder mergeBootDisk(com.google.cloud.batch.v1.AllocationPolicy.Disk val
         return this;
       }
       /**
-       *
-       *
        * 
        * Boot disk to be created and attached to each VM by this InstancePolicy.
        * Boot disk will be deleted when the VM is deleted.
@@ -7745,8 +7042,6 @@ public Builder clearBootDisk() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Boot disk to be created and attached to each VM by this InstancePolicy.
        * Boot disk will be deleted when the VM is deleted.
@@ -7761,8 +7056,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder getBootDiskBuilde
         return getBootDiskFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Boot disk to be created and attached to each VM by this InstancePolicy.
        * Boot disk will be deleted when the VM is deleted.
@@ -7775,14 +7068,11 @@ public com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getBootDiskOrBui
         if (bootDiskBuilder_ != null) {
           return bootDiskBuilder_.getMessageOrBuilder();
         } else {
-          return bootDisk_ == null
-              ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance()
-              : bootDisk_;
+          return bootDisk_ == null ?
+              com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() : bootDisk_;
         }
       }
       /**
-       *
-       *
        * 
        * Boot disk to be created and attached to each VM by this InstancePolicy.
        * Boot disk will be deleted when the VM is deleted.
@@ -7792,43 +7082,32 @@ public com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getBootDiskOrBui
        * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.batch.v1.AllocationPolicy.Disk,
-              com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder,
-              com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder>
+          com.google.cloud.batch.v1.AllocationPolicy.Disk, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder> 
           getBootDiskFieldBuilder() {
         if (bootDiskBuilder_ == null) {
-          bootDiskBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.batch.v1.AllocationPolicy.Disk,
-                  com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder,
-                  com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder>(
-                  getBootDisk(), getParentForChildren(), isClean());
+          bootDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.batch.v1.AllocationPolicy.Disk, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder>(
+                  getBootDisk(),
+                  getParentForChildren(),
+                  isClean());
           bootDisk_ = null;
         }
         return bootDiskBuilder_;
       }
 
       private java.util.List disks_ =
-          java.util.Collections.emptyList();
-
+        java.util.Collections.emptyList();
       private void ensureDisksIsMutable() {
         if (!((bitField0_ & 0x00000020) != 0)) {
-          disks_ =
-              new java.util.ArrayList(
-                  disks_);
+          disks_ = new java.util.ArrayList(disks_);
           bitField0_ |= 0x00000020;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk,
-              com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder,
-              com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder>
-          disksBuilder_;
+          com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk, com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder, com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder> disksBuilder_;
 
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -7839,8 +7118,7 @@ private void ensureDisksIsMutable() {
        *
        * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        */
-      public java.util.List
-          getDisksList() {
+      public java.util.List getDisksList() {
         if (disksBuilder_ == null) {
           return java.util.Collections.unmodifiableList(disks_);
         } else {
@@ -7848,8 +7126,6 @@ private void ensureDisksIsMutable() {
         }
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -7868,8 +7144,6 @@ public int getDisksCount() {
         }
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -7888,8 +7162,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk getDisks(int inde
         }
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -7915,8 +7187,6 @@ public Builder setDisks(
         return this;
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -7928,8 +7198,7 @@ public Builder setDisks(
        * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        */
       public Builder setDisks(
-          int index,
-          com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder builderForValue) {
+          int index, com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder builderForValue) {
         if (disksBuilder_ == null) {
           ensureDisksIsMutable();
           disks_.set(index, builderForValue.build());
@@ -7940,8 +7209,6 @@ public Builder setDisks(
         return this;
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -7966,8 +7233,6 @@ public Builder addDisks(com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk
         return this;
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -7993,8 +7258,6 @@ public Builder addDisks(
         return this;
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8017,8 +7280,6 @@ public Builder addDisks(
         return this;
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8030,8 +7291,7 @@ public Builder addDisks(
        * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        */
       public Builder addDisks(
-          int index,
-          com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder builderForValue) {
+          int index, com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder builderForValue) {
         if (disksBuilder_ == null) {
           ensureDisksIsMutable();
           disks_.add(index, builderForValue.build());
@@ -8042,8 +7302,6 @@ public Builder addDisks(
         return this;
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8055,11 +7313,11 @@ public Builder addDisks(
        * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        */
       public Builder addAllDisks(
-          java.lang.Iterable
-              values) {
+          java.lang.Iterable values) {
         if (disksBuilder_ == null) {
           ensureDisksIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disks_);
+          com.google.protobuf.AbstractMessageLite.Builder.addAll(
+              values, disks_);
           onChanged();
         } else {
           disksBuilder_.addAllMessages(values);
@@ -8067,8 +7325,6 @@ public Builder addAllDisks(
         return this;
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8090,8 +7346,6 @@ public Builder clearDisks() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8113,8 +7367,6 @@ public Builder removeDisks(int index) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8130,8 +7382,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder getDisksB
         return getDisksFieldBuilder().getBuilder(index);
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8145,14 +7395,11 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder getDisksB
       public com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisksOrBuilder(
           int index) {
         if (disksBuilder_ == null) {
-          return disks_.get(index);
-        } else {
+          return disks_.get(index);  } else {
           return disksBuilder_.getMessageOrBuilder(index);
         }
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8163,9 +7410,8 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisks
        *
        * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        */
-      public java.util.List<
-              ? extends com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder>
-          getDisksOrBuilderList() {
+      public java.util.List 
+           getDisksOrBuilderList() {
         if (disksBuilder_ != null) {
           return disksBuilder_.getMessageOrBuilderList();
         } else {
@@ -8173,8 +7419,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisks
         }
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8186,13 +7430,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisks
        * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        */
       public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder addDisksBuilder() {
-        return getDisksFieldBuilder()
-            .addBuilder(
-                com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.getDefaultInstance());
+        return getDisksFieldBuilder().addBuilder(
+            com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.getDefaultInstance());
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8205,14 +7446,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder addDisksB
        */
       public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder addDisksBuilder(
           int index) {
-        return getDisksFieldBuilder()
-            .addBuilder(
-                index,
-                com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.getDefaultInstance());
+        return getDisksFieldBuilder().addBuilder(
+            index, com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.getDefaultInstance());
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the VM is deleted.
@@ -8223,23 +7460,20 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder addDisksB
        *
        * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        */
-      public java.util.List
-          getDisksBuilderList() {
+      public java.util.List 
+           getDisksBuilderList() {
         return getDisksFieldBuilder().getBuilderList();
       }
-
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk,
-              com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder,
-              com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder>
+          com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk, com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder, com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder> 
           getDisksFieldBuilder() {
         if (disksBuilder_ == null) {
-          disksBuilder_ =
-              new com.google.protobuf.RepeatedFieldBuilderV3<
-                  com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk,
-                  com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder,
-                  com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder>(
-                  disks_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean());
+          disksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+              com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk, com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder, com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder>(
+                  disks_,
+                  ((bitField0_ & 0x00000020) != 0),
+                  getParentForChildren(),
+                  isClean());
           disks_ = null;
         }
         return disksBuilder_;
@@ -8247,21 +7481,19 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder addDisksB
 
       private java.lang.Object reservation_ = "";
       /**
-       *
-       *
        * 
        * Optional. If specified, VMs will consume only the specified reservation.
        * If not specified (default), VMs will consume any applicable reservation.
        * 
* * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reservation. */ public java.lang.String getReservation() { java.lang.Object ref = reservation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservation_ = s; return s; @@ -8270,22 +7502,21 @@ public java.lang.String getReservation() { } } /** - * - * *
        * Optional. If specified, VMs will consume only the specified reservation.
        * If not specified (default), VMs will consume any applicable reservation.
        * 
* * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reservation. */ - public com.google.protobuf.ByteString getReservationBytes() { + public com.google.protobuf.ByteString + getReservationBytes() { java.lang.Object ref = reservation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservation_ = b; return b; } else { @@ -8293,37 +7524,30 @@ public com.google.protobuf.ByteString getReservationBytes() { } } /** - * - * *
        * Optional. If specified, VMs will consume only the specified reservation.
        * If not specified (default), VMs will consume any applicable reservation.
        * 
* * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The reservation to set. * @return This builder for chaining. */ - public Builder setReservation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReservation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reservation_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
        * Optional. If specified, VMs will consume only the specified reservation.
        * If not specified (default), VMs will consume any applicable reservation.
        * 
* * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReservation() { @@ -8333,29 +7557,24 @@ public Builder clearReservation() { return this; } /** - * - * *
        * Optional. If specified, VMs will consume only the specified reservation.
        * If not specified (default), VMs will consume any applicable reservation.
        * 
* * string reservation = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for reservation to set. * @return This builder for chaining. */ - public Builder setReservationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReservationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reservation_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8368,12 +7587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.InstancePolicy) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.InstancePolicy) private static final com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy(); } @@ -8382,28 +7601,27 @@ public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstancePolicy 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 InstancePolicy 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; @@ -8418,40 +7636,32 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface InstancePolicyOrTemplateOrBuilder - extends + public interface InstancePolicyOrTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * InstancePolicy.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
      * InstancePolicy.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1; - * * @return The policy. */ com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy getPolicy(); /** - * - * *
      * InstancePolicy.
      * 
@@ -8461,8 +7671,6 @@ public interface InstancePolicyOrTemplateOrBuilder com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder getPolicyOrBuilder(); /** - * - * *
      * Name of an instance template used to create VMs.
      * Named the field as 'instance_template' instead of 'template' to avoid
@@ -8470,13 +7678,10 @@ public interface InstancePolicyOrTemplateOrBuilder
      * 
* * string instance_template = 2; - * * @return Whether the instanceTemplate field is set. */ boolean hasInstanceTemplate(); /** - * - * *
      * Name of an instance template used to create VMs.
      * Named the field as 'instance_template' instead of 'template' to avoid
@@ -8484,13 +7689,10 @@ public interface InstancePolicyOrTemplateOrBuilder
      * 
* * string instance_template = 2; - * * @return The instanceTemplate. */ java.lang.String getInstanceTemplate(); /** - * - * *
      * Name of an instance template used to create VMs.
      * Named the field as 'instance_template' instead of 'template' to avoid
@@ -8498,14 +7700,12 @@ public interface InstancePolicyOrTemplateOrBuilder
      * 
* * string instance_template = 2; - * * @return The bytes for instanceTemplate. */ - com.google.protobuf.ByteString getInstanceTemplateBytes(); + com.google.protobuf.ByteString + getInstanceTemplateBytes(); /** - * - * *
      * Set this field true if users want Batch to help fetch drivers from a
      * third party location and install them for GPUs specified in
@@ -8520,17 +7720,13 @@ public interface InstancePolicyOrTemplateOrBuilder
      * 
* * bool install_gpu_drivers = 3; - * * @return The installGpuDrivers. */ boolean getInstallGpuDrivers(); - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.PolicyTemplateCase - getPolicyTemplateCase(); + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.PolicyTemplateCase getPolicyTemplateCase(); } /** - * - * *
    * InstancePolicyOrTemplate lets you define the type of resources to use for
    * this job either with an InstancePolicy or an instance template.
@@ -8540,53 +7736,48 @@ public interface InstancePolicyOrTemplateOrBuilder
    *
    * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate}
    */
-  public static final class InstancePolicyOrTemplate extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class InstancePolicyOrTemplate extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate)
       InstancePolicyOrTemplateOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use InstancePolicyOrTemplate.newBuilder() to construct.
     private InstancePolicyOrTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private InstancePolicyOrTemplate() {}
+    private InstancePolicyOrTemplate() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new InstancePolicyOrTemplate();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_fieldAccessorTable
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.class,
-              com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder.class);
+              com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.class, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder.class);
     }
 
     private int policyTemplateCase_ = 0;
-
     @SuppressWarnings("serial")
     private java.lang.Object policyTemplate_;
-
     public enum PolicyTemplateCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       POLICY(1),
       INSTANCE_TEMPLATE(2),
       POLICYTEMPLATE_NOT_SET(0);
       private final int value;
-
       private PolicyTemplateCase(int value) {
         this.value = value;
       }
@@ -8602,36 +7793,30 @@ public static PolicyTemplateCase valueOf(int value) {
 
       public static PolicyTemplateCase forNumber(int value) {
         switch (value) {
-          case 1:
-            return POLICY;
-          case 2:
-            return INSTANCE_TEMPLATE;
-          case 0:
-            return POLICYTEMPLATE_NOT_SET;
-          default:
-            return null;
+          case 1: return POLICY;
+          case 2: return INSTANCE_TEMPLATE;
+          case 0: return POLICYTEMPLATE_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public PolicyTemplateCase getPolicyTemplateCase() {
-      return PolicyTemplateCase.forNumber(policyTemplateCase_);
+    public PolicyTemplateCase
+    getPolicyTemplateCase() {
+      return PolicyTemplateCase.forNumber(
+          policyTemplateCase_);
     }
 
     public static final int POLICY_FIELD_NUMBER = 1;
     /**
-     *
-     *
      * 
      * InstancePolicy.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -8639,26 +7824,21 @@ public boolean hasPolicy() { return policyTemplateCase_ == 1; } /** - * - * *
      * InstancePolicy.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1; - * * @return The policy. */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy getPolicy() { if (policyTemplateCase_ == 1) { - return (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_; + return (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_; } return com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.getDefaultInstance(); } /** - * - * *
      * InstancePolicy.
      * 
@@ -8668,15 +7848,13 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy getPolicy() { @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder getPolicyOrBuilder() { if (policyTemplateCase_ == 1) { - return (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_; + return (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_; } return com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.getDefaultInstance(); } public static final int INSTANCE_TEMPLATE_FIELD_NUMBER = 2; /** - * - * *
      * Name of an instance template used to create VMs.
      * Named the field as 'instance_template' instead of 'template' to avoid
@@ -8684,15 +7862,12 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder getPol
      * 
* * string instance_template = 2; - * * @return Whether the instanceTemplate field is set. */ public boolean hasInstanceTemplate() { return policyTemplateCase_ == 2; } /** - * - * *
      * Name of an instance template used to create VMs.
      * Named the field as 'instance_template' instead of 'template' to avoid
@@ -8700,7 +7875,6 @@ public boolean hasInstanceTemplate() {
      * 
* * string instance_template = 2; - * * @return The instanceTemplate. */ public java.lang.String getInstanceTemplate() { @@ -8711,7 +7885,8 @@ public java.lang.String getInstanceTemplate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (policyTemplateCase_ == 2) { policyTemplate_ = s; @@ -8720,8 +7895,6 @@ public java.lang.String getInstanceTemplate() { } } /** - * - * *
      * Name of an instance template used to create VMs.
      * Named the field as 'instance_template' instead of 'template' to avoid
@@ -8729,17 +7902,18 @@ public java.lang.String getInstanceTemplate() {
      * 
* * string instance_template = 2; - * * @return The bytes for instanceTemplate. */ - public com.google.protobuf.ByteString getInstanceTemplateBytes() { + public com.google.protobuf.ByteString + getInstanceTemplateBytes() { java.lang.Object ref = ""; if (policyTemplateCase_ == 2) { ref = policyTemplate_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (policyTemplateCase_ == 2) { policyTemplate_ = b; } @@ -8752,8 +7926,6 @@ public com.google.protobuf.ByteString getInstanceTemplateBytes() { public static final int INSTALL_GPU_DRIVERS_FIELD_NUMBER = 3; private boolean installGpuDrivers_ = false; /** - * - * *
      * Set this field true if users want Batch to help fetch drivers from a
      * third party location and install them for GPUs specified in
@@ -8768,7 +7940,6 @@ public com.google.protobuf.ByteString getInstanceTemplateBytes() {
      * 
* * bool install_gpu_drivers = 3; - * * @return The installGpuDrivers. */ @java.lang.Override @@ -8777,7 +7948,6 @@ public boolean getInstallGpuDrivers() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8789,10 +7959,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (policyTemplateCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_); + output.writeMessage(1, (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_); } if (policyTemplateCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, policyTemplate_); @@ -8810,15 +7980,15 @@ public int getSerializedSize() { size = 0; if (policyTemplateCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_); } if (policyTemplateCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, policyTemplate_); } if (installGpuDrivers_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, installGpuDrivers_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, installGpuDrivers_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8828,22 +7998,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.batch.v1.AllocationPolicy.InstancePolicyOrTemplate)) { return super.equals(obj); } - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate other = - (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) obj; + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate other = (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) obj; - if (getInstallGpuDrivers() != other.getInstallGpuDrivers()) return false; + if (getInstallGpuDrivers() + != other.getInstallGpuDrivers()) return false; if (!getPolicyTemplateCase().equals(other.getPolicyTemplateCase())) return false; switch (policyTemplateCase_) { case 1: - if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicy() + .equals(other.getPolicy())) return false; break; case 2: - if (!getInstanceTemplate().equals(other.getInstanceTemplate())) return false; + if (!getInstanceTemplate() + .equals(other.getInstanceTemplate())) return false; break; case 0: default: @@ -8860,7 +8032,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INSTALL_GPU_DRIVERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInstallGpuDrivers()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInstallGpuDrivers()); switch (policyTemplateCase_) { case 1: hash = (37 * hash) + POLICY_FIELD_NUMBER; @@ -8879,95 +8052,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - 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.batch.v1.AllocationPolicy.InstancePolicyOrTemplate 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.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8977,8 +8144,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * InstancePolicyOrTemplate lets you define the type of resources to use for
      * this job either with an InstancePolicy or an instance template.
@@ -8988,34 +8153,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate)
         com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_fieldAccessorTable
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.class,
-                com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder.class);
+                com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.class, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.newBuilder()
+      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();
@@ -9030,16 +8194,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate
-          getDefaultInstanceForType() {
-        return com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate
-            .getDefaultInstance();
+      public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate getDefaultInstanceForType() {
+        return com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -9053,29 +8215,25 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate build
 
       @java.lang.Override
       public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate buildPartial() {
-        com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate result =
-            new com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate result = new com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate result) {
+      private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.installGpuDrivers_ = installGpuDrivers_;
         }
       }
 
-      private void buildPartialOneofs(
-          com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate result) {
+      private void buildPartialOneofs(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate result) {
         result.policyTemplateCase_ = policyTemplateCase_;
         result.policyTemplate_ = this.policyTemplate_;
-        if (policyTemplateCase_ == 1 && policyBuilder_ != null) {
+        if (policyTemplateCase_ == 1 &&
+            policyBuilder_ != null) {
           result.policyTemplate_ = policyBuilder_.build();
         }
       }
@@ -9084,73 +8242,63 @@ private void buildPartialOneofs(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) {
-          return mergeFrom(
-              (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) other);
+          return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate other) {
-        if (other
-            == com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate other) {
+        if (other == com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.getDefaultInstance()) return this;
         if (other.getInstallGpuDrivers() != false) {
           setInstallGpuDrivers(other.getInstallGpuDrivers());
         }
         switch (other.getPolicyTemplateCase()) {
-          case POLICY:
-            {
-              mergePolicy(other.getPolicy());
-              break;
-            }
-          case INSTANCE_TEMPLATE:
-            {
-              policyTemplateCase_ = 2;
-              policyTemplate_ = other.policyTemplate_;
-              onChanged();
-              break;
-            }
-          case POLICYTEMPLATE_NOT_SET:
-            {
-              break;
-            }
+          case POLICY: {
+            mergePolicy(other.getPolicy());
+            break;
+          }
+          case INSTANCE_TEMPLATE: {
+            policyTemplateCase_ = 2;
+            policyTemplate_ = other.policyTemplate_;
+            onChanged();
+            break;
+          }
+          case POLICYTEMPLATE_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -9178,32 +8326,30 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry);
-                  policyTemplateCase_ = 1;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  policyTemplateCase_ = 2;
-                  policyTemplate_ = s;
-                  break;
-                } // case 18
-              case 24:
-                {
-                  installGpuDrivers_ = input.readBool();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 24
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getPolicyFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                policyTemplateCase_ = 1;
+                break;
+              } // case 10
+              case 18: {
+                java.lang.String s = input.readStringRequireUtf8();
+                policyTemplateCase_ = 2;
+                policyTemplate_ = s;
+                break;
+              } // case 18
+              case 24: {
+                installGpuDrivers_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                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) {
@@ -9213,12 +8359,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int policyTemplateCase_ = 0;
       private java.lang.Object policyTemplate_;
-
-      public PolicyTemplateCase getPolicyTemplateCase() {
-        return PolicyTemplateCase.forNumber(policyTemplateCase_);
+      public PolicyTemplateCase
+          getPolicyTemplateCase() {
+        return PolicyTemplateCase.forNumber(
+            policyTemplateCase_);
       }
 
       public Builder clearPolicyTemplate() {
@@ -9231,19 +8377,13 @@ public Builder clearPolicyTemplate() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy,
-              com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder,
-              com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder>
-          policyBuilder_;
+          com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder> policyBuilder_;
       /**
-       *
-       *
        * 
        * InstancePolicy.
        * 
* * .google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -9251,14 +8391,11 @@ public boolean hasPolicy() { return policyTemplateCase_ == 1; } /** - * - * *
        * InstancePolicy.
        * 
* * .google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1; - * * @return The policy. */ @java.lang.Override @@ -9276,8 +8413,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy getPolicy() { } } /** - * - * *
        * InstancePolicy.
        * 
@@ -9298,8 +8433,6 @@ public Builder setPolicy(com.google.cloud.batch.v1.AllocationPolicy.InstancePoli return this; } /** - * - * *
        * InstancePolicy.
        * 
@@ -9318,8 +8451,6 @@ public Builder setPolicy( return this; } /** - * - * *
        * InstancePolicy.
        * 
@@ -9328,15 +8459,10 @@ public Builder setPolicy( */ public Builder mergePolicy(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy value) { if (policyBuilder_ == null) { - if (policyTemplateCase_ == 1 - && policyTemplate_ - != com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy - .getDefaultInstance()) { - policyTemplate_ = - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.newBuilder( - (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_) - .mergeFrom(value) - .buildPartial(); + if (policyTemplateCase_ == 1 && + policyTemplate_ != com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.getDefaultInstance()) { + policyTemplate_ = com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.newBuilder((com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_) + .mergeFrom(value).buildPartial(); } else { policyTemplate_ = value; } @@ -9352,8 +8478,6 @@ public Builder mergePolicy(com.google.cloud.batch.v1.AllocationPolicy.InstancePo return this; } /** - * - * *
        * InstancePolicy.
        * 
@@ -9377,8 +8501,6 @@ public Builder clearPolicy() { return this; } /** - * - * *
        * InstancePolicy.
        * 
@@ -9389,8 +8511,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder getPoli return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
        * InstancePolicy.
        * 
@@ -9398,8 +8518,7 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder getPoli * .google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1; */ @java.lang.Override - public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder - getPolicyOrBuilder() { + public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder getPolicyOrBuilder() { if ((policyTemplateCase_ == 1) && (policyBuilder_ != null)) { return policyBuilder_.getMessageOrBuilder(); } else { @@ -9410,8 +8529,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder getPoli } } /** - * - * *
        * InstancePolicy.
        * 
@@ -9419,20 +8536,14 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder getPoli * .google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder> + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { if (!(policyTemplateCase_ == 1)) { - policyTemplate_ = - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.getDefaultInstance(); + policyTemplate_ = com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.getDefaultInstance(); } - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder>( + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrBuilder>( (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_, getParentForChildren(), isClean()); @@ -9444,8 +8555,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder getPoli } /** - * - * *
        * Name of an instance template used to create VMs.
        * Named the field as 'instance_template' instead of 'template' to avoid
@@ -9453,7 +8562,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder getPoli
        * 
* * string instance_template = 2; - * * @return Whether the instanceTemplate field is set. */ @java.lang.Override @@ -9461,8 +8569,6 @@ public boolean hasInstanceTemplate() { return policyTemplateCase_ == 2; } /** - * - * *
        * Name of an instance template used to create VMs.
        * Named the field as 'instance_template' instead of 'template' to avoid
@@ -9470,7 +8576,6 @@ public boolean hasInstanceTemplate() {
        * 
* * string instance_template = 2; - * * @return The instanceTemplate. */ @java.lang.Override @@ -9480,7 +8585,8 @@ public java.lang.String getInstanceTemplate() { ref = policyTemplate_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (policyTemplateCase_ == 2) { policyTemplate_ = s; @@ -9491,8 +8597,6 @@ public java.lang.String getInstanceTemplate() { } } /** - * - * *
        * Name of an instance template used to create VMs.
        * Named the field as 'instance_template' instead of 'template' to avoid
@@ -9500,18 +8604,19 @@ public java.lang.String getInstanceTemplate() {
        * 
* * string instance_template = 2; - * * @return The bytes for instanceTemplate. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceTemplateBytes() { + public com.google.protobuf.ByteString + getInstanceTemplateBytes() { java.lang.Object ref = ""; if (policyTemplateCase_ == 2) { ref = policyTemplate_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (policyTemplateCase_ == 2) { policyTemplate_ = b; } @@ -9521,8 +8626,6 @@ public com.google.protobuf.ByteString getInstanceTemplateBytes() { } } /** - * - * *
        * Name of an instance template used to create VMs.
        * Named the field as 'instance_template' instead of 'template' to avoid
@@ -9530,22 +8633,18 @@ public com.google.protobuf.ByteString getInstanceTemplateBytes() {
        * 
* * string instance_template = 2; - * * @param value The instanceTemplate to set. * @return This builder for chaining. */ - public Builder setInstanceTemplate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceTemplate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } policyTemplateCase_ = 2; policyTemplate_ = value; onChanged(); return this; } /** - * - * *
        * Name of an instance template used to create VMs.
        * Named the field as 'instance_template' instead of 'template' to avoid
@@ -9553,7 +8652,6 @@ public Builder setInstanceTemplate(java.lang.String value) {
        * 
* * string instance_template = 2; - * * @return This builder for chaining. */ public Builder clearInstanceTemplate() { @@ -9565,8 +8663,6 @@ public Builder clearInstanceTemplate() { return this; } /** - * - * *
        * Name of an instance template used to create VMs.
        * Named the field as 'instance_template' instead of 'template' to avoid
@@ -9574,14 +8670,12 @@ public Builder clearInstanceTemplate() {
        * 
* * string instance_template = 2; - * * @param value The bytes for instanceTemplate to set. * @return This builder for chaining. */ - public Builder setInstanceTemplateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceTemplateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyTemplateCase_ = 2; policyTemplate_ = value; @@ -9589,10 +8683,8 @@ public Builder setInstanceTemplateBytes(com.google.protobuf.ByteString value) { return this; } - private boolean installGpuDrivers_; + private boolean installGpuDrivers_ ; /** - * - * *
        * Set this field true if users want Batch to help fetch drivers from a
        * third party location and install them for GPUs specified in
@@ -9607,7 +8699,6 @@ public Builder setInstanceTemplateBytes(com.google.protobuf.ByteString value) {
        * 
* * bool install_gpu_drivers = 3; - * * @return The installGpuDrivers. */ @java.lang.Override @@ -9615,8 +8706,6 @@ public boolean getInstallGpuDrivers() { return installGpuDrivers_; } /** - * - * *
        * Set this field true if users want Batch to help fetch drivers from a
        * third party location and install them for GPUs specified in
@@ -9631,7 +8720,6 @@ public boolean getInstallGpuDrivers() {
        * 
* * bool install_gpu_drivers = 3; - * * @param value The installGpuDrivers to set. * @return This builder for chaining. */ @@ -9643,8 +8731,6 @@ public Builder setInstallGpuDrivers(boolean value) { return this; } /** - * - * *
        * Set this field true if users want Batch to help fetch drivers from a
        * third party location and install them for GPUs specified in
@@ -9659,7 +8745,6 @@ public Builder setInstallGpuDrivers(boolean value) {
        * 
* * bool install_gpu_drivers = 3; - * * @return This builder for chaining. */ public Builder clearInstallGpuDrivers() { @@ -9668,7 +8753,6 @@ public Builder clearInstallGpuDrivers() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9681,44 +8765,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) - private static final com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - DEFAULT_INSTANCE; - + private static final com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate(); } - public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - getDefaultInstance() { + public static com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstancePolicyOrTemplate 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 InstancePolicyOrTemplate 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; @@ -9730,20 +8811,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - getDefaultInstanceForType() { + public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface NetworkInterfaceOrBuilder - extends + public interface NetworkInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.NetworkInterface) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The URL of an existing network resource.
      * You can specify the network as a full or partial URL.
@@ -9756,13 +8834,10 @@ public interface NetworkInterfaceOrBuilder
      * 
* * string network = 1; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
      * The URL of an existing network resource.
      * You can specify the network as a full or partial URL.
@@ -9775,14 +8850,12 @@ public interface NetworkInterfaceOrBuilder
      * 
* * string network = 1; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
      * The URL of an existing subnetwork resource in the network.
      * You can specify the subnetwork as a full or partial URL.
@@ -9795,13 +8868,10 @@ public interface NetworkInterfaceOrBuilder
      * 
* * string subnetwork = 2; - * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** - * - * *
      * The URL of an existing subnetwork resource in the network.
      * You can specify the subnetwork as a full or partial URL.
@@ -9814,14 +8884,12 @@ public interface NetworkInterfaceOrBuilder
      * 
* * string subnetwork = 2; - * * @return The bytes for subnetwork. */ - com.google.protobuf.ByteString getSubnetworkBytes(); + com.google.protobuf.ByteString + getSubnetworkBytes(); /** - * - * *
      * Default is false (with an external IP address). Required if
      * no external public IP address is attached to the VM. If no external
@@ -9833,30 +8901,26 @@ public interface NetworkInterfaceOrBuilder
      * 
* * bool no_external_ip_address = 3; - * * @return The noExternalIpAddress. */ boolean getNoExternalIpAddress(); } - /** - * - * + /** *
    * A network interface.
    * 
* * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.NetworkInterface} */ - public static final class NetworkInterface extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class NetworkInterface extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.NetworkInterface) NetworkInterfaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkInterface.newBuilder() to construct. private NetworkInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkInterface() { network_ = ""; subnetwork_ = ""; @@ -9864,32 +8928,28 @@ private NetworkInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkInterface(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.class, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder.class); + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.class, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** - * - * *
      * The URL of an existing network resource.
      * You can specify the network as a full or partial URL.
@@ -9902,7 +8962,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string network = 1; - * * @return The network. */ @java.lang.Override @@ -9911,15 +8970,14 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
      * The URL of an existing network resource.
      * You can specify the network as a full or partial URL.
@@ -9932,15 +8990,16 @@ public java.lang.String getNetwork() {
      * 
* * string network = 1; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -9949,12 +9008,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int SUBNETWORK_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object subnetwork_ = ""; /** - * - * *
      * The URL of an existing subnetwork resource in the network.
      * You can specify the subnetwork as a full or partial URL.
@@ -9967,7 +9023,6 @@ public com.google.protobuf.ByteString getNetworkBytes() {
      * 
* * string subnetwork = 2; - * * @return The subnetwork. */ @java.lang.Override @@ -9976,15 +9031,14 @@ public java.lang.String getSubnetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; } } /** - * - * *
      * The URL of an existing subnetwork resource in the network.
      * You can specify the subnetwork as a full or partial URL.
@@ -9997,15 +9051,16 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 2; - * * @return The bytes for subnetwork. */ @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkBytes() { + public com.google.protobuf.ByteString + getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -10016,8 +9071,6 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { public static final int NO_EXTERNAL_IP_ADDRESS_FIELD_NUMBER = 3; private boolean noExternalIpAddress_ = false; /** - * - * *
      * Default is false (with an external IP address). Required if
      * no external public IP address is attached to the VM. If no external
@@ -10029,7 +9082,6 @@ public com.google.protobuf.ByteString getSubnetworkBytes() {
      * 
* * bool no_external_ip_address = 3; - * * @return The noExternalIpAddress. */ @java.lang.Override @@ -10038,7 +9090,6 @@ public boolean getNoExternalIpAddress() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10050,7 +9101,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(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); } @@ -10076,7 +9128,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); } if (noExternalIpAddress_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, noExternalIpAddress_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, noExternalIpAddress_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10086,17 +9139,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.batch.v1.AllocationPolicy.NetworkInterface)) { return super.equals(obj); } - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface other = - (com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface) obj; + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface other = (com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface) obj; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getSubnetwork().equals(other.getSubnetwork())) return false; - if (getNoExternalIpAddress() != other.getNoExternalIpAddress()) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getSubnetwork() + .equals(other.getSubnetwork())) return false; + if (getNoExternalIpAddress() + != other.getNoExternalIpAddress()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10113,101 +9168,97 @@ public int hashCode() { hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; hash = (53 * hash) + getSubnetwork().hashCode(); hash = (37 * hash) + NO_EXTERNAL_IP_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoExternalIpAddress()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNoExternalIpAddress()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10217,41 +9268,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A network interface.
      * 
* * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.NetworkInterface} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.NetworkInterface) com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.class, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder.class); + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.class, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder.class); } // Construct using com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.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(); @@ -10263,14 +9312,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor; } @java.lang.Override - public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface - getDefaultInstanceForType() { + public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface getDefaultInstanceForType() { return com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.getDefaultInstance(); } @@ -10285,17 +9333,13 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface build() { @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface buildPartial() { - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface result = - new com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface result = new com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface result) { + private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.network_ = network_; @@ -10312,41 +9356,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface) { - return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface) other); + return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface)other); } else { super.mergeFrom(other); return this; @@ -10354,9 +9395,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface other) { - if (other - == com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.getDefaultInstance()) - return this; + if (other == com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; bitField0_ |= 0x00000001; @@ -10396,31 +9435,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - noExternalIpAddress_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + noExternalIpAddress_ = input.readBool(); + bitField0_ |= 0x00000004; + 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) { @@ -10430,13 +9465,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object network_ = ""; /** - * - * *
        * The URL of an existing network resource.
        * You can specify the network as a full or partial URL.
@@ -10449,13 +9481,13 @@ public Builder mergeFrom(
        * 
* * string network = 1; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -10464,8 +9496,6 @@ public java.lang.String getNetwork() { } } /** - * - * *
        * The URL of an existing network resource.
        * You can specify the network as a full or partial URL.
@@ -10478,14 +9508,15 @@ public java.lang.String getNetwork() {
        * 
* * string network = 1; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -10493,8 +9524,6 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
        * The URL of an existing network resource.
        * You can specify the network as a full or partial URL.
@@ -10507,22 +9536,18 @@ public com.google.protobuf.ByteString getNetworkBytes() {
        * 
* * string network = 1; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } network_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The URL of an existing network resource.
        * You can specify the network as a full or partial URL.
@@ -10535,7 +9560,6 @@ public Builder setNetwork(java.lang.String value) {
        * 
* * string network = 1; - * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -10545,8 +9569,6 @@ public Builder clearNetwork() { return this; } /** - * - * *
        * The URL of an existing network resource.
        * You can specify the network as a full or partial URL.
@@ -10559,14 +9581,12 @@ public Builder clearNetwork() {
        * 
* * string network = 1; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000001; @@ -10576,8 +9596,6 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object subnetwork_ = ""; /** - * - * *
        * The URL of an existing subnetwork resource in the network.
        * You can specify the subnetwork as a full or partial URL.
@@ -10590,13 +9608,13 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
        * 
* * string subnetwork = 2; - * * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; @@ -10605,8 +9623,6 @@ public java.lang.String getSubnetwork() { } } /** - * - * *
        * The URL of an existing subnetwork resource in the network.
        * You can specify the subnetwork as a full or partial URL.
@@ -10619,14 +9635,15 @@ public java.lang.String getSubnetwork() {
        * 
* * string subnetwork = 2; - * * @return The bytes for subnetwork. */ - public com.google.protobuf.ByteString getSubnetworkBytes() { + public com.google.protobuf.ByteString + getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -10634,8 +9651,6 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { } } /** - * - * *
        * The URL of an existing subnetwork resource in the network.
        * You can specify the subnetwork as a full or partial URL.
@@ -10648,22 +9663,18 @@ public com.google.protobuf.ByteString getSubnetworkBytes() {
        * 
* * string subnetwork = 2; - * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subnetwork_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The URL of an existing subnetwork resource in the network.
        * You can specify the subnetwork as a full or partial URL.
@@ -10676,7 +9687,6 @@ public Builder setSubnetwork(java.lang.String value) {
        * 
* * string subnetwork = 2; - * * @return This builder for chaining. */ public Builder clearSubnetwork() { @@ -10686,8 +9696,6 @@ public Builder clearSubnetwork() { return this; } /** - * - * *
        * The URL of an existing subnetwork resource in the network.
        * You can specify the subnetwork as a full or partial URL.
@@ -10700,14 +9708,12 @@ public Builder clearSubnetwork() {
        * 
* * string subnetwork = 2; - * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetwork_ = value; bitField0_ |= 0x00000002; @@ -10715,10 +9721,8 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { return this; } - private boolean noExternalIpAddress_; + private boolean noExternalIpAddress_ ; /** - * - * *
        * Default is false (with an external IP address). Required if
        * no external public IP address is attached to the VM. If no external
@@ -10730,7 +9734,6 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) {
        * 
* * bool no_external_ip_address = 3; - * * @return The noExternalIpAddress. */ @java.lang.Override @@ -10738,8 +9741,6 @@ public boolean getNoExternalIpAddress() { return noExternalIpAddress_; } /** - * - * *
        * Default is false (with an external IP address). Required if
        * no external public IP address is attached to the VM. If no external
@@ -10751,7 +9752,6 @@ public boolean getNoExternalIpAddress() {
        * 
* * bool no_external_ip_address = 3; - * * @param value The noExternalIpAddress to set. * @return This builder for chaining. */ @@ -10763,8 +9763,6 @@ public Builder setNoExternalIpAddress(boolean value) { return this; } /** - * - * *
        * Default is false (with an external IP address). Required if
        * no external public IP address is attached to the VM. If no external
@@ -10776,7 +9774,6 @@ public Builder setNoExternalIpAddress(boolean value) {
        * 
* * bool no_external_ip_address = 3; - * * @return This builder for chaining. */ public Builder clearNoExternalIpAddress() { @@ -10785,7 +9782,6 @@ public Builder clearNoExternalIpAddress() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10798,13 +9794,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.NetworkInterface) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.NetworkInterface) - private static final com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface - DEFAULT_INSTANCE; - + private static final com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface(); } @@ -10813,28 +9808,27 @@ public static com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkInterface 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 NetworkInterface 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; @@ -10849,209 +9843,159 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface NetworkPolicyOrBuilder - extends + public interface NetworkPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Network configurations.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - java.util.List + java.util.List getNetworkInterfacesList(); /** - * - * *
      * Network configurations.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface getNetworkInterfaces(int index); /** - * - * *
      * Network configurations.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ int getNetworkInterfacesCount(); /** - * - * *
      * Network configurations.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - java.util.List + java.util.List getNetworkInterfacesOrBuilderList(); /** - * - * *
      * Network configurations.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder - getNetworkInterfacesOrBuilder(int index); + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( + int index); } /** - * - * *
    * NetworkPolicy describes VM instance network configurations.
    * 
* * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} */ - public static final class NetworkPolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class NetworkPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) NetworkPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NetworkPolicy.newBuilder() to construct. private NetworkPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NetworkPolicy() { networkInterfaces_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkPolicy(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.class, - com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder.class); + com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.class, com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder.class); } public static final int NETWORK_INTERFACES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - networkInterfaces_; + private java.util.List networkInterfaces_; /** - * - * *
      * Network configurations.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ @java.lang.Override - public java.util.List - getNetworkInterfacesList() { + public java.util.List getNetworkInterfacesList() { return networkInterfaces_; } /** - * - * *
      * Network configurations.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder> + public java.util.List getNetworkInterfacesOrBuilderList() { return networkInterfaces_; } /** - * - * *
      * Network configurations.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ @java.lang.Override public int getNetworkInterfacesCount() { return networkInterfaces_.size(); } /** - * - * *
      * Network configurations.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ @java.lang.Override - public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface getNetworkInterfaces( - int index) { + public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface getNetworkInterfaces(int index) { return networkInterfaces_.get(index); } /** - * - * *
      * Network configurations.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ @java.lang.Override - public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder - getNetworkInterfacesOrBuilder(int index) { + public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( + int index) { return networkInterfaces_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11063,7 +10007,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 < networkInterfaces_.size(); i++) { output.writeMessage(1, networkInterfaces_.get(i)); } @@ -11077,8 +10022,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < networkInterfaces_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, networkInterfaces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, networkInterfaces_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -11088,15 +10033,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.batch.v1.AllocationPolicy.NetworkPolicy)) { return super.equals(obj); } - com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy other = - (com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) obj; + com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy other = (com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) obj; - if (!getNetworkInterfacesList().equals(other.getNetworkInterfacesList())) return false; + if (!getNetworkInterfacesList() + .equals(other.getNetworkInterfacesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11118,94 +10063,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -11215,41 +10155,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * NetworkPolicy describes VM instance network configurations.
      * 
* * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.NetworkPolicy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.class, - com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder.class); + com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.class, com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder.class); } // Construct using com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.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(); @@ -11265,9 +10203,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor; } @java.lang.Override @@ -11286,18 +10224,14 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy build() { @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy buildPartial() { - com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy result = - new com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy(this); + com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy result = new com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy result) { + private void buildPartialRepeatedFields(com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy result) { if (networkInterfacesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { networkInterfaces_ = java.util.Collections.unmodifiableList(networkInterfaces_); @@ -11317,41 +10251,38 @@ private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy.NetworkPol public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) { - return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) other); + return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy)other); } else { super.mergeFrom(other); return this; @@ -11359,8 +10290,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy other) { - if (other == com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance()) - return this; + if (other == com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance()) return this; if (networkInterfacesBuilder_ == null) { if (!other.networkInterfaces_.isEmpty()) { if (networkInterfaces_.isEmpty()) { @@ -11379,10 +10309,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.NetworkPolic networkInterfacesBuilder_ = null; networkInterfaces_ = other.networkInterfaces_; bitField0_ = (bitField0_ & ~0x00000001); - networkInterfacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNetworkInterfacesFieldBuilder() - : null; + networkInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNetworkInterfacesFieldBuilder() : null; } else { networkInterfacesBuilder_.addAllMessages(other.networkInterfaces_); } @@ -11414,27 +10343,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface m = - input.readMessage( - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.parser(), - extensionRegistry); - if (networkInterfacesBuilder_ == null) { - ensureNetworkInterfacesIsMutable(); - networkInterfaces_.add(m); - } else { - networkInterfacesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface m = + input.readMessage( + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.parser(), + extensionRegistry); + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(m); + } else { + networkInterfacesBuilder_.addMessage(m); + } + 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) { @@ -11444,40 +10371,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - networkInterfaces_ = java.util.Collections.emptyList(); - + private java.util.List networkInterfaces_ = + java.util.Collections.emptyList(); private void ensureNetworkInterfacesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - networkInterfaces_ = - new java.util.ArrayList( - networkInterfaces_); + networkInterfaces_ = new java.util.ArrayList(networkInterfaces_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder> - networkInterfacesBuilder_; + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder> networkInterfacesBuilder_; /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - public java.util.List - getNetworkInterfacesList() { + public java.util.List getNetworkInterfacesList() { if (networkInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(networkInterfaces_); } else { @@ -11485,15 +10400,11 @@ private void ensureNetworkInterfacesIsMutable() { } } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ public int getNetworkInterfacesCount() { if (networkInterfacesBuilder_ == null) { @@ -11503,18 +10414,13 @@ public int getNetworkInterfacesCount() { } } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface getNetworkInterfaces( - int index) { + public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface getNetworkInterfaces(int index) { if (networkInterfacesBuilder_ == null) { return networkInterfaces_.get(index); } else { @@ -11522,15 +10428,11 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface getNetworkInt } } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ public Builder setNetworkInterfaces( int index, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface value) { @@ -11547,19 +10449,14 @@ public Builder setNetworkInterfaces( return this; } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ public Builder setNetworkInterfaces( - int index, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder builderForValue) { + int index, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder builderForValue) { if (networkInterfacesBuilder_ == null) { ensureNetworkInterfacesIsMutable(); networkInterfaces_.set(index, builderForValue.build()); @@ -11570,18 +10467,13 @@ public Builder setNetworkInterfaces( return this; } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - public Builder addNetworkInterfaces( - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface value) { + public Builder addNetworkInterfaces(com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface value) { if (networkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11595,15 +10487,11 @@ public Builder addNetworkInterfaces( return this; } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ public Builder addNetworkInterfaces( int index, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface value) { @@ -11620,15 +10508,11 @@ public Builder addNetworkInterfaces( return this; } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ public Builder addNetworkInterfaces( com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder builderForValue) { @@ -11642,19 +10526,14 @@ public Builder addNetworkInterfaces( return this; } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ public Builder addNetworkInterfaces( - int index, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder builderForValue) { + int index, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder builderForValue) { if (networkInterfacesBuilder_ == null) { ensureNetworkInterfacesIsMutable(); networkInterfaces_.add(index, builderForValue.build()); @@ -11665,22 +10544,18 @@ public Builder addNetworkInterfaces( return this; } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ public Builder addAllNetworkInterfaces( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (networkInterfacesBuilder_ == null) { ensureNetworkInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkInterfaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networkInterfaces_); onChanged(); } else { networkInterfacesBuilder_.addAllMessages(values); @@ -11688,15 +10563,11 @@ public Builder addAllNetworkInterfaces( return this; } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ public Builder clearNetworkInterfaces() { if (networkInterfacesBuilder_ == null) { @@ -11709,15 +10580,11 @@ public Builder clearNetworkInterfaces() { return this; } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ public Builder removeNetworkInterfaces(int index) { if (networkInterfacesBuilder_ == null) { @@ -11730,53 +10597,39 @@ public Builder removeNetworkInterfaces(int index) { return this; } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder - getNetworkInterfacesBuilder(int index) { + public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder getNetworkInterfacesBuilder( + int index) { return getNetworkInterfacesFieldBuilder().getBuilder(index); } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder - getNetworkInterfacesOrBuilder(int index) { + public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( + int index) { if (networkInterfacesBuilder_ == null) { - return networkInterfaces_.get(index); - } else { + return networkInterfaces_.get(index); } else { return networkInterfacesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - public java.util.List< - ? extends com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder> - getNetworkInterfacesOrBuilderList() { + public java.util.List + getNetworkInterfacesOrBuilderList() { if (networkInterfacesBuilder_ != null) { return networkInterfacesBuilder_.getMessageOrBuilderList(); } else { @@ -11784,67 +10637,45 @@ public Builder removeNetworkInterfaces(int index) { } } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder - addNetworkInterfacesBuilder() { - return getNetworkInterfacesFieldBuilder() - .addBuilder( - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.getDefaultInstance()); + public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder addNetworkInterfacesBuilder() { + return getNetworkInterfacesFieldBuilder().addBuilder( + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.getDefaultInstance()); } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder - addNetworkInterfacesBuilder(int index) { - return getNetworkInterfacesFieldBuilder() - .addBuilder( - index, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.getDefaultInstance()); + public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder addNetworkInterfacesBuilder( + int index) { + return getNetworkInterfacesFieldBuilder().addBuilder( + index, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.getDefaultInstance()); } /** - * - * *
        * Network configurations.
        * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.NetworkInterface network_interfaces = 1; */ - public java.util.List - getNetworkInterfacesBuilderList() { + public java.util.List + getNetworkInterfacesBuilderList() { return getNetworkInterfacesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder> + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder> getNetworkInterfacesFieldBuilder() { if (networkInterfacesBuilder_ == null) { - networkInterfacesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder, - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder>( + networkInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder, com.google.cloud.batch.v1.AllocationPolicy.NetworkInterfaceOrBuilder>( networkInterfaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -11853,7 +10684,6 @@ public Builder removeNetworkInterfaces(int index) { } return networkInterfacesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11866,12 +10696,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) private static final com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy(); } @@ -11880,28 +10710,27 @@ public static com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkPolicy 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 NetworkPolicy 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; @@ -11916,16 +10745,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface PlacementPolicyOrBuilder - extends + public interface PlacementPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy.PlacementPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
      * want VMs to be located close to each other for low network latency
@@ -11934,13 +10761,10 @@ public interface PlacementPolicyOrBuilder
      * 
* * string collocation = 1; - * * @return The collocation. */ java.lang.String getCollocation(); /** - * - * *
      * UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
      * want VMs to be located close to each other for low network latency
@@ -11949,14 +10773,12 @@ public interface PlacementPolicyOrBuilder
      * 
* * string collocation = 1; - * * @return The bytes for collocation. */ - com.google.protobuf.ByteString getCollocationBytes(); + com.google.protobuf.ByteString + getCollocationBytes(); /** - * - * *
      * When specified, causes the job to fail if more than max_distance logical
      * switches are required between VMs. Batch uses the most compact possible
@@ -11966,14 +10788,11 @@ public interface PlacementPolicyOrBuilder
      * 
* * int64 max_distance = 2; - * * @return The maxDistance. */ long getMaxDistance(); } /** - * - * *
    * PlacementPolicy describes a group placement policy for the VMs controlled
    * by this AllocationPolicy.
@@ -11981,48 +10800,43 @@ public interface PlacementPolicyOrBuilder
    *
    * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.PlacementPolicy}
    */
-  public static final class PlacementPolicy extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class PlacementPolicy extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.AllocationPolicy.PlacementPolicy)
       PlacementPolicyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use PlacementPolicy.newBuilder() to construct.
     private PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private PlacementPolicy() {
       collocation_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new PlacementPolicy();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_fieldAccessorTable
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.class,
-              com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder.class);
+              com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.class, com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder.class);
     }
 
     public static final int COLLOCATION_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object collocation_ = "";
     /**
-     *
-     *
      * 
      * UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
      * want VMs to be located close to each other for low network latency
@@ -12031,7 +10845,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string collocation = 1; - * * @return The collocation. */ @java.lang.Override @@ -12040,15 +10853,14 @@ public java.lang.String getCollocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collocation_ = s; return s; } } /** - * - * *
      * UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
      * want VMs to be located close to each other for low network latency
@@ -12057,15 +10869,16 @@ public java.lang.String getCollocation() {
      * 
* * string collocation = 1; - * * @return The bytes for collocation. */ @java.lang.Override - public com.google.protobuf.ByteString getCollocationBytes() { + public com.google.protobuf.ByteString + getCollocationBytes() { java.lang.Object ref = collocation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collocation_ = b; return b; } else { @@ -12076,8 +10889,6 @@ public com.google.protobuf.ByteString getCollocationBytes() { public static final int MAX_DISTANCE_FIELD_NUMBER = 2; private long maxDistance_ = 0L; /** - * - * *
      * When specified, causes the job to fail if more than max_distance logical
      * switches are required between VMs. Batch uses the most compact possible
@@ -12087,7 +10898,6 @@ public com.google.protobuf.ByteString getCollocationBytes() {
      * 
* * int64 max_distance = 2; - * * @return The maxDistance. */ @java.lang.Override @@ -12096,7 +10906,6 @@ public long getMaxDistance() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12108,7 +10917,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(collocation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collocation_); } @@ -12128,7 +10938,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collocation_); } if (maxDistance_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, maxDistance_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxDistance_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12138,16 +10949,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.batch.v1.AllocationPolicy.PlacementPolicy)) { return super.equals(obj); } - com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy other = - (com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy) obj; + com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy other = (com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy) obj; - if (!getCollocation().equals(other.getCollocation())) return false; - if (getMaxDistance() != other.getMaxDistance()) return false; + if (!getCollocation() + .equals(other.getCollocation())) return false; + if (getMaxDistance() + != other.getMaxDistance()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12162,101 +10974,97 @@ public int hashCode() { hash = (37 * hash) + COLLOCATION_FIELD_NUMBER; hash = (53 * hash) + getCollocation().hashCode(); hash = (37 * hash) + MAX_DISTANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxDistance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxDistance()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -12266,8 +11074,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * PlacementPolicy describes a group placement policy for the VMs controlled
      * by this AllocationPolicy.
@@ -12275,33 +11081,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.PlacementPolicy}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy.PlacementPolicy)
         com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_fieldAccessorTable
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.class,
-                com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder.class);
+                com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.class, com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder.class);
       }
 
       // Construct using com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.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();
@@ -12312,14 +11118,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy
-          getDefaultInstanceForType() {
+      public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy getDefaultInstanceForType() {
         return com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance();
       }
 
@@ -12334,17 +11139,13 @@ public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy build() {
 
       @java.lang.Override
       public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy buildPartial() {
-        com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy result =
-            new com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy result = new com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy result) {
+      private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.collocation_ = collocation_;
@@ -12358,41 +11159,38 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy) {
-          return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy) other);
+          return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -12400,9 +11198,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy other) {
-        if (other
-            == com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance()) return this;
         if (!other.getCollocation().isEmpty()) {
           collocation_ = other.collocation_;
           bitField0_ |= 0x00000001;
@@ -12437,25 +11233,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  collocation_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 16:
-                {
-                  maxDistance_ = input.readInt64();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                collocation_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 16: {
+                maxDistance_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                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) {
@@ -12465,13 +11258,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object collocation_ = "";
       /**
-       *
-       *
        * 
        * UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
        * want VMs to be located close to each other for low network latency
@@ -12480,13 +11270,13 @@ public Builder mergeFrom(
        * 
* * string collocation = 1; - * * @return The collocation. */ public java.lang.String getCollocation() { java.lang.Object ref = collocation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collocation_ = s; return s; @@ -12495,8 +11285,6 @@ public java.lang.String getCollocation() { } } /** - * - * *
        * UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
        * want VMs to be located close to each other for low network latency
@@ -12505,14 +11293,15 @@ public java.lang.String getCollocation() {
        * 
* * string collocation = 1; - * * @return The bytes for collocation. */ - public com.google.protobuf.ByteString getCollocationBytes() { + public com.google.protobuf.ByteString + getCollocationBytes() { java.lang.Object ref = collocation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collocation_ = b; return b; } else { @@ -12520,8 +11309,6 @@ public com.google.protobuf.ByteString getCollocationBytes() { } } /** - * - * *
        * UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
        * want VMs to be located close to each other for low network latency
@@ -12530,22 +11317,18 @@ public com.google.protobuf.ByteString getCollocationBytes() {
        * 
* * string collocation = 1; - * * @param value The collocation to set. * @return This builder for chaining. */ - public Builder setCollocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCollocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } collocation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
        * want VMs to be located close to each other for low network latency
@@ -12554,7 +11337,6 @@ public Builder setCollocation(java.lang.String value) {
        * 
* * string collocation = 1; - * * @return This builder for chaining. */ public Builder clearCollocation() { @@ -12564,8 +11346,6 @@ public Builder clearCollocation() { return this; } /** - * - * *
        * UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
        * want VMs to be located close to each other for low network latency
@@ -12574,14 +11354,12 @@ public Builder clearCollocation() {
        * 
* * string collocation = 1; - * * @param value The bytes for collocation to set. * @return This builder for chaining. */ - public Builder setCollocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCollocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collocation_ = value; bitField0_ |= 0x00000001; @@ -12589,10 +11367,8 @@ public Builder setCollocationBytes(com.google.protobuf.ByteString value) { return this; } - private long maxDistance_; + private long maxDistance_ ; /** - * - * *
        * When specified, causes the job to fail if more than max_distance logical
        * switches are required between VMs. Batch uses the most compact possible
@@ -12602,7 +11378,6 @@ public Builder setCollocationBytes(com.google.protobuf.ByteString value) {
        * 
* * int64 max_distance = 2; - * * @return The maxDistance. */ @java.lang.Override @@ -12610,8 +11385,6 @@ public long getMaxDistance() { return maxDistance_; } /** - * - * *
        * When specified, causes the job to fail if more than max_distance logical
        * switches are required between VMs. Batch uses the most compact possible
@@ -12621,7 +11394,6 @@ public long getMaxDistance() {
        * 
* * int64 max_distance = 2; - * * @param value The maxDistance to set. * @return This builder for chaining. */ @@ -12633,8 +11405,6 @@ public Builder setMaxDistance(long value) { return this; } /** - * - * *
        * When specified, causes the job to fail if more than max_distance logical
        * switches are required between VMs. Batch uses the most compact possible
@@ -12644,7 +11414,6 @@ public Builder setMaxDistance(long value) {
        * 
* * int64 max_distance = 2; - * * @return This builder for chaining. */ public Builder clearMaxDistance() { @@ -12653,7 +11422,6 @@ public Builder clearMaxDistance() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12666,13 +11434,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.PlacementPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy.PlacementPolicy) - private static final com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy - DEFAULT_INSTANCE; - + private static final com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy(); } @@ -12681,28 +11448,27 @@ public static com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlacementPolicy 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 PlacementPolicy 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; @@ -12717,20 +11483,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int LOCATION_FIELD_NUMBER = 1; private com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location_; /** - * - * *
    * Location where compute resources should be allocated for the Job.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1; - * * @return Whether the location field is set. */ @java.lang.Override @@ -12738,25 +11502,18 @@ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Location where compute resources should be allocated for the Job.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1; - * * @return The location. */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy getLocation() { - return location_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance() - : location_; + return location_ == null ? com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance() : location_; } /** - * - * *
    * Location where compute resources should be allocated for the Job.
    * 
@@ -12765,108 +11522,83 @@ public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy getLocation() { */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder() { - return location_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance() - : location_; + return location_ == null ? com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance() : location_; } public static final int INSTANCES_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List - instances_; + private java.util.List instances_; /** - * - * *
    * Describe instances that can be created by this AllocationPolicy.
    * Only instances[0] is supported now.
    * 
* - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ @java.lang.Override - public java.util.List - getInstancesList() { + public java.util.List getInstancesList() { return instances_; } /** - * - * *
    * Describe instances that can be created by this AllocationPolicy.
    * Only instances[0] is supported now.
    * 
* - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder> + public java.util.List getInstancesOrBuilderList() { return instances_; } /** - * - * *
    * Describe instances that can be created by this AllocationPolicy.
    * Only instances[0] is supported now.
    * 
* - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ @java.lang.Override public int getInstancesCount() { return instances_.size(); } /** - * - * *
    * Describe instances that can be created by this AllocationPolicy.
    * Only instances[0] is supported now.
    * 
* - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ @java.lang.Override - public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate getInstances( - int index) { + public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate getInstances(int index) { return instances_.get(index); } /** - * - * *
    * Describe instances that can be created by this AllocationPolicy.
    * Only instances[0] is supported now.
    * 
* - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ @java.lang.Override - public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder - getInstancesOrBuilder(int index) { + public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder getInstancesOrBuilder( + int index) { return instances_.get(index); } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; private com.google.cloud.batch.v1.ServiceAccount serviceAccount_; /** - * - * *
    * Service account that VMs will run as.
    * 
* * .google.cloud.batch.v1.ServiceAccount service_account = 9; - * * @return Whether the serviceAccount field is set. */ @java.lang.Override @@ -12874,25 +11606,18 @@ public boolean hasServiceAccount() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Service account that VMs will run as.
    * 
* * .google.cloud.batch.v1.ServiceAccount service_account = 9; - * * @return The serviceAccount. */ @java.lang.Override public com.google.cloud.batch.v1.ServiceAccount getServiceAccount() { - return serviceAccount_ == null - ? com.google.cloud.batch.v1.ServiceAccount.getDefaultInstance() - : serviceAccount_; + return serviceAccount_ == null ? com.google.cloud.batch.v1.ServiceAccount.getDefaultInstance() : serviceAccount_; } /** - * - * *
    * Service account that VMs will run as.
    * 
@@ -12901,40 +11626,36 @@ public com.google.cloud.batch.v1.ServiceAccount getServiceAccount() { */ @java.lang.Override public com.google.cloud.batch.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder() { - return serviceAccount_ == null - ? com.google.cloud.batch.v1.ServiceAccount.getDefaultInstance() - : serviceAccount_; + return serviceAccount_ == null ? com.google.cloud.batch.v1.ServiceAccount.getDefaultInstance() : serviceAccount_; } public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_AllocationPolicy_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.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -12948,21 +11669,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 6;
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -12980,8 +11700,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -12995,19 +11713,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -13021,11 +11737,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6;
    */
   @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();
     }
@@ -13035,8 +11751,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int NETWORK_FIELD_NUMBER = 7;
   private com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network_;
   /**
-   *
-   *
    * 
    * The network policy.
    *
@@ -13046,7 +11760,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; - * * @return Whether the network field is set. */ @java.lang.Override @@ -13054,8 +11767,6 @@ public boolean hasNetwork() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * The network policy.
    *
@@ -13065,18 +11776,13 @@ public boolean hasNetwork() {
    * 
* * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; - * * @return The network. */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getNetwork() { - return network_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance() - : network_; + return network_ == null ? com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance() : network_; } /** - * - * *
    * The network policy.
    *
@@ -13089,22 +11795,17 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getNetwork() {
    */
   @java.lang.Override
   public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder() {
-    return network_ == null
-        ? com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance()
-        : network_;
+    return network_ == null ? com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance() : network_;
   }
 
   public static final int PLACEMENT_FIELD_NUMBER = 10;
   private com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement_;
   /**
-   *
-   *
    * 
    * The placement policy.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; - * * @return Whether the placement field is set. */ @java.lang.Override @@ -13112,25 +11813,18 @@ public boolean hasPlacement() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * The placement policy.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; - * * @return The placement. */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy getPlacement() { - return placement_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance() - : placement_; + return placement_ == null ? com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance() : placement_; } /** - * - * *
    * The placement policy.
    * 
@@ -13138,21 +11832,15 @@ public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy getPlacement() * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; */ @java.lang.Override - public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder - getPlacementOrBuilder() { - return placement_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance() - : placement_; + public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder() { + return placement_ == null ? com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance() : placement_; } public static final int TAGS_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Tags applied to the VM instances.
    *
@@ -13162,15 +11850,13 @@ public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy getPlacement()
    * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_; } /** - * - * *
    * Optional. Tags applied to the VM instances.
    *
@@ -13180,15 +11866,12 @@ public com.google.protobuf.ProtocolStringList getTagsList() {
    * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
    * Optional. Tags applied to the VM instances.
    *
@@ -13198,7 +11881,6 @@ public int getTagsCount() {
    * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -13206,8 +11888,6 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
    * Optional. Tags applied to the VM instances.
    *
@@ -13217,16 +11897,15 @@ public java.lang.String getTags(int index) {
    * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13238,12 +11917,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getLocation()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 6); if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getNetwork()); } @@ -13269,29 +11953,34 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLocation()); - } - 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(6, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLocation()); + } + 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(6, labels__); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getNetwork()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getNetwork()); } for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, instances_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getServiceAccount()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getServiceAccount()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getPlacement()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getPlacement()); } { int dataSize = 0; @@ -13309,33 +11998,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.batch.v1.AllocationPolicy)) { return super.equals(obj); } - com.google.cloud.batch.v1.AllocationPolicy other = - (com.google.cloud.batch.v1.AllocationPolicy) obj; + com.google.cloud.batch.v1.AllocationPolicy other = (com.google.cloud.batch.v1.AllocationPolicy) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { - if (!getLocation().equals(other.getLocation())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; } - if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; if (hasServiceAccount() != other.hasServiceAccount()) return false; if (hasServiceAccount()) { - if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasNetwork() != other.hasNetwork()) return false; if (hasNetwork()) { - if (!getNetwork().equals(other.getNetwork())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; } if (hasPlacement() != other.hasPlacement()) return false; if (hasPlacement()) { - if (!getPlacement().equals(other.getPlacement())) return false; + if (!getPlacement() + .equals(other.getPlacement())) return false; } - if (!getTagsList().equals(other.getTagsList())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13380,104 +12075,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.AllocationPolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.AllocationPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.AllocationPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.AllocationPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.AllocationPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.AllocationPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.AllocationPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.AllocationPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Job's resource allocation policy describes when, where, and how compute
    * resources should be allocated for the Job.
@@ -13485,13 +12175,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.AllocationPolicy)
       com.google.cloud.batch.v1.AllocationPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -13501,10 +12191,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
         case 6:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
     protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
         int number) {
@@ -13512,18 +12202,16 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
         case 6:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_fieldAccessorTable
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.AllocationPolicy.class,
-              com.google.cloud.batch.v1.AllocationPolicy.Builder.class);
+              com.google.cloud.batch.v1.AllocationPolicy.class, com.google.cloud.batch.v1.AllocationPolicy.Builder.class);
     }
 
     // Construct using com.google.cloud.batch.v1.AllocationPolicy.newBuilder()
@@ -13531,13 +12219,14 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getLocationFieldBuilder();
         getInstancesFieldBuilder();
         getServiceAccountFieldBuilder();
@@ -13545,7 +12234,6 @@ private void maybeForceBuilderInitialization() {
         getPlacementFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -13578,14 +12266,15 @@ public Builder clear() {
         placementBuilder_.dispose();
         placementBuilder_ = null;
       }
-      tags_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      tags_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -13604,12 +12293,9 @@ public com.google.cloud.batch.v1.AllocationPolicy build() {
 
     @java.lang.Override
     public com.google.cloud.batch.v1.AllocationPolicy buildPartial() {
-      com.google.cloud.batch.v1.AllocationPolicy result =
-          new com.google.cloud.batch.v1.AllocationPolicy(this);
+      com.google.cloud.batch.v1.AllocationPolicy result = new com.google.cloud.batch.v1.AllocationPolicy(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -13630,12 +12316,15 @@ private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy result) {
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build();
+        result.location_ = locationBuilder_ == null
+            ? location_
+            : locationBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.serviceAccount_ =
-            serviceAccountBuilder_ == null ? serviceAccount_ : serviceAccountBuilder_.build();
+        result.serviceAccount_ = serviceAccountBuilder_ == null
+            ? serviceAccount_
+            : serviceAccountBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
@@ -13643,11 +12332,15 @@ private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy result) {
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.network_ = networkBuilder_ == null ? network_ : networkBuilder_.build();
+        result.network_ = networkBuilder_ == null
+            ? network_
+            : networkBuilder_.build();
         to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.placement_ = placementBuilder_ == null ? placement_ : placementBuilder_.build();
+        result.placement_ = placementBuilder_ == null
+            ? placement_
+            : placementBuilder_.build();
         to_bitField0_ |= 0x00000008;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
@@ -13661,39 +12354,38 @@ private void buildPartial0(com.google.cloud.batch.v1.AllocationPolicy result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.batch.v1.AllocationPolicy) {
-        return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy) other);
+        return mergeFrom((com.google.cloud.batch.v1.AllocationPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -13723,10 +12415,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy other) {
             instancesBuilder_ = null;
             instances_ = other.instances_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            instancesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getInstancesFieldBuilder()
-                    : null;
+            instancesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getInstancesFieldBuilder() : null;
           } else {
             instancesBuilder_.addAllMessages(other.instances_);
           }
@@ -13735,7 +12426,8 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy other) {
       if (other.hasServiceAccount()) {
         mergeServiceAccount(other.getServiceAccount());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (other.hasNetwork()) {
         mergeNetwork(other.getNetwork());
@@ -13779,71 +12471,68 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getLocationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 50:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getNetworkFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 58
-            case 66:
-              {
-                com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate m =
-                    input.readMessage(
-                        com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate
-                            .parser(),
-                        extensionRegistry);
-                if (instancesBuilder_ == null) {
-                  ensureInstancesIsMutable();
-                  instances_.add(m);
-                } else {
-                  instancesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getServiceAccountFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getPlacementFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 82
-            case 90:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTagsIsMutable();
-                tags_.add(s);
-                break;
-              } // case 90
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getLocationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 50: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getNetworkFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 58
+            case 66: {
+              com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate m =
+                  input.readMessage(
+                      com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.parser(),
+                      extensionRegistry);
+              if (instancesBuilder_ == null) {
+                ensureInstancesIsMutable();
+                instances_.add(m);
+              } else {
+                instancesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getServiceAccountFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getPlacementFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 82
+            case 90: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureTagsIsMutable();
+              tags_.add(s);
+              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) {
@@ -13853,52 +12542,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy location_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy,
-            com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder,
-            com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder>
-        locationBuilder_;
+        com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy, com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder> locationBuilder_;
     /**
-     *
-     *
      * 
      * Location where compute resources should be allocated for the Job.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1; - * * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1; - * * @return The location. */ public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy getLocation() { if (locationBuilder_ == null) { - return location_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance() - : location_; + return location_ == null ? com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
@@ -13919,8 +12594,6 @@ public Builder setLocation(com.google.cloud.batch.v1.AllocationPolicy.LocationPo return this; } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
@@ -13939,8 +12612,6 @@ public Builder setLocation( return this; } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
@@ -13949,10 +12620,9 @@ public Builder setLocation( */ public Builder mergeLocation(com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy value) { if (locationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && location_ != null - && location_ - != com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + location_ != null && + location_ != com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; @@ -13967,8 +12637,6 @@ public Builder mergeLocation(com.google.cloud.batch.v1.AllocationPolicy.Location return this; } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
@@ -13986,8 +12654,6 @@ public Builder clearLocation() { return this; } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
@@ -14000,27 +12666,21 @@ public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder getLoca return getLocationFieldBuilder().getBuilder(); } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1; */ - public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder - getLocationOrBuilder() { + public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { - return location_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance() - : location_; + return location_ == null ? + com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.getDefaultInstance() : location_; } } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
@@ -14028,54 +12688,40 @@ public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder getLoca * .google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy, - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder, - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder> + com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy, com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { - locationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy, - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder, - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder>( - getLocation(), getParentForChildren(), isClean()); + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy, com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); location_ = null; } return locationBuilder_; } - private java.util.List - instances_ = java.util.Collections.emptyList(); - + private java.util.List instances_ = + java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - instances_ = - new java.util.ArrayList< - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate>(instances_); + instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder> - instancesBuilder_; + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder> instancesBuilder_; /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - public java.util.List - getInstancesList() { + public java.util.List getInstancesList() { if (instancesBuilder_ == null) { return java.util.Collections.unmodifiableList(instances_); } else { @@ -14083,16 +12729,12 @@ private void ensureInstancesIsMutable() { } } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ public int getInstancesCount() { if (instancesBuilder_ == null) { @@ -14102,19 +12744,14 @@ public int getInstancesCount() { } } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate getInstances( - int index) { + public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate getInstances(int index) { if (instancesBuilder_ == null) { return instances_.get(index); } else { @@ -14122,16 +12759,12 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate getIn } } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ public Builder setInstances( int index, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate value) { @@ -14148,21 +12781,15 @@ public Builder setInstances( return this; } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ public Builder setInstances( - int index, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder - builderForValue) { + int index, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); @@ -14173,19 +12800,14 @@ public Builder setInstances( return this; } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - public Builder addInstances( - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate value) { + public Builder addInstances(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14199,16 +12821,12 @@ public Builder addInstances( return this; } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ public Builder addInstances( int index, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate value) { @@ -14225,20 +12843,15 @@ public Builder addInstances( return this; } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ public Builder addInstances( - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder - builderForValue) { + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(builderForValue.build()); @@ -14249,21 +12862,15 @@ public Builder addInstances( return this; } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ public Builder addInstances( - int index, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder - builderForValue) { + int index, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); @@ -14274,24 +12881,19 @@ public Builder addInstances( return this; } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ public Builder addAllInstances( - java.lang.Iterable< - ? extends com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate> - values) { + java.lang.Iterable values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); @@ -14299,16 +12901,12 @@ public Builder addAllInstances( return this; } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ public Builder clearInstances() { if (instancesBuilder_ == null) { @@ -14321,16 +12919,12 @@ public Builder clearInstances() { return this; } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ public Builder removeInstances(int index) { if (instancesBuilder_ == null) { @@ -14343,56 +12937,42 @@ public Builder removeInstances(int index) { return this; } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder - getInstancesBuilder(int index) { + public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder getInstancesBuilder( + int index) { return getInstancesFieldBuilder().getBuilder(index); } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder - getInstancesOrBuilder(int index) { + public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder getInstancesOrBuilder( + int index) { if (instancesBuilder_ == null) { - return instances_.get(index); - } else { + return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - public java.util.List< - ? extends com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder> - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -14400,74 +12980,52 @@ public Builder removeInstances(int index) { } } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder - addInstancesBuilder() { - return getInstancesFieldBuilder() - .addBuilder( - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - .getDefaultInstance()); + public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder addInstancesBuilder() { + return getInstancesFieldBuilder().addBuilder( + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.getDefaultInstance()); } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder - addInstancesBuilder(int index) { - return getInstancesFieldBuilder() - .addBuilder( - index, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate - .getDefaultInstance()); + public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder().addBuilder( + index, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.getDefaultInstance()); } /** - * - * *
      * Describe instances that can be created by this AllocationPolicy.
      * Only instances[0] is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - public java.util.List< - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder> - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder> + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder, - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder>( - instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.Builder, com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder>( + instances_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); instances_ = null; } return instancesBuilder_; @@ -14475,47 +13033,34 @@ public Builder removeInstances(int index) { private com.google.cloud.batch.v1.ServiceAccount serviceAccount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.ServiceAccount, - com.google.cloud.batch.v1.ServiceAccount.Builder, - com.google.cloud.batch.v1.ServiceAccountOrBuilder> - serviceAccountBuilder_; + com.google.cloud.batch.v1.ServiceAccount, com.google.cloud.batch.v1.ServiceAccount.Builder, com.google.cloud.batch.v1.ServiceAccountOrBuilder> serviceAccountBuilder_; /** - * - * *
      * Service account that VMs will run as.
      * 
* * .google.cloud.batch.v1.ServiceAccount service_account = 9; - * * @return Whether the serviceAccount field is set. */ public boolean hasServiceAccount() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Service account that VMs will run as.
      * 
* * .google.cloud.batch.v1.ServiceAccount service_account = 9; - * * @return The serviceAccount. */ public com.google.cloud.batch.v1.ServiceAccount getServiceAccount() { if (serviceAccountBuilder_ == null) { - return serviceAccount_ == null - ? com.google.cloud.batch.v1.ServiceAccount.getDefaultInstance() - : serviceAccount_; + return serviceAccount_ == null ? com.google.cloud.batch.v1.ServiceAccount.getDefaultInstance() : serviceAccount_; } else { return serviceAccountBuilder_.getMessage(); } } /** - * - * *
      * Service account that VMs will run as.
      * 
@@ -14536,8 +13081,6 @@ public Builder setServiceAccount(com.google.cloud.batch.v1.ServiceAccount value) return this; } /** - * - * *
      * Service account that VMs will run as.
      * 
@@ -14556,8 +13099,6 @@ public Builder setServiceAccount( return this; } /** - * - * *
      * Service account that VMs will run as.
      * 
@@ -14566,9 +13107,9 @@ public Builder setServiceAccount( */ public Builder mergeServiceAccount(com.google.cloud.batch.v1.ServiceAccount value) { if (serviceAccountBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && serviceAccount_ != null - && serviceAccount_ != com.google.cloud.batch.v1.ServiceAccount.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + serviceAccount_ != null && + serviceAccount_ != com.google.cloud.batch.v1.ServiceAccount.getDefaultInstance()) { getServiceAccountBuilder().mergeFrom(value); } else { serviceAccount_ = value; @@ -14583,8 +13124,6 @@ public Builder mergeServiceAccount(com.google.cloud.batch.v1.ServiceAccount valu return this; } /** - * - * *
      * Service account that VMs will run as.
      * 
@@ -14602,8 +13141,6 @@ public Builder clearServiceAccount() { return this; } /** - * - * *
      * Service account that VMs will run as.
      * 
@@ -14616,8 +13153,6 @@ public com.google.cloud.batch.v1.ServiceAccount.Builder getServiceAccountBuilder return getServiceAccountFieldBuilder().getBuilder(); } /** - * - * *
      * Service account that VMs will run as.
      * 
@@ -14628,14 +13163,11 @@ public com.google.cloud.batch.v1.ServiceAccountOrBuilder getServiceAccountOrBuil if (serviceAccountBuilder_ != null) { return serviceAccountBuilder_.getMessageOrBuilder(); } else { - return serviceAccount_ == null - ? com.google.cloud.batch.v1.ServiceAccount.getDefaultInstance() - : serviceAccount_; + return serviceAccount_ == null ? + com.google.cloud.batch.v1.ServiceAccount.getDefaultInstance() : serviceAccount_; } } /** - * - * *
      * Service account that VMs will run as.
      * 
@@ -14643,35 +13175,34 @@ public com.google.cloud.batch.v1.ServiceAccountOrBuilder getServiceAccountOrBuil * .google.cloud.batch.v1.ServiceAccount service_account = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.ServiceAccount, - com.google.cloud.batch.v1.ServiceAccount.Builder, - com.google.cloud.batch.v1.ServiceAccountOrBuilder> + com.google.cloud.batch.v1.ServiceAccount, com.google.cloud.batch.v1.ServiceAccount.Builder, com.google.cloud.batch.v1.ServiceAccountOrBuilder> getServiceAccountFieldBuilder() { if (serviceAccountBuilder_ == null) { - serviceAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.ServiceAccount, - com.google.cloud.batch.v1.ServiceAccount.Builder, - com.google.cloud.batch.v1.ServiceAccountOrBuilder>( - getServiceAccount(), getParentForChildren(), isClean()); + serviceAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.ServiceAccount, com.google.cloud.batch.v1.ServiceAccount.Builder, com.google.cloud.batch.v1.ServiceAccountOrBuilder>( + getServiceAccount(), + getParentForChildren(), + isClean()); serviceAccount_ = null; } return serviceAccountBuilder_; } - 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() { 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(); @@ -14680,13 +13211,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -14700,21 +13228,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 6;
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -14732,8 +13259,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -14747,19 +13272,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -14773,25 +13296,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -14804,22 +13325,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 6;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -14832,20 +13354,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 6;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -14858,21 +13377,18 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 6;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy,
-            com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder,
-            com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder>
-        networkBuilder_;
+        com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy, com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder> networkBuilder_;
     /**
-     *
-     *
      * 
      * The network policy.
      *
@@ -14882,15 +13398,12 @@ public Builder putAllLabels(java.util.Map va
      * 
* * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; - * * @return Whether the network field is set. */ public boolean hasNetwork() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * The network policy.
      *
@@ -14900,21 +13413,16 @@ public boolean hasNetwork() {
      * 
* * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; - * * @return The network. */ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getNetwork() { if (networkBuilder_ == null) { - return network_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance() - : network_; + return network_ == null ? com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance() : network_; } else { return networkBuilder_.getMessage(); } } /** - * - * *
      * The network policy.
      *
@@ -14939,8 +13447,6 @@ public Builder setNetwork(com.google.cloud.batch.v1.AllocationPolicy.NetworkPoli
       return this;
     }
     /**
-     *
-     *
      * 
      * The network policy.
      *
@@ -14963,8 +13469,6 @@ public Builder setNetwork(
       return this;
     }
     /**
-     *
-     *
      * 
      * The network policy.
      *
@@ -14977,10 +13481,9 @@ public Builder setNetwork(
      */
     public Builder mergeNetwork(com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy value) {
       if (networkBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && network_ != null
-            && network_
-                != com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          network_ != null &&
+          network_ != com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance()) {
           getNetworkBuilder().mergeFrom(value);
         } else {
           network_ = value;
@@ -14995,8 +13498,6 @@ public Builder mergeNetwork(com.google.cloud.batch.v1.AllocationPolicy.NetworkPo
       return this;
     }
     /**
-     *
-     *
      * 
      * The network policy.
      *
@@ -15018,8 +13519,6 @@ public Builder clearNetwork() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The network policy.
      *
@@ -15036,8 +13535,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder getNetwo
       return getNetworkFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The network policy.
      *
@@ -15052,14 +13549,11 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder getNetw
       if (networkBuilder_ != null) {
         return networkBuilder_.getMessageOrBuilder();
       } else {
-        return network_ == null
-            ? com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance()
-            : network_;
+        return network_ == null ?
+            com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.getDefaultInstance() : network_;
       }
     }
     /**
-     *
-     *
      * 
      * The network policy.
      *
@@ -15071,17 +13565,14 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder getNetw
      * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy,
-            com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder,
-            com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder>
+        com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy, com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder> 
         getNetworkFieldBuilder() {
       if (networkBuilder_ == null) {
-        networkBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy,
-                com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder,
-                com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder>(
-                getNetwork(), getParentForChildren(), isClean());
+        networkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy, com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder>(
+                getNetwork(),
+                getParentForChildren(),
+                isClean());
         network_ = null;
       }
       return networkBuilder_;
@@ -15089,47 +13580,34 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder getNetw
 
     private com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy,
-            com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder,
-            com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder>
-        placementBuilder_;
+        com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy, com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder> placementBuilder_;
     /**
-     *
-     *
      * 
      * The placement policy.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; - * * @return Whether the placement field is set. */ public boolean hasPlacement() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * The placement policy.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; - * * @return The placement. */ public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy getPlacement() { if (placementBuilder_ == null) { - return placement_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance() - : placement_; + return placement_ == null ? com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance() : placement_; } else { return placementBuilder_.getMessage(); } } /** - * - * *
      * The placement policy.
      * 
@@ -15150,8 +13628,6 @@ public Builder setPlacement(com.google.cloud.batch.v1.AllocationPolicy.Placement return this; } /** - * - * *
      * The placement policy.
      * 
@@ -15170,22 +13646,17 @@ public Builder setPlacement( return this; } /** - * - * *
      * The placement policy.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; */ - public Builder mergePlacement( - com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy value) { + public Builder mergePlacement(com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy value) { if (placementBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && placement_ != null - && placement_ - != com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy - .getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + placement_ != null && + placement_ != com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance()) { getPlacementBuilder().mergeFrom(value); } else { placement_ = value; @@ -15200,8 +13671,6 @@ public Builder mergePlacement( return this; } /** - * - * *
      * The placement policy.
      * 
@@ -15219,42 +13688,33 @@ public Builder clearPlacement() { return this; } /** - * - * *
      * The placement policy.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; */ - public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder - getPlacementBuilder() { + public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder getPlacementBuilder() { bitField0_ |= 0x00000020; onChanged(); return getPlacementFieldBuilder().getBuilder(); } /** - * - * *
      * The placement policy.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; */ - public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder - getPlacementOrBuilder() { + public com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder() { if (placementBuilder_ != null) { return placementBuilder_.getMessageOrBuilder(); } else { - return placement_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance() - : placement_; + return placement_ == null ? + com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.getDefaultInstance() : placement_; } } /** - * - * *
      * The placement policy.
      * 
@@ -15262,17 +13722,14 @@ public Builder clearPlacement() { * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy, - com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder, - com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder> + com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy, com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder> getPlacementFieldBuilder() { if (placementBuilder_ == null) { - placementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy, - com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder, - com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder>( - getPlacement(), getParentForChildren(), isClean()); + placementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy, com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder>( + getPlacement(), + getParentForChildren(), + isClean()); placement_ = null; } return placementBuilder_; @@ -15280,7 +13737,6 @@ public Builder clearPlacement() { private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); @@ -15288,8 +13744,6 @@ private void ensureTagsIsMutable() { bitField0_ |= 0x00000040; } /** - * - * *
      * Optional. Tags applied to the VM instances.
      *
@@ -15299,16 +13753,14 @@ private void ensureTagsIsMutable() {
      * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { tags_.makeImmutable(); return tags_; } /** - * - * *
      * Optional. Tags applied to the VM instances.
      *
@@ -15318,15 +13770,12 @@ public com.google.protobuf.ProtocolStringList getTagsList() {
      * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
      * Optional. Tags applied to the VM instances.
      *
@@ -15336,7 +13785,6 @@ public int getTagsCount() {
      * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -15344,8 +13792,6 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
      * Optional. Tags applied to the VM instances.
      *
@@ -15355,16 +13801,14 @@ public java.lang.String getTags(int index) {
      * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } /** - * - * *
      * Optional. Tags applied to the VM instances.
      *
@@ -15374,15 +13818,13 @@ public com.google.protobuf.ByteString getTagsBytes(int index) {
      * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000040; @@ -15390,8 +13832,6 @@ public Builder setTags(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. Tags applied to the VM instances.
      *
@@ -15401,14 +13841,12 @@ public Builder setTags(int index, java.lang.String value) {
      * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000040; @@ -15416,8 +13854,6 @@ public Builder addTags(java.lang.String value) { return this; } /** - * - * *
      * Optional. Tags applied to the VM instances.
      *
@@ -15427,20 +13863,19 @@ public Builder addTags(java.lang.String value) {
      * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags(java.lang.Iterable values) { + public Builder addAllTags( + java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Optional. Tags applied to the VM instances.
      *
@@ -15450,19 +13885,16 @@ public Builder addAllTags(java.lang.Iterable values) {
      * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; onChanged(); return this; } /** - * - * *
      * Optional. Tags applied to the VM instances.
      *
@@ -15472,14 +13904,12 @@ public Builder clearTags() {
      * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); @@ -15487,9 +13917,9 @@ public Builder addTagsBytes(com.google.protobuf.ByteString 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); } @@ -15499,12 +13929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.AllocationPolicy) private static final com.google.cloud.batch.v1.AllocationPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.AllocationPolicy(); } @@ -15513,27 +13943,27 @@ public static com.google.cloud.batch.v1.AllocationPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllocationPolicy 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 AllocationPolicy 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; @@ -15548,4 +13978,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java similarity index 83% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java index 1e0ddc55f740..5214f0314969 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface AllocationPolicyOrBuilder - extends +public interface AllocationPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.AllocationPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Location where compute resources should be allocated for the Job.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1; - * * @return Whether the location field is set. */ boolean hasLocation(); /** - * - * *
    * Location where compute resources should be allocated for the Job.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1; - * * @return The location. */ com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy getLocation(); /** - * - * *
    * Location where compute resources should be allocated for the Job.
    * 
@@ -60,97 +36,73 @@ public interface AllocationPolicyOrBuilder com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder getLocationOrBuilder(); /** - * - * *
    * Describe instances that can be created by this AllocationPolicy.
    * Only instances[0] is supported now.
    * 
* - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - java.util.List + java.util.List getInstancesList(); /** - * - * *
    * Describe instances that can be created by this AllocationPolicy.
    * Only instances[0] is supported now.
    * 
* - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate getInstances(int index); /** - * - * *
    * Describe instances that can be created by this AllocationPolicy.
    * Only instances[0] is supported now.
    * 
* - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ int getInstancesCount(); /** - * - * *
    * Describe instances that can be created by this AllocationPolicy.
    * Only instances[0] is supported now.
    * 
* - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - java.util.List< - ? extends com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder> + java.util.List getInstancesOrBuilderList(); /** - * - * *
    * Describe instances that can be created by this AllocationPolicy.
    * Only instances[0] is supported now.
    * 
* - * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; - * + * repeated .google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate instances = 8; */ - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder - getInstancesOrBuilder(int index); + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplateOrBuilder getInstancesOrBuilder( + int index); /** - * - * *
    * Service account that VMs will run as.
    * 
* * .google.cloud.batch.v1.ServiceAccount service_account = 9; - * * @return Whether the serviceAccount field is set. */ boolean hasServiceAccount(); /** - * - * *
    * Service account that VMs will run as.
    * 
* * .google.cloud.batch.v1.ServiceAccount service_account = 9; - * * @return The serviceAccount. */ com.google.cloud.batch.v1.ServiceAccount getServiceAccount(); /** - * - * *
    * Service account that VMs will run as.
    * 
@@ -160,8 +112,6 @@ public interface AllocationPolicyOrBuilder com.google.cloud.batch.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder(); /** - * - * *
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -176,8 +126,6 @@ public interface AllocationPolicyOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -190,13 +138,15 @@ public interface AllocationPolicyOrBuilder
    *
    * map<string, string> labels = 6;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -209,10 +159,9 @@ public interface AllocationPolicyOrBuilder
    *
    * map<string, string> labels = 6;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -226,13 +175,11 @@ public interface AllocationPolicyOrBuilder
    * map<string, string> labels = 6;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -245,11 +192,10 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 6;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The network policy.
    *
@@ -259,13 +205,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; - * * @return Whether the network field is set. */ boolean hasNetwork(); /** - * - * *
    * The network policy.
    *
@@ -275,13 +218,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; - * * @return The network. */ com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getNetwork(); /** - * - * *
    * The network policy.
    *
@@ -295,32 +235,24 @@ java.lang.String getLabelsOrDefault(
   com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder getNetworkOrBuilder();
 
   /**
-   *
-   *
    * 
    * The placement policy.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; - * * @return Whether the placement field is set. */ boolean hasPlacement(); /** - * - * *
    * The placement policy.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.PlacementPolicy placement = 10; - * * @return The placement. */ com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy getPlacement(); /** - * - * *
    * The placement policy.
    * 
@@ -330,8 +262,6 @@ java.lang.String getLabelsOrDefault( com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicyOrBuilder getPlacementOrBuilder(); /** - * - * *
    * Optional. Tags applied to the VM instances.
    *
@@ -341,13 +271,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - java.util.List getTagsList(); + java.util.List + getTagsList(); /** - * - * *
    * Optional. Tags applied to the VM instances.
    *
@@ -357,13 +285,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ int getTagsCount(); /** - * - * *
    * Optional. Tags applied to the VM instances.
    *
@@ -373,14 +298,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** - * - * *
    * Optional. Tags applied to the VM instances.
    *
@@ -390,9 +312,9 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString getTagsBytes(int index); + com.google.protobuf.ByteString + getTagsBytes(int index); } diff --git a/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java new file mode 100644 index 000000000000..c139e95b0d92 --- /dev/null +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java @@ -0,0 +1,234 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/batch/v1/batch.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.batch.v1; + +public final class BatchProto { + private BatchProto() {} + 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_batch_v1_CreateJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_CreateJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_GetJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_GetJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_DeleteJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_ListJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_ListJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_ListTasksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_ListTasksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_GetTaskRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_OperationMetadata_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/batch/v1/batch.proto\022\025goo" + + "gle.cloud.batch.v1\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\033google/api/f" + + "ield_info.proto\032\031google/api/resource.pro" + + "to\032\037google/cloud/batch/v1/job.proto\032 goo" + + "gle/cloud/batch/v1/task.proto\032#google/lo" + + "ngrunning/operations.proto\032\033google/proto" + + "buf/empty.proto\032\037google/protobuf/timesta" + + "mp.proto\"\233\001\n\020CreateJobRequest\0220\n\006parent\030" + + "\001 \001(\tB \340A\002\372A\032\022\030batch.googleapis.com/Job\022" + + "\016\n\006job_id\030\002 \001(\t\022,\n\003job\030\003 \001(\0132\032.google.cl" + + "oud.batch.v1.JobB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" + + "\tB\003\340A\001\"?\n\rGetJobRequest\022.\n\004name\030\001 \001(\tB \340" + + "A\002\372A\032\n\030batch.googleapis.com/Job\"N\n\020Delet" + + "eJobRequest\022\014\n\004name\030\001 \001(\t\022\023\n\006reason\030\002 \001(" + + "\tB\003\340A\001\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"o\n\017ListJ" + + "obsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"j\n\020ListJobsResp" + + "onse\022(\n\004jobs\030\001 \003(\0132\032.google.cloud.batch." + + "v1.Job\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\201\001\n\020ListTasksRequest\0226\n\006par" + + "ent\030\001 \001(\tB&\340A\002\372A \n\036batch.googleapis.com/" + + "TaskGroup\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003" + + " \001(\005\022\022\n\npage_token\030\004 \001(\t\"m\n\021ListTasksRes" + + "ponse\022*\n\005tasks\030\001 \003(\0132\033.google.cloud.batc" + + "h.v1.Task\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"A\n\016GetTaskRequest\022/\n\004nam" + + "e\030\001 \001(\tB!\340A\002\372A\033\n\031batch.googleapis.com/Ta" + + "sk\"\200\002\n\021OperationMetadata\0224\n\013create_time\030" + + "\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221" + + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004" + + " \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#" + + "\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013a" + + "pi_version\030\007 \001(\tB\003\340A\0032\266\010\n\014BatchService\022\233" + + "\001\n\tCreateJob\022\'.google.cloud.batch.v1.Cre" + + "ateJobRequest\032\032.google.cloud.batch.v1.Jo" + + "b\"I\332A\021parent,job,job_id\202\323\344\223\002/\"(/v1/{pare" + + "nt=projects/*/locations/*}/jobs:\003job\022\203\001\n" + + "\006GetJob\022$.google.cloud.batch.v1.GetJobRe" + + "quest\032\032.google.cloud.batch.v1.Job\"7\332A\004na" + + "me\202\323\344\223\002*\022(/v1/{name=projects/*/locations" + + "/*/jobs/*}\022\317\001\n\tDeleteJob\022\'.google.cloud." + + "batch.v1.DeleteJobRequest\032\035.google.longr" + + "unning.Operation\"z\312A@\n\025google.protobuf.E" + + "mpty\022\'google.cloud.batch.v1.OperationMet" + + "adata\332A\004name\202\323\344\223\002**(/v1/{name=projects/*" + + "/locations/*/jobs/*}\022\226\001\n\010ListJobs\022&.goog" + + "le.cloud.batch.v1.ListJobsRequest\032\'.goog" + + "le.cloud.batch.v1.ListJobsResponse\"9\332A\006p" + + "arent\202\323\344\223\002*\022(/v1/{parent=projects/*/loca" + + "tions/*}/jobs\022\233\001\n\007GetTask\022%.google.cloud" + + ".batch.v1.GetTaskRequest\032\033.google.cloud." + + "batch.v1.Task\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=" + + "projects/*/locations/*/jobs/*/taskGroups" + + "/*/tasks/*}\022\256\001\n\tListTasks\022\'.google.cloud" + + ".batch.v1.ListTasksRequest\032(.google.clou" + + "d.batch.v1.ListTasksResponse\"N\332A\006parent\202" + + "\323\344\223\002?\022=/v1/{parent=projects/*/locations/" + + "*/jobs/*/taskGroups/*}/tasks\032H\312A\024batch.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\253\001\n\031com.google.cl" + + "oud.batch.v1B\nBatchProtoP\001Z/cloud.google" + + ".com/go/batch/apiv1/batchpb;batchpb\242\002\003GC" + + "B\252\002\025Google.Cloud.Batch.V1\312\002\025Google\\Cloud" + + "\\Batch\\V1\352\002\030Google::Cloud::Batch::V1b\006pr" + + "oto3" + }; + 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.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.batch.v1.JobProto.getDescriptor(), + com.google.cloud.batch.v1.TaskProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_batch_v1_CreateJobRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_batch_v1_CreateJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_CreateJobRequest_descriptor, + new java.lang.String[] { "Parent", "JobId", "Job", "RequestId", }); + internal_static_google_cloud_batch_v1_GetJobRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_batch_v1_GetJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_GetJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_batch_v1_DeleteJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor, + new java.lang.String[] { "Name", "Reason", "RequestId", }); + internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_batch_v1_ListJobsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "OrderBy", "PageSize", "PageToken", }); + internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_batch_v1_ListJobsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor, + new java.lang.String[] { "Jobs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_batch_v1_ListTasksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_batch_v1_ListTasksResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor, + new java.lang.String[] { "Tasks", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_batch_v1_GetTaskRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_batch_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_batch_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + 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.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.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.batch.v1.JobProto.getDescriptor(); + com.google.cloud.batch.v1.TaskProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java similarity index 76% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java index 4c8466155153..49ae86ca4acd 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto @@ -20,8 +5,6 @@ package com.google.cloud.batch.v1; /** - * - * *
  * Compute resource requirements.
  *
@@ -34,44 +17,41 @@
  *
  * Protobuf type {@code google.cloud.batch.v1.ComputeResource}
  */
-public final class ComputeResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ComputeResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.ComputeResource)
     ComputeResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ComputeResource.newBuilder() to construct.
   private ComputeResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ComputeResource() {}
+  private ComputeResource() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ComputeResource();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.batch.v1.TaskProto
-        .internal_static_google_cloud_batch_v1_ComputeResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_ComputeResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.batch.v1.TaskProto
-        .internal_static_google_cloud_batch_v1_ComputeResource_fieldAccessorTable
+    return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_ComputeResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.batch.v1.ComputeResource.class,
-            com.google.cloud.batch.v1.ComputeResource.Builder.class);
+            com.google.cloud.batch.v1.ComputeResource.class, com.google.cloud.batch.v1.ComputeResource.Builder.class);
   }
 
   public static final int CPU_MILLI_FIELD_NUMBER = 1;
   private long cpuMilli_ = 0L;
   /**
-   *
-   *
    * 
    * The milliCPU count.
    *
@@ -94,7 +74,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int64 cpu_milli = 1; - * * @return The cpuMilli. */ @java.lang.Override @@ -105,8 +84,6 @@ public long getCpuMilli() { public static final int MEMORY_MIB_FIELD_NUMBER = 2; private long memoryMib_ = 0L; /** - * - * *
    * Memory in MiB.
    *
@@ -127,7 +104,6 @@ public long getCpuMilli() {
    * 
* * int64 memory_mib = 2; - * * @return The memoryMib. */ @java.lang.Override @@ -138,14 +114,11 @@ public long getMemoryMib() { public static final int BOOT_DISK_MIB_FIELD_NUMBER = 4; private long bootDiskMib_ = 0L; /** - * - * *
    * Extra boot disk size in MiB for each task.
    * 
* * int64 boot_disk_mib = 4; - * * @return The bootDiskMib. */ @java.lang.Override @@ -154,7 +127,6 @@ public long getBootDiskMib() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (cpuMilli_ != 0L) { output.writeInt64(1, cpuMilli_); } @@ -186,13 +159,16 @@ public int getSerializedSize() { size = 0; if (cpuMilli_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, cpuMilli_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, cpuMilli_); } if (memoryMib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, memoryMib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, memoryMib_); } if (bootDiskMib_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, bootDiskMib_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, bootDiskMib_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,17 +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.batch.v1.ComputeResource)) { return super.equals(obj); } - com.google.cloud.batch.v1.ComputeResource other = - (com.google.cloud.batch.v1.ComputeResource) obj; + com.google.cloud.batch.v1.ComputeResource other = (com.google.cloud.batch.v1.ComputeResource) obj; - if (getCpuMilli() != other.getCpuMilli()) return false; - if (getMemoryMib() != other.getMemoryMib()) return false; - if (getBootDiskMib() != other.getBootDiskMib()) return false; + if (getCpuMilli() + != other.getCpuMilli()) return false; + if (getMemoryMib() + != other.getMemoryMib()) return false; + if (getBootDiskMib() + != other.getBootDiskMib()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,114 +203,112 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CPU_MILLI_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCpuMilli()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCpuMilli()); hash = (37 * hash) + MEMORY_MIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMemoryMib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemoryMib()); hash = (37 * hash) + BOOT_DISK_MIB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBootDiskMib()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBootDiskMib()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.batch.v1.ComputeResource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.ComputeResource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.ComputeResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.ComputeResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.ComputeResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.ComputeResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.ComputeResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.ComputeResource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.ComputeResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.ComputeResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.ComputeResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.ComputeResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.ComputeResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.ComputeResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.ComputeResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Compute resource requirements.
    *
@@ -345,32 +321,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.batch.v1.ComputeResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.ComputeResource)
       com.google.cloud.batch.v1.ComputeResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.TaskProto
-          .internal_static_google_cloud_batch_v1_ComputeResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_ComputeResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.TaskProto
-          .internal_static_google_cloud_batch_v1_ComputeResource_fieldAccessorTable
+      return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_ComputeResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.ComputeResource.class,
-              com.google.cloud.batch.v1.ComputeResource.Builder.class);
+              com.google.cloud.batch.v1.ComputeResource.class, com.google.cloud.batch.v1.ComputeResource.Builder.class);
     }
 
     // Construct using com.google.cloud.batch.v1.ComputeResource.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();
@@ -382,9 +359,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.batch.v1.TaskProto
-          .internal_static_google_cloud_batch_v1_ComputeResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_ComputeResource_descriptor;
     }
 
     @java.lang.Override
@@ -403,11 +380,8 @@ public com.google.cloud.batch.v1.ComputeResource build() {
 
     @java.lang.Override
     public com.google.cloud.batch.v1.ComputeResource buildPartial() {
-      com.google.cloud.batch.v1.ComputeResource result =
-          new com.google.cloud.batch.v1.ComputeResource(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.batch.v1.ComputeResource result = new com.google.cloud.batch.v1.ComputeResource(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -429,39 +403,38 @@ private void buildPartial0(com.google.cloud.batch.v1.ComputeResource result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.batch.v1.ComputeResource) {
-        return mergeFrom((com.google.cloud.batch.v1.ComputeResource) other);
+        return mergeFrom((com.google.cloud.batch.v1.ComputeResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -505,31 +478,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                cpuMilli_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                memoryMib_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 32:
-              {
-                bootDiskMib_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              cpuMilli_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              memoryMib_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 32: {
+              bootDiskMib_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              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) {
@@ -539,13 +508,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long cpuMilli_;
+    private long cpuMilli_ ;
     /**
-     *
-     *
      * 
      * The milliCPU count.
      *
@@ -568,7 +534,6 @@ public Builder mergeFrom(
      * 
* * int64 cpu_milli = 1; - * * @return The cpuMilli. */ @java.lang.Override @@ -576,8 +541,6 @@ public long getCpuMilli() { return cpuMilli_; } /** - * - * *
      * The milliCPU count.
      *
@@ -600,7 +563,6 @@ public long getCpuMilli() {
      * 
* * int64 cpu_milli = 1; - * * @param value The cpuMilli to set. * @return This builder for chaining. */ @@ -612,8 +574,6 @@ public Builder setCpuMilli(long value) { return this; } /** - * - * *
      * The milliCPU count.
      *
@@ -636,7 +596,6 @@ public Builder setCpuMilli(long value) {
      * 
* * int64 cpu_milli = 1; - * * @return This builder for chaining. */ public Builder clearCpuMilli() { @@ -646,10 +605,8 @@ public Builder clearCpuMilli() { return this; } - private long memoryMib_; + private long memoryMib_ ; /** - * - * *
      * Memory in MiB.
      *
@@ -670,7 +627,6 @@ public Builder clearCpuMilli() {
      * 
* * int64 memory_mib = 2; - * * @return The memoryMib. */ @java.lang.Override @@ -678,8 +634,6 @@ public long getMemoryMib() { return memoryMib_; } /** - * - * *
      * Memory in MiB.
      *
@@ -700,7 +654,6 @@ public long getMemoryMib() {
      * 
* * int64 memory_mib = 2; - * * @param value The memoryMib to set. * @return This builder for chaining. */ @@ -712,8 +665,6 @@ public Builder setMemoryMib(long value) { return this; } /** - * - * *
      * Memory in MiB.
      *
@@ -734,7 +685,6 @@ public Builder setMemoryMib(long value) {
      * 
* * int64 memory_mib = 2; - * * @return This builder for chaining. */ public Builder clearMemoryMib() { @@ -744,16 +694,13 @@ public Builder clearMemoryMib() { return this; } - private long bootDiskMib_; + private long bootDiskMib_ ; /** - * - * *
      * Extra boot disk size in MiB for each task.
      * 
* * int64 boot_disk_mib = 4; - * * @return The bootDiskMib. */ @java.lang.Override @@ -761,14 +708,11 @@ public long getBootDiskMib() { return bootDiskMib_; } /** - * - * *
      * Extra boot disk size in MiB for each task.
      * 
* * int64 boot_disk_mib = 4; - * * @param value The bootDiskMib to set. * @return This builder for chaining. */ @@ -780,14 +724,11 @@ public Builder setBootDiskMib(long value) { return this; } /** - * - * *
      * Extra boot disk size in MiB for each task.
      * 
* * int64 boot_disk_mib = 4; - * * @return This builder for chaining. */ public Builder clearBootDiskMib() { @@ -796,9 +737,9 @@ public Builder clearBootDiskMib() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +749,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.ComputeResource) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.ComputeResource) private static final com.google.cloud.batch.v1.ComputeResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.ComputeResource(); } @@ -822,27 +763,27 @@ public static com.google.cloud.batch.v1.ComputeResource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeResource 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 ComputeResource 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; @@ -857,4 +798,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.ComputeResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java similarity index 79% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java index 3dbe1341e2e3..5eb2ec8c8aa4 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface ComputeResourceOrBuilder - extends +public interface ComputeResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.ComputeResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The milliCPU count.
    *
@@ -49,14 +31,11 @@ public interface ComputeResourceOrBuilder
    * 
* * int64 cpu_milli = 1; - * * @return The cpuMilli. */ long getCpuMilli(); /** - * - * *
    * Memory in MiB.
    *
@@ -77,20 +56,16 @@ public interface ComputeResourceOrBuilder
    * 
* * int64 memory_mib = 2; - * * @return The memoryMib. */ long getMemoryMib(); /** - * - * *
    * Extra boot disk size in MiB for each task.
    * 
* * int64 boot_disk_mib = 4; - * * @return The bootDiskMib. */ long getBootDiskMib(); diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java similarity index 74% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java index cf5adf80ca2f..3dcf9c929017 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto @@ -20,24 +5,21 @@ package com.google.cloud.batch.v1; /** - * - * *
  * CreateJob Request.
  * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.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_ = ""; @@ -46,42 +28,35 @@ private CreateJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateJobRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_CreateJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_CreateJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_CreateJobRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_CreateJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.CreateJobRequest.class, - com.google.cloud.batch.v1.CreateJobRequest.Builder.class); + com.google.cloud.batch.v1.CreateJobRequest.class, com.google.cloud.batch.v1.CreateJobRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource name where the Job will be created.
    * Pattern: "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 @@ -90,32 +65,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name where the Job will be created.
    * Pattern: "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 { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int JOB_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object jobId_ = ""; /** - * - * *
    * ID used to uniquely identify the Job within its parent scope.
    * This field should contain at most 63 characters and must start with
@@ -143,7 +113,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string job_id = 2; - * * @return The jobId. */ @java.lang.Override @@ -152,15 +121,14 @@ 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; } } /** - * - * *
    * ID used to uniquely identify the Job within its parent scope.
    * This field should contain at most 63 characters and must start with
@@ -174,15 +142,16 @@ public java.lang.String getJobId() {
    * 
* * string job_id = 2; - * * @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 { @@ -193,14 +162,11 @@ public com.google.protobuf.ByteString getJobIdBytes() { public static final int JOB_FIELD_NUMBER = 3; private com.google.cloud.batch.v1.Job job_; /** - * - * *
    * Required. The Job to create.
    * 
* * .google.cloud.batch.v1.Job job = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the job field is set. */ @java.lang.Override @@ -208,14 +174,11 @@ public boolean hasJob() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The Job to create.
    * 
* * .google.cloud.batch.v1.Job job = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The job. */ @java.lang.Override @@ -223,8 +186,6 @@ public com.google.cloud.batch.v1.Job getJob() { return job_ == null ? com.google.cloud.batch.v1.Job.getDefaultInstance() : job_; } /** - * - * *
    * Required. The Job to create.
    * 
@@ -237,12 +198,9 @@ public com.google.cloud.batch.v1.JobOrBuilder getJobOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID so that if you must retry your request, the server will know to
@@ -260,7 +218,6 @@ public com.google.cloud.batch.v1.JobOrBuilder getJobOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -269,15 +226,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID so that if you must retry your request, the server will know to
@@ -295,15 +251,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -312,7 +269,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +280,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -353,7 +310,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getJob()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getJob()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -366,21 +324,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.batch.v1.CreateJobRequest)) { return super.equals(obj); } - com.google.cloud.batch.v1.CreateJobRequest other = - (com.google.cloud.batch.v1.CreateJobRequest) obj; + com.google.cloud.batch.v1.CreateJobRequest other = (com.google.cloud.batch.v1.CreateJobRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getJobId().equals(other.getJobId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getJobId() + .equals(other.getJobId())) 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 (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -407,127 +368,120 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.CreateJobRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.CreateJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.CreateJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.CreateJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.CreateJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.CreateJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.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; } /** - * - * *
    * CreateJob Request.
    * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.CreateJobRequest) com.google.cloud.batch.v1.CreateJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_CreateJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_CreateJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_CreateJobRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_CreateJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.CreateJobRequest.class, - com.google.cloud.batch.v1.CreateJobRequest.Builder.class); + com.google.cloud.batch.v1.CreateJobRequest.class, com.google.cloud.batch.v1.CreateJobRequest.Builder.class); } // Construct using com.google.cloud.batch.v1.CreateJobRequest.newBuilder() @@ -535,17 +489,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getJobFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -562,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_CreateJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_CreateJobRequest_descriptor; } @java.lang.Override @@ -583,11 +537,8 @@ public com.google.cloud.batch.v1.CreateJobRequest build() { @java.lang.Override public com.google.cloud.batch.v1.CreateJobRequest buildPartial() { - com.google.cloud.batch.v1.CreateJobRequest result = - new com.google.cloud.batch.v1.CreateJobRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.CreateJobRequest result = new com.google.cloud.batch.v1.CreateJobRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -602,7 +553,9 @@ private void buildPartial0(com.google.cloud.batch.v1.CreateJobRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.job_ = jobBuilder_ == null ? job_ : jobBuilder_.build(); + result.job_ = jobBuilder_ == null + ? job_ + : jobBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { @@ -615,39 +568,38 @@ private void buildPartial0(com.google.cloud.batch.v1.CreateJobRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.CreateJobRequest) { - return mergeFrom((com.google.cloud.batch.v1.CreateJobRequest) other); + return mergeFrom((com.google.cloud.batch.v1.CreateJobRequest)other); } else { super.mergeFrom(other); return this; @@ -700,37 +652,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - jobId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + jobId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getJobFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -740,28 +689,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name where the Job will be created.
      * Pattern: "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; @@ -770,24 +714,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name where the Job will be created.
      * Pattern: "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 { @@ -795,41 +736,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name where the Job will be created.
      * Pattern: "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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the Job will be created.
      * Pattern: "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() { @@ -839,24 +769,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource name where the Job will be created.
      * Pattern: "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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -866,8 +790,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object jobId_ = ""; /** - * - * *
      * ID used to uniquely identify the Job within its parent scope.
      * This field should contain at most 63 characters and must start with
@@ -881,13 +803,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string job_id = 2; - * * @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; @@ -896,8 +818,6 @@ public java.lang.String getJobId() { } } /** - * - * *
      * ID used to uniquely identify the Job within its parent scope.
      * This field should contain at most 63 characters and must start with
@@ -911,14 +831,15 @@ public java.lang.String getJobId() {
      * 
* * string job_id = 2; - * * @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 { @@ -926,8 +847,6 @@ public com.google.protobuf.ByteString getJobIdBytes() { } } /** - * - * *
      * ID used to uniquely identify the Job within its parent scope.
      * This field should contain at most 63 characters and must start with
@@ -941,22 +860,18 @@ public com.google.protobuf.ByteString getJobIdBytes() {
      * 
* * string job_id = 2; - * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setJobId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } jobId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * ID used to uniquely identify the Job within its parent scope.
      * This field should contain at most 63 characters and must start with
@@ -970,7 +885,6 @@ public Builder setJobId(java.lang.String value) {
      * 
* * string job_id = 2; - * * @return This builder for chaining. */ public Builder clearJobId() { @@ -980,8 +894,6 @@ public Builder clearJobId() { return this; } /** - * - * *
      * ID used to uniquely identify the Job within its parent scope.
      * This field should contain at most 63 characters and must start with
@@ -995,14 +907,12 @@ public Builder clearJobId() {
      * 
* * string job_id = 2; - * * @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(); - } + public Builder setJobIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); jobId_ = value; bitField0_ |= 0x00000002; @@ -1012,33 +922,24 @@ public Builder setJobIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.batch.v1.Job job_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.Job, - com.google.cloud.batch.v1.Job.Builder, - com.google.cloud.batch.v1.JobOrBuilder> - jobBuilder_; + com.google.cloud.batch.v1.Job, com.google.cloud.batch.v1.Job.Builder, com.google.cloud.batch.v1.JobOrBuilder> jobBuilder_; /** - * - * *
      * Required. The Job to create.
      * 
* * .google.cloud.batch.v1.Job job = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the job field is set. */ public boolean hasJob() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The Job to create.
      * 
* * .google.cloud.batch.v1.Job job = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The job. */ public com.google.cloud.batch.v1.Job getJob() { @@ -1049,8 +950,6 @@ public com.google.cloud.batch.v1.Job getJob() { } } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1071,15 +970,14 @@ public Builder setJob(com.google.cloud.batch.v1.Job value) { return this; } /** - * - * *
      * Required. The Job to create.
      * 
* * .google.cloud.batch.v1.Job job = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setJob(com.google.cloud.batch.v1.Job.Builder builderForValue) { + public Builder setJob( + com.google.cloud.batch.v1.Job.Builder builderForValue) { if (jobBuilder_ == null) { job_ = builderForValue.build(); } else { @@ -1090,8 +988,6 @@ public Builder setJob(com.google.cloud.batch.v1.Job.Builder builderForValue) { return this; } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1100,9 +996,9 @@ public Builder setJob(com.google.cloud.batch.v1.Job.Builder builderForValue) { */ public Builder mergeJob(com.google.cloud.batch.v1.Job value) { if (jobBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && job_ != null - && job_ != com.google.cloud.batch.v1.Job.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + job_ != null && + job_ != com.google.cloud.batch.v1.Job.getDefaultInstance()) { getJobBuilder().mergeFrom(value); } else { job_ = value; @@ -1117,8 +1013,6 @@ public Builder mergeJob(com.google.cloud.batch.v1.Job value) { return this; } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1136,8 +1030,6 @@ public Builder clearJob() { return this; } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1150,8 +1042,6 @@ public com.google.cloud.batch.v1.Job.Builder getJobBuilder() { return getJobFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1162,12 +1052,11 @@ public com.google.cloud.batch.v1.JobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { return jobBuilder_.getMessageOrBuilder(); } else { - return job_ == null ? com.google.cloud.batch.v1.Job.getDefaultInstance() : job_; + return job_ == null ? + com.google.cloud.batch.v1.Job.getDefaultInstance() : job_; } } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1175,17 +1064,14 @@ public com.google.cloud.batch.v1.JobOrBuilder getJobOrBuilder() { * .google.cloud.batch.v1.Job job = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.Job, - com.google.cloud.batch.v1.Job.Builder, - com.google.cloud.batch.v1.JobOrBuilder> + com.google.cloud.batch.v1.Job, com.google.cloud.batch.v1.Job.Builder, com.google.cloud.batch.v1.JobOrBuilder> getJobFieldBuilder() { if (jobBuilder_ == null) { - jobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.Job, - com.google.cloud.batch.v1.Job.Builder, - com.google.cloud.batch.v1.JobOrBuilder>( - getJob(), getParentForChildren(), isClean()); + jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.Job, com.google.cloud.batch.v1.Job.Builder, com.google.cloud.batch.v1.JobOrBuilder>( + getJob(), + getParentForChildren(), + isClean()); job_ = null; } return jobBuilder_; @@ -1193,8 +1079,6 @@ public com.google.cloud.batch.v1.JobOrBuilder getJobOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID so that if you must retry your request, the server will know to
@@ -1212,13 +1096,13 @@ public com.google.cloud.batch.v1.JobOrBuilder getJobOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1227,8 +1111,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID so that if you must retry your request, the server will know to
@@ -1246,14 +1128,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1261,8 +1144,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID so that if you must retry your request, the server will know to
@@ -1280,22 +1161,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID so that if you must retry your request, the server will know to
@@ -1313,7 +1190,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1323,8 +1199,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID so that if you must retry your request, the server will know to
@@ -1342,23 +1216,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1368,12 +1240,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.CreateJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.CreateJobRequest) private static final com.google.cloud.batch.v1.CreateJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.CreateJobRequest(); } @@ -1382,27 +1254,27 @@ public static com.google.cloud.batch.v1.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; @@ -1417,4 +1289,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.CreateJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java similarity index 79% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java index 5321b24030d4..5b30010b809c 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java @@ -1,63 +1,36 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface CreateJobRequestOrBuilder - extends +public interface CreateJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.CreateJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name where the Job will be created.
    * Pattern: "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 parent resource name where the Job will be created.
    * Pattern: "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(); /** - * - * *
    * ID used to uniquely identify the Job within its parent scope.
    * This field should contain at most 63 characters and must start with
@@ -71,13 +44,10 @@ public interface CreateJobRequestOrBuilder
    * 
* * string job_id = 2; - * * @return The jobId. */ java.lang.String getJobId(); /** - * - * *
    * ID used to uniquely identify the Job within its parent scope.
    * This field should contain at most 63 characters and must start with
@@ -91,38 +61,30 @@ public interface CreateJobRequestOrBuilder
    * 
* * string job_id = 2; - * * @return The bytes for jobId. */ - com.google.protobuf.ByteString getJobIdBytes(); + com.google.protobuf.ByteString + getJobIdBytes(); /** - * - * *
    * Required. The Job to create.
    * 
* * .google.cloud.batch.v1.Job job = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the job field is set. */ boolean hasJob(); /** - * - * *
    * Required. The Job to create.
    * 
* * .google.cloud.batch.v1.Job job = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The job. */ com.google.cloud.batch.v1.Job getJob(); /** - * - * *
    * Required. The Job to create.
    * 
@@ -132,8 +94,6 @@ public interface CreateJobRequestOrBuilder com.google.cloud.batch.v1.JobOrBuilder getJobOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID so that if you must retry your request, the server will know to
@@ -151,13 +111,10 @@ public interface CreateJobRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID so that if you must retry your request, the server will know to
@@ -175,8 +132,8 @@ public interface CreateJobRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java similarity index 73% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java index 7495f825d804..abc9c3456bde 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto @@ -20,24 +5,21 @@ package com.google.cloud.batch.v1; /** - * - * *
  * DeleteJob Request.
  * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.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_ = ""; reason_ = ""; @@ -46,38 +28,33 @@ private DeleteJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteJobRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_DeleteJobRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_DeleteJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.DeleteJobRequest.class, - com.google.cloud.batch.v1.DeleteJobRequest.Builder.class); + com.google.cloud.batch.v1.DeleteJobRequest.class, com.google.cloud.batch.v1.DeleteJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Job name.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -86,29 +63,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; } } /** - * - * *
    * Job name.
    * 
* * 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 { @@ -117,18 +94,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REASON_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** - * - * *
    * Optional. Reason for this deletion.
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reason. */ @java.lang.Override @@ -137,29 +110,29 @@ public java.lang.String getReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } } /** - * - * *
    * Optional. Reason for this deletion.
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reason. */ @java.lang.Override - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -168,12 +141,9 @@ public com.google.protobuf.ByteString getReasonBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID so that if you must retry your request, the server will know to
@@ -191,7 +161,6 @@ public com.google.protobuf.ByteString getReasonBytes() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -200,15 +169,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID so that if you must retry your request, the server will know to
@@ -226,15 +194,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -243,7 +212,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -291,17 +260,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.batch.v1.DeleteJobRequest)) { return super.equals(obj); } - com.google.cloud.batch.v1.DeleteJobRequest other = - (com.google.cloud.batch.v1.DeleteJobRequest) obj; + com.google.cloud.batch.v1.DeleteJobRequest other = (com.google.cloud.batch.v1.DeleteJobRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getReason().equals(other.getReason())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getReason() + .equals(other.getReason())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,136 +295,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.DeleteJobRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.DeleteJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.DeleteJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.DeleteJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.DeleteJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.DeleteJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.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; } /** - * - * *
    * DeleteJob Request.
    * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.DeleteJobRequest) com.google.cloud.batch.v1.DeleteJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_DeleteJobRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_DeleteJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.DeleteJobRequest.class, - com.google.cloud.batch.v1.DeleteJobRequest.Builder.class); + com.google.cloud.batch.v1.DeleteJobRequest.class, com.google.cloud.batch.v1.DeleteJobRequest.Builder.class); } // Construct using com.google.cloud.batch.v1.DeleteJobRequest.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(); @@ -465,9 +432,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_DeleteJobRequest_descriptor; } @java.lang.Override @@ -486,11 +453,8 @@ public com.google.cloud.batch.v1.DeleteJobRequest build() { @java.lang.Override public com.google.cloud.batch.v1.DeleteJobRequest buildPartial() { - com.google.cloud.batch.v1.DeleteJobRequest result = - new com.google.cloud.batch.v1.DeleteJobRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.DeleteJobRequest result = new com.google.cloud.batch.v1.DeleteJobRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -512,39 +476,38 @@ private void buildPartial0(com.google.cloud.batch.v1.DeleteJobRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.DeleteJobRequest) { - return mergeFrom((com.google.cloud.batch.v1.DeleteJobRequest) other); + return mergeFrom((com.google.cloud.batch.v1.DeleteJobRequest)other); } else { super.mergeFrom(other); return this; @@ -594,31 +557,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -628,25 +587,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Job name.
      * 
* * 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; @@ -655,21 +611,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Job name.
      * 
* * 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 { @@ -677,35 +632,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Job name.
      * 
* * 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(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Job name.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -715,21 +663,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Job name.
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -739,20 +683,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object reason_ = ""; /** - * - * *
      * Optional. Reason for this deletion.
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; @@ -761,21 +703,20 @@ public java.lang.String getReason() { } } /** - * - * *
      * Optional. Reason for this deletion.
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reason. */ - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -783,35 +724,28 @@ public com.google.protobuf.ByteString getReasonBytes() { } } /** - * - * *
      * Optional. Reason for this deletion.
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReason( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reason_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Reason for this deletion.
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReason() { @@ -821,21 +755,17 @@ public Builder clearReason() { return this; } /** - * - * *
      * Optional. Reason for this deletion.
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for reason to set. * @return This builder for chaining. */ - public Builder setReasonBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000002; @@ -845,8 +775,6 @@ public Builder setReasonBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID so that if you must retry your request, the server will know to
@@ -864,13 +792,13 @@ public Builder setReasonBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -879,8 +807,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID so that if you must retry your request, the server will know to
@@ -898,14 +824,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -913,8 +840,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID so that if you must retry your request, the server will know to
@@ -932,22 +857,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID so that if you must retry your request, the server will know to
@@ -965,7 +886,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -975,8 +895,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID so that if you must retry your request, the server will know to
@@ -994,23 +912,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1020,12 +936,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.DeleteJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.DeleteJobRequest) private static final com.google.cloud.batch.v1.DeleteJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.DeleteJobRequest(); } @@ -1034,27 +950,27 @@ public static com.google.cloud.batch.v1.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; @@ -1069,4 +985,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.DeleteJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java similarity index 76% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java index fd648c9b4723..a06d8781a72f 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java @@ -1,82 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface DeleteJobRequestOrBuilder - extends +public interface DeleteJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.DeleteJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Job name.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Job name.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Reason for this deletion.
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The reason. */ java.lang.String getReason(); /** - * - * *
    * Optional. Reason for this deletion.
    * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for reason. */ - com.google.protobuf.ByteString getReasonBytes(); + com.google.protobuf.ByteString + getReasonBytes(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID so that if you must retry your request, the server will know to
@@ -94,13 +66,10 @@ public interface DeleteJobRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID so that if you must retry your request, the server will know to
@@ -118,8 +87,8 @@ public interface DeleteJobRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java similarity index 66% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java index a00efd98e8a1..e83d846d6ba0 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto @@ -20,8 +5,6 @@ package com.google.cloud.batch.v1; /** - * - * *
  * An Environment describes a collection of environment variables to set when
  * executing Tasks.
@@ -29,27 +12,28 @@
  *
  * Protobuf type {@code google.cloud.batch.v1.Environment}
  */
-public final class Environment extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Environment extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.Environment)
     EnvironmentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Environment.newBuilder() to construct.
   private Environment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Environment() {}
+  private Environment() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Environment();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.batch.v1.TaskProto
-        .internal_static_google_cloud_batch_v1_Environment_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -62,86 +46,74 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
       case 2:
         return internalGetSecretVariables();
       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.batch.v1.TaskProto
-        .internal_static_google_cloud_batch_v1_Environment_fieldAccessorTable
+    return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.batch.v1.Environment.class,
-            com.google.cloud.batch.v1.Environment.Builder.class);
+            com.google.cloud.batch.v1.Environment.class, com.google.cloud.batch.v1.Environment.Builder.class);
   }
 
-  public interface KMSEnvMapOrBuilder
-      extends
+  public interface KMSEnvMapOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.Environment.KMSEnvMap)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The name of the KMS key that will be used to decrypt the cipher text.
      * 
* * string key_name = 1; - * * @return The keyName. */ java.lang.String getKeyName(); /** - * - * *
      * The name of the KMS key that will be used to decrypt the cipher text.
      * 
* * string key_name = 1; - * * @return The bytes for keyName. */ - com.google.protobuf.ByteString getKeyNameBytes(); + com.google.protobuf.ByteString + getKeyNameBytes(); /** - * - * *
      * The value of the cipherText response from the `encrypt` method.
      * 
* * string cipher_text = 2; - * * @return The cipherText. */ java.lang.String getCipherText(); /** - * - * *
      * The value of the cipherText response from the `encrypt` method.
      * 
* * string cipher_text = 2; - * * @return The bytes for cipherText. */ - com.google.protobuf.ByteString getCipherTextBytes(); + com.google.protobuf.ByteString + getCipherTextBytes(); } - /** Protobuf type {@code google.cloud.batch.v1.Environment.KMSEnvMap} */ - public static final class KMSEnvMap extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.batch.v1.Environment.KMSEnvMap} + */ + public static final class KMSEnvMap extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.Environment.KMSEnvMap) KMSEnvMapOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KMSEnvMap.newBuilder() to construct. private KMSEnvMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KMSEnvMap() { keyName_ = ""; cipherText_ = ""; @@ -149,38 +121,33 @@ private KMSEnvMap() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KMSEnvMap(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_fieldAccessorTable + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.Environment.KMSEnvMap.class, - com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder.class); + com.google.cloud.batch.v1.Environment.KMSEnvMap.class, com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder.class); } public static final int KEY_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object keyName_ = ""; /** - * - * *
      * The name of the KMS key that will be used to decrypt the cipher text.
      * 
* * string key_name = 1; - * * @return The keyName. */ @java.lang.Override @@ -189,29 +156,29 @@ public java.lang.String getKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyName_ = s; return s; } } /** - * - * *
      * The name of the KMS key that will be used to decrypt the cipher text.
      * 
* * string key_name = 1; - * * @return The bytes for keyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyNameBytes() { + public com.google.protobuf.ByteString + getKeyNameBytes() { java.lang.Object ref = keyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyName_ = b; return b; } else { @@ -220,18 +187,14 @@ public com.google.protobuf.ByteString getKeyNameBytes() { } public static final int CIPHER_TEXT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object cipherText_ = ""; /** - * - * *
      * The value of the cipherText response from the `encrypt` method.
      * 
* * string cipher_text = 2; - * * @return The cipherText. */ @java.lang.Override @@ -240,29 +203,29 @@ public java.lang.String getCipherText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cipherText_ = s; return s; } } /** - * - * *
      * The value of the cipherText response from the `encrypt` method.
      * 
* * string cipher_text = 2; - * * @return The bytes for cipherText. */ @java.lang.Override - public com.google.protobuf.ByteString getCipherTextBytes() { + public com.google.protobuf.ByteString + getCipherTextBytes() { java.lang.Object ref = cipherText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cipherText_ = b; return b; } else { @@ -271,7 +234,6 @@ public com.google.protobuf.ByteString getCipherTextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,7 +245,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(keyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyName_); } @@ -313,16 +276,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.batch.v1.Environment.KMSEnvMap)) { return super.equals(obj); } - com.google.cloud.batch.v1.Environment.KMSEnvMap other = - (com.google.cloud.batch.v1.Environment.KMSEnvMap) obj; + com.google.cloud.batch.v1.Environment.KMSEnvMap other = (com.google.cloud.batch.v1.Environment.KMSEnvMap) obj; - if (!getKeyName().equals(other.getKeyName())) return false; - if (!getCipherText().equals(other.getCipherText())) return false; + if (!getKeyName() + .equals(other.getKeyName())) return false; + if (!getCipherText() + .equals(other.getCipherText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,93 +308,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.Environment.KMSEnvMap parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.Environment.KMSEnvMap prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -439,34 +399,36 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.batch.v1.Environment.KMSEnvMap} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.batch.v1.Environment.KMSEnvMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.Environment.KMSEnvMap) com.google.cloud.batch.v1.Environment.KMSEnvMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_fieldAccessorTable + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.Environment.KMSEnvMap.class, - com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder.class); + com.google.cloud.batch.v1.Environment.KMSEnvMap.class, com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder.class); } // Construct using com.google.cloud.batch.v1.Environment.KMSEnvMap.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(); @@ -477,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_KMSEnvMap_descriptor; } @java.lang.Override @@ -498,11 +460,8 @@ public com.google.cloud.batch.v1.Environment.KMSEnvMap build() { @java.lang.Override public com.google.cloud.batch.v1.Environment.KMSEnvMap buildPartial() { - com.google.cloud.batch.v1.Environment.KMSEnvMap result = - new com.google.cloud.batch.v1.Environment.KMSEnvMap(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.Environment.KMSEnvMap result = new com.google.cloud.batch.v1.Environment.KMSEnvMap(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -521,41 +480,38 @@ private void buildPartial0(com.google.cloud.batch.v1.Environment.KMSEnvMap resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.Environment.KMSEnvMap) { - return mergeFrom((com.google.cloud.batch.v1.Environment.KMSEnvMap) other); + return mergeFrom((com.google.cloud.batch.v1.Environment.KMSEnvMap)other); } else { super.mergeFrom(other); return this; @@ -563,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.batch.v1.Environment.KMSEnvMap other) { - if (other == com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance()) - return this; + if (other == com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance()) return this; if (!other.getKeyName().isEmpty()) { keyName_ = other.keyName_; bitField0_ |= 0x00000001; @@ -601,25 +556,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - keyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - cipherText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + keyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + cipherText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -629,25 +581,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object keyName_ = ""; /** - * - * *
        * The name of the KMS key that will be used to decrypt the cipher text.
        * 
* * string key_name = 1; - * * @return The keyName. */ public java.lang.String getKeyName() { java.lang.Object ref = keyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyName_ = s; return s; @@ -656,21 +605,20 @@ public java.lang.String getKeyName() { } } /** - * - * *
        * The name of the KMS key that will be used to decrypt the cipher text.
        * 
* * string key_name = 1; - * * @return The bytes for keyName. */ - public com.google.protobuf.ByteString getKeyNameBytes() { + public com.google.protobuf.ByteString + getKeyNameBytes() { java.lang.Object ref = keyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); keyName_ = b; return b; } else { @@ -678,35 +626,28 @@ public com.google.protobuf.ByteString getKeyNameBytes() { } } /** - * - * *
        * The name of the KMS key that will be used to decrypt the cipher text.
        * 
* * string key_name = 1; - * * @param value The keyName to set. * @return This builder for chaining. */ - public Builder setKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } keyName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The name of the KMS key that will be used to decrypt the cipher text.
        * 
* * string key_name = 1; - * * @return This builder for chaining. */ public Builder clearKeyName() { @@ -716,21 +657,17 @@ public Builder clearKeyName() { return this; } /** - * - * *
        * The name of the KMS key that will be used to decrypt the cipher text.
        * 
* * string key_name = 1; - * * @param value The bytes for keyName to set. * @return This builder for chaining. */ - public Builder setKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyName_ = value; bitField0_ |= 0x00000001; @@ -740,20 +677,18 @@ public Builder setKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object cipherText_ = ""; /** - * - * *
        * The value of the cipherText response from the `encrypt` method.
        * 
* * string cipher_text = 2; - * * @return The cipherText. */ public java.lang.String getCipherText() { java.lang.Object ref = cipherText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cipherText_ = s; return s; @@ -762,21 +697,20 @@ public java.lang.String getCipherText() { } } /** - * - * *
        * The value of the cipherText response from the `encrypt` method.
        * 
* * string cipher_text = 2; - * * @return The bytes for cipherText. */ - public com.google.protobuf.ByteString getCipherTextBytes() { + public com.google.protobuf.ByteString + getCipherTextBytes() { java.lang.Object ref = cipherText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cipherText_ = b; return b; } else { @@ -784,35 +718,28 @@ public com.google.protobuf.ByteString getCipherTextBytes() { } } /** - * - * *
        * The value of the cipherText response from the `encrypt` method.
        * 
* * string cipher_text = 2; - * * @param value The cipherText to set. * @return This builder for chaining. */ - public Builder setCipherText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCipherText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cipherText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The value of the cipherText response from the `encrypt` method.
        * 
* * string cipher_text = 2; - * * @return This builder for chaining. */ public Builder clearCipherText() { @@ -822,28 +749,23 @@ public Builder clearCipherText() { return this; } /** - * - * *
        * The value of the cipherText response from the `encrypt` method.
        * 
* * string cipher_text = 2; - * * @param value The bytes for cipherText to set. * @return This builder for chaining. */ - public Builder setCipherTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCipherTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cipherText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -856,12 +778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.Environment.KMSEnvMap) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.Environment.KMSEnvMap) private static final com.google.cloud.batch.v1.Environment.KMSEnvMap DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.Environment.KMSEnvMap(); } @@ -870,28 +792,27 @@ public static com.google.cloud.batch.v1.Environment.KMSEnvMap getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KMSEnvMap 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 KMSEnvMap 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; @@ -906,38 +827,37 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.Environment.KMSEnvMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int VARIABLES_FIELD_NUMBER = 1; - private static final class VariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Environment_VariablesEntry_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.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_VariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField variables_; - - private com.google.protobuf.MapField internalGetVariables() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> variables_; + private com.google.protobuf.MapField + internalGetVariables() { if (variables_ == null) { - return com.google.protobuf.MapField.emptyMapField(VariablesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + VariablesDefaultEntryHolder.defaultEntry); } return variables_; } - public int getVariablesCount() { return internalGetVariables().getMap().size(); } /** - * - * *
    * A map of environment variable names to values.
    * 
@@ -945,21 +865,20 @@ public int getVariablesCount() { * map<string, string> variables = 1; */ @java.lang.Override - public boolean containsVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetVariables().getMap().containsKey(key); } - /** Use {@link #getVariablesMap()} instead. */ + /** + * Use {@link #getVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getVariables() { return getVariablesMap(); } /** - * - * *
    * A map of environment variable names to values.
    * 
@@ -971,8 +890,6 @@ public java.util.Map getVariablesMap() { return internalGetVariables().getMap(); } /** - * - * *
    * A map of environment variable names to values.
    * 
@@ -980,19 +897,17 @@ public java.util.Map getVariablesMap() { * map<string, string> variables = 1; */ @java.lang.Override - public /* nullable */ java.lang.String getVariablesOrDefault( + public /* nullable */ +java.lang.String getVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetVariables().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * A map of environment variable names to values.
    * 
@@ -1000,11 +915,11 @@ public java.util.Map getVariablesMap() { * map<string, string> variables = 1; */ @java.lang.Override - public java.lang.String getVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetVariables().getMap(); + public java.lang.String getVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1012,36 +927,32 @@ public java.lang.String getVariablesOrThrow(java.lang.String key) { } public static final int SECRET_VARIABLES_FIELD_NUMBER = 2; - private static final class SecretVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Environment_SecretVariablesEntry_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.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_SecretVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField secretVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> secretVariables_; private com.google.protobuf.MapField - internalGetSecretVariables() { + internalGetSecretVariables() { if (secretVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( SecretVariablesDefaultEntryHolder.defaultEntry); } return secretVariables_; } - public int getSecretVariablesCount() { return internalGetSecretVariables().getMap().size(); } /** - * - * *
    * A map of environment variable names to Secret Manager secret names.
    * The VM will access the named secrets to set the value of each environment
@@ -1051,21 +962,20 @@ public int getSecretVariablesCount() {
    * map<string, string> secret_variables = 2;
    */
   @java.lang.Override
-  public boolean containsSecretVariables(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsSecretVariables(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetSecretVariables().getMap().containsKey(key);
   }
-  /** Use {@link #getSecretVariablesMap()} instead. */
+  /**
+   * Use {@link #getSecretVariablesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getSecretVariables() {
     return getSecretVariablesMap();
   }
   /**
-   *
-   *
    * 
    * A map of environment variable names to Secret Manager secret names.
    * The VM will access the named secrets to set the value of each environment
@@ -1079,8 +989,6 @@ public java.util.Map getSecretVariablesMap()
     return internalGetSecretVariables().getMap();
   }
   /**
-   *
-   *
    * 
    * A map of environment variable names to Secret Manager secret names.
    * The VM will access the named secrets to set the value of each environment
@@ -1090,19 +998,17 @@ public java.util.Map getSecretVariablesMap()
    * map<string, string> secret_variables = 2;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getSecretVariablesOrDefault(
+  public /* nullable */
+java.lang.String getSecretVariablesOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetSecretVariables().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetSecretVariables().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * A map of environment variable names to Secret Manager secret names.
    * The VM will access the named secrets to set the value of each environment
@@ -1112,11 +1018,11 @@ public java.util.Map getSecretVariablesMap()
    * map<string, string> secret_variables = 2;
    */
   @java.lang.Override
-  public java.lang.String getSecretVariablesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetSecretVariables().getMap();
+  public java.lang.String getSecretVariablesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetSecretVariables().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1126,15 +1032,12 @@ public java.lang.String getSecretVariablesOrThrow(java.lang.String key) {
   public static final int ENCRYPTED_VARIABLES_FIELD_NUMBER = 3;
   private com.google.cloud.batch.v1.Environment.KMSEnvMap encryptedVariables_;
   /**
-   *
-   *
    * 
    * An encrypted JSON dictionary where the key/value pairs correspond to
    * environment variable names and their values.
    * 
* * .google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3; - * * @return Whether the encryptedVariables field is set. */ @java.lang.Override @@ -1142,26 +1045,19 @@ public boolean hasEncryptedVariables() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * An encrypted JSON dictionary where the key/value pairs correspond to
    * environment variable names and their values.
    * 
* * .google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3; - * * @return The encryptedVariables. */ @java.lang.Override public com.google.cloud.batch.v1.Environment.KMSEnvMap getEncryptedVariables() { - return encryptedVariables_ == null - ? com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance() - : encryptedVariables_; + return encryptedVariables_ == null ? com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance() : encryptedVariables_; } /** - * - * *
    * An encrypted JSON dictionary where the key/value pairs correspond to
    * environment variable names and their values.
@@ -1171,13 +1067,10 @@ public com.google.cloud.batch.v1.Environment.KMSEnvMap getEncryptedVariables() {
    */
   @java.lang.Override
   public com.google.cloud.batch.v1.Environment.KMSEnvMapOrBuilder getEncryptedVariablesOrBuilder() {
-    return encryptedVariables_ == null
-        ? com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance()
-        : encryptedVariables_;
+    return encryptedVariables_ == null ? com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance() : encryptedVariables_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1189,11 +1082,20 @@ 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, internalGetVariables(), VariablesDefaultEntryHolder.defaultEntry, 1);
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetSecretVariables(), SecretVariablesDefaultEntryHolder.defaultEntry, 2);
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetVariables(),
+        VariablesDefaultEntryHolder.defaultEntry,
+        1);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetSecretVariables(),
+        SecretVariablesDefaultEntryHolder.defaultEntry,
+        2);
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(3, getEncryptedVariables());
     }
@@ -1206,28 +1108,29 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetVariables().getMap().entrySet()) {
-      com.google.protobuf.MapEntry variables__ =
-          VariablesDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, variables__);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetSecretVariables().getMap().entrySet()) {
-      com.google.protobuf.MapEntry secretVariables__ =
-          SecretVariablesDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, secretVariables__);
+    for (java.util.Map.Entry entry
+         : internalGetVariables().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, variables__);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetSecretVariables().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      secretVariables__ = SecretVariablesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, secretVariables__);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEncryptedVariables());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getEncryptedVariables());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1237,18 +1140,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.batch.v1.Environment)) {
       return super.equals(obj);
     }
     com.google.cloud.batch.v1.Environment other = (com.google.cloud.batch.v1.Environment) obj;
 
-    if (!internalGetVariables().equals(other.internalGetVariables())) return false;
-    if (!internalGetSecretVariables().equals(other.internalGetSecretVariables())) return false;
+    if (!internalGetVariables().equals(
+        other.internalGetVariables())) return false;
+    if (!internalGetSecretVariables().equals(
+        other.internalGetSecretVariables())) return false;
     if (hasEncryptedVariables() != other.hasEncryptedVariables()) return false;
     if (hasEncryptedVariables()) {
-      if (!getEncryptedVariables().equals(other.getEncryptedVariables())) return false;
+      if (!getEncryptedVariables()
+          .equals(other.getEncryptedVariables())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1278,103 +1184,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.batch.v1.Environment parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.batch.v1.Environment parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.batch.v1.Environment parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.batch.v1.Environment parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.batch.v1.Environment parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.batch.v1.Environment parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.batch.v1.Environment parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.batch.v1.Environment parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.batch.v1.Environment parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.batch.v1.Environment parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   public static com.google.cloud.batch.v1.Environment 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.batch.v1.Environment parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.batch.v1.Environment parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.batch.v1.Environment parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.batch.v1.Environment prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * An Environment describes a collection of environment variables to set when
    * executing Tasks.
@@ -1382,13 +1284,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.batch.v1.Environment}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.Environment)
       com.google.cloud.batch.v1.EnvironmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.TaskProto
-          .internal_static_google_cloud_batch_v1_Environment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -1400,10 +1302,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
         case 2:
           return internalGetSecretVariables();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
     protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
         int number) {
@@ -1413,18 +1315,16 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
         case 2:
           return internalGetMutableSecretVariables();
         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.batch.v1.TaskProto
-          .internal_static_google_cloud_batch_v1_Environment_fieldAccessorTable
+      return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.Environment.class,
-              com.google.cloud.batch.v1.Environment.Builder.class);
+              com.google.cloud.batch.v1.Environment.class, com.google.cloud.batch.v1.Environment.Builder.class);
     }
 
     // Construct using com.google.cloud.batch.v1.Environment.newBuilder()
@@ -1432,17 +1332,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getEncryptedVariablesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1458,9 +1358,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.batch.v1.TaskProto
-          .internal_static_google_cloud_batch_v1_Environment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Environment_descriptor;
     }
 
     @java.lang.Override
@@ -1479,11 +1379,8 @@ public com.google.cloud.batch.v1.Environment build() {
 
     @java.lang.Override
     public com.google.cloud.batch.v1.Environment buildPartial() {
-      com.google.cloud.batch.v1.Environment result =
-          new com.google.cloud.batch.v1.Environment(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.batch.v1.Environment result = new com.google.cloud.batch.v1.Environment(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1500,10 +1397,9 @@ private void buildPartial0(com.google.cloud.batch.v1.Environment result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.encryptedVariables_ =
-            encryptedVariablesBuilder_ == null
-                ? encryptedVariables_
-                : encryptedVariablesBuilder_.build();
+        result.encryptedVariables_ = encryptedVariablesBuilder_ == null
+            ? encryptedVariables_
+            : encryptedVariablesBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -1513,39 +1409,38 @@ private void buildPartial0(com.google.cloud.batch.v1.Environment result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.batch.v1.Environment) {
-        return mergeFrom((com.google.cloud.batch.v1.Environment) other);
+        return mergeFrom((com.google.cloud.batch.v1.Environment)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1554,9 +1449,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
 
     public Builder mergeFrom(com.google.cloud.batch.v1.Environment other) {
       if (other == com.google.cloud.batch.v1.Environment.getDefaultInstance()) return this;
-      internalGetMutableVariables().mergeFrom(other.internalGetVariables());
+      internalGetMutableVariables().mergeFrom(
+          other.internalGetVariables());
       bitField0_ |= 0x00000001;
-      internalGetMutableSecretVariables().mergeFrom(other.internalGetSecretVariables());
+      internalGetMutableSecretVariables().mergeFrom(
+          other.internalGetSecretVariables());
       bitField0_ |= 0x00000002;
       if (other.hasEncryptedVariables()) {
         mergeEncryptedVariables(other.getEncryptedVariables());
@@ -1587,44 +1484,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.protobuf.MapEntry variables__ =
-                    input.readMessage(
-                        VariablesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableVariables()
-                    .getMutableMap()
-                    .put(variables__.getKey(), variables__.getValue());
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.protobuf.MapEntry secretVariables__ =
-                    input.readMessage(
-                        SecretVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableSecretVariables()
-                    .getMutableMap()
-                    .put(secretVariables__.getKey(), secretVariables__.getValue());
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(
-                    getEncryptedVariablesFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.protobuf.MapEntry
+              variables__ = input.readMessage(
+                  VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableVariables().getMutableMap().put(
+                  variables__.getKey(), variables__.getValue());
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.protobuf.MapEntry
+              secretVariables__ = input.readMessage(
+                  SecretVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableSecretVariables().getMutableMap().put(
+                  secretVariables__.getKey(), secretVariables__.getValue());
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getEncryptedVariablesFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              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) {
@@ -1634,24 +1524,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.MapField variables_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> variables_;
     private com.google.protobuf.MapField
         internalGetVariables() {
       if (variables_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(VariablesDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            VariablesDefaultEntryHolder.defaultEntry);
       }
       return variables_;
     }
-
     private com.google.protobuf.MapField
         internalGetMutableVariables() {
       if (variables_ == null) {
-        variables_ =
-            com.google.protobuf.MapField.newMapField(VariablesDefaultEntryHolder.defaultEntry);
+        variables_ = com.google.protobuf.MapField.newMapField(
+            VariablesDefaultEntryHolder.defaultEntry);
       }
       if (!variables_.isMutable()) {
         variables_ = variables_.copy();
@@ -1660,13 +1549,10 @@ public Builder mergeFrom(
       onChanged();
       return variables_;
     }
-
     public int getVariablesCount() {
       return internalGetVariables().getMap().size();
     }
     /**
-     *
-     *
      * 
      * A map of environment variable names to values.
      * 
@@ -1674,21 +1560,20 @@ public int getVariablesCount() { * map<string, string> variables = 1; */ @java.lang.Override - public boolean containsVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetVariables().getMap().containsKey(key); } - /** Use {@link #getVariablesMap()} instead. */ + /** + * Use {@link #getVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getVariables() { return getVariablesMap(); } /** - * - * *
      * A map of environment variable names to values.
      * 
@@ -1700,8 +1585,6 @@ public java.util.Map getVariablesMap() { return internalGetVariables().getMap(); } /** - * - * *
      * A map of environment variable names to values.
      * 
@@ -1709,19 +1592,17 @@ public java.util.Map getVariablesMap() { * map<string, string> variables = 1; */ @java.lang.Override - public /* nullable */ java.lang.String getVariablesOrDefault( + public /* nullable */ +java.lang.String getVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetVariables().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * A map of environment variable names to values.
      * 
@@ -1729,81 +1610,79 @@ public java.util.Map getVariablesMap() { * map<string, string> variables = 1; */ @java.lang.Override - public java.lang.String getVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetVariables().getMap(); + public java.lang.String getVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearVariables() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVariables().getMutableMap().clear(); + internalGetMutableVariables().getMutableMap() + .clear(); return this; } /** - * - * *
      * A map of environment variable names to values.
      * 
* * map<string, string> variables = 1; */ - public Builder removeVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableVariables().getMutableMap().remove(key); + public Builder removeVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableVariables() { + public java.util.Map + getMutableVariables() { bitField0_ |= 0x00000001; return internalGetMutableVariables().getMutableMap(); } /** - * - * *
      * A map of environment variable names to values.
      * 
* * map<string, string> variables = 1; */ - public Builder putVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableVariables().getMutableMap().put(key, value); + public Builder putVariables( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableVariables().getMutableMap() + .put(key, value); bitField0_ |= 0x00000001; return this; } /** - * - * *
      * A map of environment variable names to values.
      * 
* * map<string, string> variables = 1; */ - public Builder putAllVariables(java.util.Map values) { - internalGetMutableVariables().getMutableMap().putAll(values); + public Builder putAllVariables( + java.util.Map values) { + internalGetMutableVariables().getMutableMap() + .putAll(values); bitField0_ |= 0x00000001; return this; } - private com.google.protobuf.MapField secretVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> secretVariables_; private com.google.protobuf.MapField internalGetSecretVariables() { if (secretVariables_ == null) { @@ -1812,13 +1691,11 @@ public Builder putAllVariables(java.util.Map } return secretVariables_; } - private com.google.protobuf.MapField internalGetMutableSecretVariables() { if (secretVariables_ == null) { - secretVariables_ = - com.google.protobuf.MapField.newMapField( - SecretVariablesDefaultEntryHolder.defaultEntry); + secretVariables_ = com.google.protobuf.MapField.newMapField( + SecretVariablesDefaultEntryHolder.defaultEntry); } if (!secretVariables_.isMutable()) { secretVariables_ = secretVariables_.copy(); @@ -1827,13 +1704,10 @@ public Builder putAllVariables(java.util.Map onChanged(); return secretVariables_; } - public int getSecretVariablesCount() { return internalGetSecretVariables().getMap().size(); } /** - * - * *
      * A map of environment variable names to Secret Manager secret names.
      * The VM will access the named secrets to set the value of each environment
@@ -1843,21 +1717,20 @@ public int getSecretVariablesCount() {
      * map<string, string> secret_variables = 2;
      */
     @java.lang.Override
-    public boolean containsSecretVariables(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsSecretVariables(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetSecretVariables().getMap().containsKey(key);
     }
-    /** Use {@link #getSecretVariablesMap()} instead. */
+    /**
+     * Use {@link #getSecretVariablesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getSecretVariables() {
       return getSecretVariablesMap();
     }
     /**
-     *
-     *
      * 
      * A map of environment variable names to Secret Manager secret names.
      * The VM will access the named secrets to set the value of each environment
@@ -1871,8 +1744,6 @@ public java.util.Map getSecretVariablesMap()
       return internalGetSecretVariables().getMap();
     }
     /**
-     *
-     *
      * 
      * A map of environment variable names to Secret Manager secret names.
      * The VM will access the named secrets to set the value of each environment
@@ -1882,19 +1753,17 @@ public java.util.Map getSecretVariablesMap()
      * map<string, string> secret_variables = 2;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getSecretVariablesOrDefault(
+    public /* nullable */
+java.lang.String getSecretVariablesOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetSecretVariables().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetSecretVariables().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * A map of environment variable names to Secret Manager secret names.
      * The VM will access the named secrets to set the value of each environment
@@ -1904,25 +1773,23 @@ public java.util.Map getSecretVariablesMap()
      * map<string, string> secret_variables = 2;
      */
     @java.lang.Override
-    public java.lang.String getSecretVariablesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetSecretVariables().getMap();
+    public java.lang.String getSecretVariablesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetSecretVariables().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearSecretVariables() {
       bitField0_ = (bitField0_ & ~0x00000002);
-      internalGetMutableSecretVariables().getMutableMap().clear();
+      internalGetMutableSecretVariables().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * A map of environment variable names to Secret Manager secret names.
      * The VM will access the named secrets to set the value of each environment
@@ -1931,22 +1798,23 @@ public Builder clearSecretVariables() {
      *
      * map<string, string> secret_variables = 2;
      */
-    public Builder removeSecretVariables(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableSecretVariables().getMutableMap().remove(key);
+    public Builder removeSecretVariables(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableSecretVariables().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableSecretVariables() {
+    public java.util.Map
+        getMutableSecretVariables() {
       bitField0_ |= 0x00000002;
       return internalGetMutableSecretVariables().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * A map of environment variable names to Secret Manager secret names.
      * The VM will access the named secrets to set the value of each environment
@@ -1955,20 +1823,17 @@ public java.util.Map getMutableSecretVariabl
      *
      * map<string, string> secret_variables = 2;
      */
-    public Builder putSecretVariables(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableSecretVariables().getMutableMap().put(key, value);
+    public Builder putSecretVariables(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableSecretVariables().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000002;
       return this;
     }
     /**
-     *
-     *
      * 
      * A map of environment variable names to Secret Manager secret names.
      * The VM will access the named secrets to set the value of each environment
@@ -1977,57 +1842,46 @@ public Builder putSecretVariables(java.lang.String key, java.lang.String value)
      *
      * map<string, string> secret_variables = 2;
      */
-    public Builder putAllSecretVariables(java.util.Map values) {
-      internalGetMutableSecretVariables().getMutableMap().putAll(values);
+    public Builder putAllSecretVariables(
+        java.util.Map values) {
+      internalGetMutableSecretVariables().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000002;
       return this;
     }
 
     private com.google.cloud.batch.v1.Environment.KMSEnvMap encryptedVariables_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.batch.v1.Environment.KMSEnvMap,
-            com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder,
-            com.google.cloud.batch.v1.Environment.KMSEnvMapOrBuilder>
-        encryptedVariablesBuilder_;
+        com.google.cloud.batch.v1.Environment.KMSEnvMap, com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder, com.google.cloud.batch.v1.Environment.KMSEnvMapOrBuilder> encryptedVariablesBuilder_;
     /**
-     *
-     *
      * 
      * An encrypted JSON dictionary where the key/value pairs correspond to
      * environment variable names and their values.
      * 
* * .google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3; - * * @return Whether the encryptedVariables field is set. */ public boolean hasEncryptedVariables() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * An encrypted JSON dictionary where the key/value pairs correspond to
      * environment variable names and their values.
      * 
* * .google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3; - * * @return The encryptedVariables. */ public com.google.cloud.batch.v1.Environment.KMSEnvMap getEncryptedVariables() { if (encryptedVariablesBuilder_ == null) { - return encryptedVariables_ == null - ? com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance() - : encryptedVariables_; + return encryptedVariables_ == null ? com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance() : encryptedVariables_; } else { return encryptedVariablesBuilder_.getMessage(); } } /** - * - * *
      * An encrypted JSON dictionary where the key/value pairs correspond to
      * environment variable names and their values.
@@ -2049,8 +1903,6 @@ public Builder setEncryptedVariables(com.google.cloud.batch.v1.Environment.KMSEn
       return this;
     }
     /**
-     *
-     *
      * 
      * An encrypted JSON dictionary where the key/value pairs correspond to
      * environment variable names and their values.
@@ -2070,8 +1922,6 @@ public Builder setEncryptedVariables(
       return this;
     }
     /**
-     *
-     *
      * 
      * An encrypted JSON dictionary where the key/value pairs correspond to
      * environment variable names and their values.
@@ -2081,10 +1931,9 @@ public Builder setEncryptedVariables(
      */
     public Builder mergeEncryptedVariables(com.google.cloud.batch.v1.Environment.KMSEnvMap value) {
       if (encryptedVariablesBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && encryptedVariables_ != null
-            && encryptedVariables_
-                != com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          encryptedVariables_ != null &&
+          encryptedVariables_ != com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance()) {
           getEncryptedVariablesBuilder().mergeFrom(value);
         } else {
           encryptedVariables_ = value;
@@ -2099,8 +1948,6 @@ public Builder mergeEncryptedVariables(com.google.cloud.batch.v1.Environment.KMS
       return this;
     }
     /**
-     *
-     *
      * 
      * An encrypted JSON dictionary where the key/value pairs correspond to
      * environment variable names and their values.
@@ -2119,8 +1966,6 @@ public Builder clearEncryptedVariables() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An encrypted JSON dictionary where the key/value pairs correspond to
      * environment variable names and their values.
@@ -2134,8 +1979,6 @@ public com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder getEncryptedVaria
       return getEncryptedVariablesFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * An encrypted JSON dictionary where the key/value pairs correspond to
      * environment variable names and their values.
@@ -2143,19 +1986,15 @@ public com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder getEncryptedVaria
      *
      * .google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;
      */
-    public com.google.cloud.batch.v1.Environment.KMSEnvMapOrBuilder
-        getEncryptedVariablesOrBuilder() {
+    public com.google.cloud.batch.v1.Environment.KMSEnvMapOrBuilder getEncryptedVariablesOrBuilder() {
       if (encryptedVariablesBuilder_ != null) {
         return encryptedVariablesBuilder_.getMessageOrBuilder();
       } else {
-        return encryptedVariables_ == null
-            ? com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance()
-            : encryptedVariables_;
+        return encryptedVariables_ == null ?
+            com.google.cloud.batch.v1.Environment.KMSEnvMap.getDefaultInstance() : encryptedVariables_;
       }
     }
     /**
-     *
-     *
      * 
      * An encrypted JSON dictionary where the key/value pairs correspond to
      * environment variable names and their values.
@@ -2164,24 +2003,21 @@ public com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder getEncryptedVaria
      * .google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.batch.v1.Environment.KMSEnvMap,
-            com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder,
-            com.google.cloud.batch.v1.Environment.KMSEnvMapOrBuilder>
+        com.google.cloud.batch.v1.Environment.KMSEnvMap, com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder, com.google.cloud.batch.v1.Environment.KMSEnvMapOrBuilder> 
         getEncryptedVariablesFieldBuilder() {
       if (encryptedVariablesBuilder_ == null) {
-        encryptedVariablesBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.batch.v1.Environment.KMSEnvMap,
-                com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder,
-                com.google.cloud.batch.v1.Environment.KMSEnvMapOrBuilder>(
-                getEncryptedVariables(), getParentForChildren(), isClean());
+        encryptedVariablesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.batch.v1.Environment.KMSEnvMap, com.google.cloud.batch.v1.Environment.KMSEnvMap.Builder, com.google.cloud.batch.v1.Environment.KMSEnvMapOrBuilder>(
+                getEncryptedVariables(),
+                getParentForChildren(),
+                isClean());
         encryptedVariables_ = null;
       }
       return encryptedVariablesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2191,12 +2027,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.Environment)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.Environment)
   private static final com.google.cloud.batch.v1.Environment DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.batch.v1.Environment();
   }
@@ -2205,27 +2041,27 @@ public static com.google.cloud.batch.v1.Environment getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Environment 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 Environment 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;
@@ -2240,4 +2076,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.batch.v1.Environment getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java
similarity index 70%
rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java
rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java
index 06bf0e6d1d2d..ef66c37d8f10 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java
+++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java
@@ -1,32 +1,14 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/batch/v1/task.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.batch.v1;
 
-public interface EnvironmentOrBuilder
-    extends
+public interface EnvironmentOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.Environment)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A map of environment variable names to values.
    * 
@@ -35,31 +17,30 @@ public interface EnvironmentOrBuilder */ int getVariablesCount(); /** - * - * *
    * A map of environment variable names to values.
    * 
* * map<string, string> variables = 1; */ - boolean containsVariables(java.lang.String key); - /** Use {@link #getVariablesMap()} instead. */ + boolean containsVariables( + java.lang.String key); + /** + * Use {@link #getVariablesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getVariables(); + java.util.Map + getVariables(); /** - * - * *
    * A map of environment variable names to values.
    * 
* * map<string, string> variables = 1; */ - java.util.Map getVariablesMap(); + java.util.Map + getVariablesMap(); /** - * - * *
    * A map of environment variable names to values.
    * 
@@ -67,24 +48,21 @@ public interface EnvironmentOrBuilder * map<string, string> variables = 1; */ /* nullable */ - java.lang.String getVariablesOrDefault( +java.lang.String getVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * A map of environment variable names to values.
    * 
* * map<string, string> variables = 1; */ - java.lang.String getVariablesOrThrow(java.lang.String key); + java.lang.String getVariablesOrThrow( + java.lang.String key); /** - * - * *
    * A map of environment variable names to Secret Manager secret names.
    * The VM will access the named secrets to set the value of each environment
@@ -95,8 +73,6 @@ java.lang.String getVariablesOrDefault(
    */
   int getSecretVariablesCount();
   /**
-   *
-   *
    * 
    * A map of environment variable names to Secret Manager secret names.
    * The VM will access the named secrets to set the value of each environment
@@ -105,13 +81,15 @@ java.lang.String getVariablesOrDefault(
    *
    * map<string, string> secret_variables = 2;
    */
-  boolean containsSecretVariables(java.lang.String key);
-  /** Use {@link #getSecretVariablesMap()} instead. */
+  boolean containsSecretVariables(
+      java.lang.String key);
+  /**
+   * Use {@link #getSecretVariablesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getSecretVariables();
+  java.util.Map
+  getSecretVariables();
   /**
-   *
-   *
    * 
    * A map of environment variable names to Secret Manager secret names.
    * The VM will access the named secrets to set the value of each environment
@@ -120,10 +98,9 @@ java.lang.String getVariablesOrDefault(
    *
    * map<string, string> secret_variables = 2;
    */
-  java.util.Map getSecretVariablesMap();
+  java.util.Map
+  getSecretVariablesMap();
   /**
-   *
-   *
    * 
    * A map of environment variable names to Secret Manager secret names.
    * The VM will access the named secrets to set the value of each environment
@@ -133,13 +110,11 @@ java.lang.String getVariablesOrDefault(
    * map<string, string> secret_variables = 2;
    */
   /* nullable */
-  java.lang.String getSecretVariablesOrDefault(
+java.lang.String getSecretVariablesOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * A map of environment variable names to Secret Manager secret names.
    * The VM will access the named secrets to set the value of each environment
@@ -148,37 +123,30 @@ java.lang.String getSecretVariablesOrDefault(
    *
    * map<string, string> secret_variables = 2;
    */
-  java.lang.String getSecretVariablesOrThrow(java.lang.String key);
+  java.lang.String getSecretVariablesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * An encrypted JSON dictionary where the key/value pairs correspond to
    * environment variable names and their values.
    * 
* * .google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3; - * * @return Whether the encryptedVariables field is set. */ boolean hasEncryptedVariables(); /** - * - * *
    * An encrypted JSON dictionary where the key/value pairs correspond to
    * environment variable names and their values.
    * 
* * .google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3; - * * @return The encryptedVariables. */ com.google.cloud.batch.v1.Environment.KMSEnvMap getEncryptedVariables(); /** - * - * *
    * An encrypted JSON dictionary where the key/value pairs correspond to
    * environment variable names and their values.
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java
similarity index 66%
rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java
rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java
index c4183654238c..7da7d0b8287e 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java
+++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/batch/v1/volume.proto
 
@@ -20,62 +5,55 @@
 package com.google.cloud.batch.v1;
 
 /**
- *
- *
  * 
  * Represents a Google Cloud Storage volume.
  * 
* * Protobuf type {@code google.cloud.batch.v1.GCS} */ -public final class GCS extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GCS extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.GCS) GCSOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GCS.newBuilder() to construct. private GCS(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GCS() { remotePath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GCS(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.VolumeProto - .internal_static_google_cloud_batch_v1_GCS_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.VolumeProto.internal_static_google_cloud_batch_v1_GCS_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.VolumeProto - .internal_static_google_cloud_batch_v1_GCS_fieldAccessorTable + return com.google.cloud.batch.v1.VolumeProto.internal_static_google_cloud_batch_v1_GCS_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.batch.v1.GCS.class, com.google.cloud.batch.v1.GCS.Builder.class); } public static final int REMOTE_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object remotePath_ = ""; /** - * - * *
    * Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
    * bucket_name, bucket_name/subdirectory/
    * 
* * string remote_path = 1; - * * @return The remotePath. */ @java.lang.Override @@ -84,30 +62,30 @@ public java.lang.String getRemotePath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); remotePath_ = s; return s; } } /** - * - * *
    * Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
    * bucket_name, bucket_name/subdirectory/
    * 
* * string remote_path = 1; - * * @return The bytes for remotePath. */ @java.lang.Override - public com.google.protobuf.ByteString getRemotePathBytes() { + public com.google.protobuf.ByteString + getRemotePathBytes() { java.lang.Object ref = remotePath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); remotePath_ = b; return b; } else { @@ -116,7 +94,6 @@ public com.google.protobuf.ByteString getRemotePathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +105,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(remotePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remotePath_); } @@ -152,14 +130,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.batch.v1.GCS)) { return super.equals(obj); } com.google.cloud.batch.v1.GCS other = (com.google.cloud.batch.v1.GCS) obj; - if (!getRemotePath().equals(other.getRemotePath())) return false; + if (!getRemotePath() + .equals(other.getRemotePath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,134 +157,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.GCS parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.GCS parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.GCS parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.GCS parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.batch.v1.GCS parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.GCS parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.GCS parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.GCS parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.GCS parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.GCS parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.batch.v1.GCS 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.batch.v1.GCS parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.batch.v1.GCS parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.cloud.batch.v1.GCS 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.batch.v1.GCS parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.GCS prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Google Cloud Storage volume.
    * 
* * Protobuf type {@code google.cloud.batch.v1.GCS} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.GCS) com.google.cloud.batch.v1.GCSOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.VolumeProto - .internal_static_google_cloud_batch_v1_GCS_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.VolumeProto.internal_static_google_cloud_batch_v1_GCS_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.VolumeProto - .internal_static_google_cloud_batch_v1_GCS_fieldAccessorTable + return com.google.cloud.batch.v1.VolumeProto.internal_static_google_cloud_batch_v1_GCS_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.batch.v1.GCS.class, com.google.cloud.batch.v1.GCS.Builder.class); } // Construct using com.google.cloud.batch.v1.GCS.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(); @@ -315,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.VolumeProto - .internal_static_google_cloud_batch_v1_GCS_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.VolumeProto.internal_static_google_cloud_batch_v1_GCS_descriptor; } @java.lang.Override @@ -337,9 +314,7 @@ public com.google.cloud.batch.v1.GCS build() { @java.lang.Override public com.google.cloud.batch.v1.GCS buildPartial() { com.google.cloud.batch.v1.GCS result = new com.google.cloud.batch.v1.GCS(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -355,39 +330,38 @@ private void buildPartial0(com.google.cloud.batch.v1.GCS result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.GCS) { - return mergeFrom((com.google.cloud.batch.v1.GCS) other); + return mergeFrom((com.google.cloud.batch.v1.GCS)other); } else { super.mergeFrom(other); return this; @@ -427,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - remotePath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + remotePath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -449,26 +421,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object remotePath_ = ""; /** - * - * *
      * Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
      * bucket_name, bucket_name/subdirectory/
      * 
* * string remote_path = 1; - * * @return The remotePath. */ public java.lang.String getRemotePath() { java.lang.Object ref = remotePath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); remotePath_ = s; return s; @@ -477,22 +446,21 @@ public java.lang.String getRemotePath() { } } /** - * - * *
      * Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
      * bucket_name, bucket_name/subdirectory/
      * 
* * string remote_path = 1; - * * @return The bytes for remotePath. */ - public com.google.protobuf.ByteString getRemotePathBytes() { + public com.google.protobuf.ByteString + getRemotePathBytes() { java.lang.Object ref = remotePath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); remotePath_ = b; return b; } else { @@ -500,37 +468,30 @@ public com.google.protobuf.ByteString getRemotePathBytes() { } } /** - * - * *
      * Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
      * bucket_name, bucket_name/subdirectory/
      * 
* * string remote_path = 1; - * * @param value The remotePath to set. * @return This builder for chaining. */ - public Builder setRemotePath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRemotePath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } remotePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
      * bucket_name, bucket_name/subdirectory/
      * 
* * string remote_path = 1; - * * @return This builder for chaining. */ public Builder clearRemotePath() { @@ -540,31 +501,27 @@ public Builder clearRemotePath() { return this; } /** - * - * *
      * Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
      * bucket_name, bucket_name/subdirectory/
      * 
* * string remote_path = 1; - * * @param value The bytes for remotePath to set. * @return This builder for chaining. */ - public Builder setRemotePathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRemotePathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); remotePath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -574,12 +531,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.GCS) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.GCS) private static final com.google.cloud.batch.v1.GCS DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.GCS(); } @@ -588,27 +545,27 @@ public static com.google.cloud.batch.v1.GCS getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GCS 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 GCS 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; @@ -623,4 +580,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.GCS getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java similarity index 52% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java index 3f5fc1eab184..d557294b6b56 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java @@ -1,53 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/volume.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface GCSOrBuilder - extends +public interface GCSOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.GCS) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
    * bucket_name, bucket_name/subdirectory/
    * 
* * string remote_path = 1; - * * @return The remotePath. */ java.lang.String getRemotePath(); /** - * - * *
    * Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
    * bucket_name, bucket_name/subdirectory/
    * 
* * string remote_path = 1; - * * @return The bytes for remotePath. */ - com.google.protobuf.ByteString getRemotePathBytes(); + com.google.protobuf.ByteString + getRemotePathBytes(); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java similarity index 61% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java index cc01a0e7f486..e193a9db0019 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto @@ -20,64 +5,54 @@ package com.google.cloud.batch.v1; /** - * - * *
  * GetJob Request.
  * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.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(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_GetJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_GetJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_GetJobRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_GetJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.GetJobRequest.class, - com.google.cloud.batch.v1.GetJobRequest.Builder.class); + com.google.cloud.batch.v1.GetJobRequest.class, com.google.cloud.batch.v1.GetJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Job name.
    * 
* - * - * string 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 @@ -86,31 +61,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. Job name.
    * 
* - * - * string 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 { @@ -119,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +103,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_); } @@ -155,14 +128,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.batch.v1.GetJobRequest)) { return super.equals(obj); } com.google.cloud.batch.v1.GetJobRequest other = (com.google.cloud.batch.v1.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; } @@ -181,136 +155,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.GetJobRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.GetJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.GetJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.GetJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.GetJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.GetJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.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; } /** - * - * *
    * GetJob Request.
    * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.GetJobRequest) com.google.cloud.batch.v1.GetJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_GetJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_GetJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_GetJobRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_GetJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.GetJobRequest.class, - com.google.cloud.batch.v1.GetJobRequest.Builder.class); + com.google.cloud.batch.v1.GetJobRequest.class, com.google.cloud.batch.v1.GetJobRequest.Builder.class); } // Construct using com.google.cloud.batch.v1.GetJobRequest.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(); @@ -320,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_GetJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_GetJobRequest_descriptor; } @java.lang.Override @@ -341,11 +311,8 @@ public com.google.cloud.batch.v1.GetJobRequest build() { @java.lang.Override public com.google.cloud.batch.v1.GetJobRequest buildPartial() { - com.google.cloud.batch.v1.GetJobRequest result = - new com.google.cloud.batch.v1.GetJobRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.GetJobRequest result = new com.google.cloud.batch.v1.GetJobRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,39 +328,38 @@ private void buildPartial0(com.google.cloud.batch.v1.GetJobRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.GetJobRequest) { - return mergeFrom((com.google.cloud.batch.v1.GetJobRequest) other); + return mergeFrom((com.google.cloud.batch.v1.GetJobRequest)other); } else { super.mergeFrom(other); return this; @@ -433,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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,27 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Job name.
      * 
* - * - * string 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; @@ -484,23 +443,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Job name.
      * 
* - * - * string 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 { @@ -508,39 +464,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Job name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Job name.
      * 
* - * - * string 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() { @@ -550,32 +495,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Job name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - 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 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.GetJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.GetJobRequest) private static final com.google.cloud.batch.v1.GetJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.GetJobRequest(); } @@ -599,27 +538,27 @@ public static com.google.cloud.batch.v1.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; @@ -634,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.GetJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java new file mode 100644 index 000000000000..b2f836d78116 --- /dev/null +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/batch/v1/batch.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.batch.v1; + +public interface GetJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.GetJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Job name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Job name.
+   * 
+ * + * 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-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java similarity index 61% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java index 503b816107dd..2459c2a30004 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto @@ -20,64 +5,54 @@ package com.google.cloud.batch.v1; /** - * - * *
  * Request for a single Task by name.
  * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.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(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_GetTaskRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_GetTaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.GetTaskRequest.class, - com.google.cloud.batch.v1.GetTaskRequest.Builder.class); + com.google.cloud.batch.v1.GetTaskRequest.class, com.google.cloud.batch.v1.GetTaskRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Task name.
    * 
* - * - * string 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 @@ -86,31 +61,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. Task name.
    * 
* - * - * string 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 { @@ -119,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +103,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_); } @@ -155,14 +128,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.batch.v1.GetTaskRequest)) { return super.equals(obj); } com.google.cloud.batch.v1.GetTaskRequest other = (com.google.cloud.batch.v1.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; } @@ -181,136 +155,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.GetTaskRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.GetTaskRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.GetTaskRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.GetTaskRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.GetTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.GetTaskRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.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 for a single Task by name.
    * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.GetTaskRequest) com.google.cloud.batch.v1.GetTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_GetTaskRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_GetTaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.GetTaskRequest.class, - com.google.cloud.batch.v1.GetTaskRequest.Builder.class); + com.google.cloud.batch.v1.GetTaskRequest.class, com.google.cloud.batch.v1.GetTaskRequest.Builder.class); } // Construct using com.google.cloud.batch.v1.GetTaskRequest.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(); @@ -320,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_GetTaskRequest_descriptor; } @java.lang.Override @@ -341,11 +311,8 @@ public com.google.cloud.batch.v1.GetTaskRequest build() { @java.lang.Override public com.google.cloud.batch.v1.GetTaskRequest buildPartial() { - com.google.cloud.batch.v1.GetTaskRequest result = - new com.google.cloud.batch.v1.GetTaskRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.GetTaskRequest result = new com.google.cloud.batch.v1.GetTaskRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,39 +328,38 @@ private void buildPartial0(com.google.cloud.batch.v1.GetTaskRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.GetTaskRequest) { - return mergeFrom((com.google.cloud.batch.v1.GetTaskRequest) other); + return mergeFrom((com.google.cloud.batch.v1.GetTaskRequest)other); } else { super.mergeFrom(other); return this; @@ -433,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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,27 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Task name.
      * 
* - * - * string 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; @@ -484,23 +443,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Task name.
      * 
* - * - * string 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 { @@ -508,39 +464,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Task name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Task name.
      * 
* - * - * string 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() { @@ -550,32 +495,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Task name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - 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 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.GetTaskRequest) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.GetTaskRequest) private static final com.google.cloud.batch.v1.GetTaskRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.GetTaskRequest(); } @@ -599,27 +538,27 @@ public static com.google.cloud.batch.v1.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; @@ -634,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.GetTaskRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java new file mode 100644 index 000000000000..9d266af418d8 --- /dev/null +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/batch/v1/batch.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.batch.v1; + +public interface GetTaskRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.GetTaskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Task name.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Task name.
+   * 
+ * + * 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-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java similarity index 69% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java index 8be6c7706e2e..7c79941763e0 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto @@ -20,24 +5,21 @@ package com.google.cloud.batch.v1; /** - * - * *
  * The Cloud Batch Job description.
  * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.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_ = ""; @@ -47,11 +29,13 @@ private Job() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Job(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_Job_descriptor; } @@ -63,34 +47,29 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_Job_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_Job_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.batch.v1.Job.class, com.google.cloud.batch.v1.Job.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. Job name.
    * For example: "projects/123456/locations/us-central1/jobs/job01".
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -99,30 +78,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; } } /** - * - * *
    * Output only. Job name.
    * For example: "projects/123456/locations/us-central1/jobs/job01".
    * 
* * 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 { @@ -131,18 +110,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int UID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. A system generated unique ID (in UUID4 format) for the Job.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -151,29 +126,29 @@ 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. A system generated unique ID (in UUID4 format) for the Job.
    * 
* * 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 { @@ -184,8 +159,6 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int PRIORITY_FIELD_NUMBER = 3; private long priority_ = 0L; /** - * - * *
    * Priority of the Job.
    * The valid value range is [0, 100). Default value is 0.
@@ -195,7 +168,6 @@ public com.google.protobuf.ByteString getUidBytes() {
    * 
* * int64 priority = 3; - * * @return The priority. */ @java.lang.Override @@ -204,97 +176,74 @@ public long getPriority() { } public static final int TASK_GROUPS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List taskGroups_; /** - * - * *
    * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
    * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getTaskGroupsList() { return taskGroups_; } /** - * - * *
    * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
    * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getTaskGroupsOrBuilderList() { return taskGroups_; } /** - * - * *
    * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
    * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getTaskGroupsCount() { return taskGroups_.size(); } /** - * - * *
    * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
    * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.batch.v1.TaskGroup getTaskGroups(int index) { return taskGroups_.get(index); } /** - * - * *
    * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
    * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.batch.v1.TaskGroupOrBuilder getTaskGroupsOrBuilder(int index) { + public com.google.cloud.batch.v1.TaskGroupOrBuilder getTaskGroupsOrBuilder( + int index) { return taskGroups_.get(index); } public static final int ALLOCATION_POLICY_FIELD_NUMBER = 7; private com.google.cloud.batch.v1.AllocationPolicy allocationPolicy_; /** - * - * *
    * Compute resource allocation for all TaskGroups in the Job.
    * 
* * .google.cloud.batch.v1.AllocationPolicy allocation_policy = 7; - * * @return Whether the allocationPolicy field is set. */ @java.lang.Override @@ -302,25 +251,18 @@ public boolean hasAllocationPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Compute resource allocation for all TaskGroups in the Job.
    * 
* * .google.cloud.batch.v1.AllocationPolicy allocation_policy = 7; - * * @return The allocationPolicy. */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy getAllocationPolicy() { - return allocationPolicy_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.getDefaultInstance() - : allocationPolicy_; + return allocationPolicy_ == null ? com.google.cloud.batch.v1.AllocationPolicy.getDefaultInstance() : allocationPolicy_; } /** - * - * *
    * Compute resource allocation for all TaskGroups in the Job.
    * 
@@ -329,40 +271,36 @@ public com.google.cloud.batch.v1.AllocationPolicy getAllocationPolicy() { */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() { - return allocationPolicy_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.getDefaultInstance() - : allocationPolicy_; + return allocationPolicy_ == null ? com.google.cloud.batch.v1.AllocationPolicy.getDefaultInstance() : allocationPolicy_; } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_Job_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.batch.v1.JobProto.internal_static_google_cloud_batch_v1_Job_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -379,21 +317,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -414,8 +351,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -432,19 +367,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -461,11 +394,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -475,15 +408,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int STATUS_FIELD_NUMBER = 9;
   private com.google.cloud.batch.v1.JobStatus status_;
   /**
-   *
-   *
    * 
    * Output only. Job status. It is read only for users.
    * 
* - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ @java.lang.Override @@ -491,15 +420,11 @@ public boolean hasStatus() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. Job status. It is read only for users.
    * 
* - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override @@ -507,14 +432,11 @@ public com.google.cloud.batch.v1.JobStatus getStatus() { return status_ == null ? com.google.cloud.batch.v1.JobStatus.getDefaultInstance() : status_; } /** - * - * *
    * Output only. Job status. It is read only for users.
    * 
* - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.batch.v1.JobStatusOrBuilder getStatusOrBuilder() { @@ -524,15 +446,11 @@ public com.google.cloud.batch.v1.JobStatusOrBuilder getStatusOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -540,15 +458,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -556,14 +470,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -573,15 +484,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -589,15 +496,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
    * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -605,14 +508,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -622,14 +522,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int LOGS_POLICY_FIELD_NUMBER = 13; private com.google.cloud.batch.v1.LogsPolicy logsPolicy_; /** - * - * *
    * Log preservation policy for the Job.
    * 
* * .google.cloud.batch.v1.LogsPolicy logs_policy = 13; - * * @return Whether the logsPolicy field is set. */ @java.lang.Override @@ -637,25 +534,18 @@ public boolean hasLogsPolicy() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
    * Log preservation policy for the Job.
    * 
* * .google.cloud.batch.v1.LogsPolicy logs_policy = 13; - * * @return The logsPolicy. */ @java.lang.Override public com.google.cloud.batch.v1.LogsPolicy getLogsPolicy() { - return logsPolicy_ == null - ? com.google.cloud.batch.v1.LogsPolicy.getDefaultInstance() - : logsPolicy_; + return logsPolicy_ == null ? com.google.cloud.batch.v1.LogsPolicy.getDefaultInstance() : logsPolicy_; } /** - * - * *
    * Log preservation policy for the Job.
    * 
@@ -664,18 +554,13 @@ public com.google.cloud.batch.v1.LogsPolicy getLogsPolicy() { */ @java.lang.Override public com.google.cloud.batch.v1.LogsPolicyOrBuilder getLogsPolicyOrBuilder() { - return logsPolicy_ == null - ? com.google.cloud.batch.v1.LogsPolicy.getDefaultInstance() - : logsPolicy_; + return logsPolicy_ == null ? com.google.cloud.batch.v1.LogsPolicy.getDefaultInstance() : logsPolicy_; } public static final int NOTIFICATIONS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private java.util.List notifications_; /** - * - * *
    * Notification configurations.
    * 
@@ -687,8 +572,6 @@ public java.util.List getNotification return notifications_; } /** - * - * *
    * Notification configurations.
    * 
@@ -696,13 +579,11 @@ public java.util.List getNotification * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ @java.lang.Override - public java.util.List + public java.util.List getNotificationsOrBuilderList() { return notifications_; } /** - * - * *
    * Notification configurations.
    * 
@@ -714,8 +595,6 @@ public int getNotificationsCount() { return notifications_.size(); } /** - * - * *
    * Notification configurations.
    * 
@@ -727,8 +606,6 @@ public com.google.cloud.batch.v1.JobNotification getNotifications(int index) { return notifications_.get(index); } /** - * - * *
    * Notification configurations.
    * 
@@ -736,12 +613,12 @@ public com.google.cloud.batch.v1.JobNotification getNotifications(int index) { * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ @java.lang.Override - public com.google.cloud.batch.v1.JobNotificationOrBuilder getNotificationsOrBuilder(int index) { + public com.google.cloud.batch.v1.JobNotificationOrBuilder getNotificationsOrBuilder( + int index) { return notifications_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -753,7 +630,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_); } @@ -769,8 +647,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getAllocationPolicy()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(9, getStatus()); } @@ -802,38 +684,46 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (priority_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, priority_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, priority_); } for (int i = 0; i < taskGroups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, taskGroups_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, taskGroups_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAllocationPolicy()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAllocationPolicy()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getStatus()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getCreateTime()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getUpdateTime()); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getLogsPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getLogsPolicy()); } for (int i = 0; i < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, notifications_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, notifications_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -843,39 +733,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.batch.v1.Job)) { return super.equals(obj); } com.google.cloud.batch.v1.Job other = (com.google.cloud.batch.v1.Job) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getPriority() != other.getPriority()) return false; - if (!getTaskGroupsList().equals(other.getTaskGroupsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getPriority() + != other.getPriority()) return false; + if (!getTaskGroupsList() + .equals(other.getTaskGroupsList())) return false; if (hasAllocationPolicy() != other.hasAllocationPolicy()) return false; if (hasAllocationPolicy()) { - if (!getAllocationPolicy().equals(other.getAllocationPolicy())) return false; + if (!getAllocationPolicy() + .equals(other.getAllocationPolicy())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; + if (!getStatus() + .equals(other.getStatus())) 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 (hasLogsPolicy() != other.hasLogsPolicy()) return false; if (hasLogsPolicy()) { - if (!getLogsPolicy().equals(other.getLogsPolicy())) return false; + if (!getLogsPolicy() + .equals(other.getLogsPolicy())) return false; } - if (!getNotificationsList().equals(other.getNotificationsList())) return false; + if (!getNotificationsList() + .equals(other.getNotificationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -892,7 +793,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPriority()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPriority()); if (getTaskGroupsCount() > 0) { hash = (37 * hash) + TASK_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getTaskGroupsList().hashCode(); @@ -930,116 +832,112 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.Job parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.Job parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.Job parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.batch.v1.Job parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.Job parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.Job parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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; } /** - * - * *
    * The Cloud Batch Job description.
    * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.Job) com.google.cloud.batch.v1.JobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_Job_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_Job_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -1049,10 +947,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -1060,15 +958,14 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 8: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_Job_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_Job_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.batch.v1.Job.class, com.google.cloud.batch.v1.Job.Builder.class); } @@ -1078,13 +975,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTaskGroupsFieldBuilder(); getAllocationPolicyFieldBuilder(); getStatusFieldBuilder(); @@ -1094,7 +992,6 @@ private void maybeForceBuilderInitialization() { getNotificationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1146,9 +1043,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_Job_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_Job_descriptor; } @java.lang.Override @@ -1169,9 +1066,7 @@ public com.google.cloud.batch.v1.Job build() { public com.google.cloud.batch.v1.Job buildPartial() { com.google.cloud.batch.v1.Job result = new com.google.cloud.batch.v1.Job(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1210,8 +1105,9 @@ private void buildPartial0(com.google.cloud.batch.v1.Job result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.allocationPolicy_ = - allocationPolicyBuilder_ == null ? allocationPolicy_ : allocationPolicyBuilder_.build(); + result.allocationPolicy_ = allocationPolicyBuilder_ == null + ? allocationPolicy_ + : allocationPolicyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { @@ -1219,19 +1115,27 @@ private void buildPartial0(com.google.cloud.batch.v1.Job result) { result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.logsPolicy_ = logsPolicyBuilder_ == null ? logsPolicy_ : logsPolicyBuilder_.build(); + result.logsPolicy_ = logsPolicyBuilder_ == null + ? logsPolicy_ + : logsPolicyBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; @@ -1241,39 +1145,38 @@ private void buildPartial0(com.google.cloud.batch.v1.Job result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.Job) { - return mergeFrom((com.google.cloud.batch.v1.Job) other); + return mergeFrom((com.google.cloud.batch.v1.Job)other); } else { super.mergeFrom(other); return this; @@ -1313,10 +1216,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.Job other) { taskGroupsBuilder_ = null; taskGroups_ = other.taskGroups_; bitField0_ = (bitField0_ & ~0x00000008); - taskGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTaskGroupsFieldBuilder() - : null; + taskGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaskGroupsFieldBuilder() : null; } else { taskGroupsBuilder_.addAllMessages(other.taskGroups_); } @@ -1325,7 +1227,8 @@ public Builder mergeFrom(com.google.cloud.batch.v1.Job other) { if (other.hasAllocationPolicy()) { mergeAllocationPolicy(other.getAllocationPolicy()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000020; if (other.hasStatus()) { mergeStatus(other.getStatus()); @@ -1357,10 +1260,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.Job other) { notificationsBuilder_ = null; notifications_ = other.notifications_; bitField0_ = (bitField0_ & ~0x00000400); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNotificationsFieldBuilder() - : null; + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; } else { notificationsBuilder_.addAllMessages(other.notifications_); } @@ -1392,100 +1294,97 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - priority_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - com.google.cloud.batch.v1.TaskGroup m = - input.readMessage( - com.google.cloud.batch.v1.TaskGroup.parser(), extensionRegistry); - if (taskGroupsBuilder_ == null) { - ensureTaskGroupsIsMutable(); - taskGroups_.add(m); - } else { - taskGroupsBuilder_.addMessage(m); - } - break; - } // case 34 - case 58: - { - input.readMessage( - getAllocationPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 74: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 74 - case 90: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 90 - case 98: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 98 - case 106: - { - input.readMessage(getLogsPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 106 - case 114: - { - com.google.cloud.batch.v1.JobNotification m = - input.readMessage( - com.google.cloud.batch.v1.JobNotification.parser(), extensionRegistry); - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(m); - } else { - notificationsBuilder_.addMessage(m); - } - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + priority_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + com.google.cloud.batch.v1.TaskGroup m = + input.readMessage( + com.google.cloud.batch.v1.TaskGroup.parser(), + extensionRegistry); + if (taskGroupsBuilder_ == null) { + ensureTaskGroupsIsMutable(); + taskGroups_.add(m); + } else { + taskGroupsBuilder_.addMessage(m); + } + break; + } // case 34 + case 58: { + input.readMessage( + getAllocationPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 90: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 90 + case 98: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 98 + case 106: { + input.readMessage( + getLogsPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 106 + case 114: { + com.google.cloud.batch.v1.JobNotification m = + input.readMessage( + com.google.cloud.batch.v1.JobNotification.parser(), + extensionRegistry); + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(m); + } else { + notificationsBuilder_.addMessage(m); + } + break; + } // case 114 + 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) { @@ -1495,26 +1394,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Job name.
      * For example: "projects/123456/locations/us-central1/jobs/job01".
      * 
* * 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; @@ -1523,22 +1419,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Job name.
      * For example: "projects/123456/locations/us-central1/jobs/job01".
      * 
* * 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 { @@ -1546,37 +1441,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Job name.
      * For example: "projects/123456/locations/us-central1/jobs/job01".
      * 
* * 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(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Job name.
      * For example: "projects/123456/locations/us-central1/jobs/job01".
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1586,22 +1474,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Job name.
      * For example: "projects/123456/locations/us-central1/jobs/job01".
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1611,20 +1495,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. A system generated unique ID (in UUID4 format) for the Job.
      * 
* * 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; @@ -1633,21 +1515,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. A system generated unique ID (in UUID4 format) for the Job.
      * 
* * 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 { @@ -1655,35 +1536,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. A system generated unique ID (in UUID4 format) for the Job.
      * 
* * 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(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. A system generated unique ID (in UUID4 format) for the Job.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -1693,21 +1567,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. A system generated unique ID (in UUID4 format) for the Job.
      * 
* * 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(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -1715,10 +1585,8 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private long priority_; + private long priority_ ; /** - * - * *
      * Priority of the Job.
      * The valid value range is [0, 100). Default value is 0.
@@ -1728,7 +1596,6 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 priority = 3; - * * @return The priority. */ @java.lang.Override @@ -1736,8 +1603,6 @@ public long getPriority() { return priority_; } /** - * - * *
      * Priority of the Job.
      * The valid value range is [0, 100). Default value is 0.
@@ -1747,7 +1612,6 @@ public long getPriority() {
      * 
* * int64 priority = 3; - * * @param value The priority to set. * @return This builder for chaining. */ @@ -1759,8 +1623,6 @@ public Builder setPriority(long value) { return this; } /** - * - * *
      * Priority of the Job.
      * The valid value range is [0, 100). Default value is 0.
@@ -1770,7 +1632,6 @@ public Builder setPriority(long value) {
      * 
* * int64 priority = 3; - * * @return This builder for chaining. */ public Builder clearPriority() { @@ -1781,31 +1642,23 @@ public Builder clearPriority() { } private java.util.List taskGroups_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTaskGroupsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { taskGroups_ = new java.util.ArrayList(taskGroups_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.TaskGroup, - com.google.cloud.batch.v1.TaskGroup.Builder, - com.google.cloud.batch.v1.TaskGroupOrBuilder> - taskGroupsBuilder_; + com.google.cloud.batch.v1.TaskGroup, com.google.cloud.batch.v1.TaskGroup.Builder, com.google.cloud.batch.v1.TaskGroupOrBuilder> taskGroupsBuilder_; /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getTaskGroupsList() { if (taskGroupsBuilder_ == null) { @@ -1815,15 +1668,11 @@ public java.util.List getTaskGroupsList() { } } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ public int getTaskGroupsCount() { if (taskGroupsBuilder_ == null) { @@ -1833,15 +1682,11 @@ public int getTaskGroupsCount() { } } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.batch.v1.TaskGroup getTaskGroups(int index) { if (taskGroupsBuilder_ == null) { @@ -1851,17 +1696,14 @@ public com.google.cloud.batch.v1.TaskGroup getTaskGroups(int index) { } } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTaskGroups(int index, com.google.cloud.batch.v1.TaskGroup value) { + public Builder setTaskGroups( + int index, com.google.cloud.batch.v1.TaskGroup value) { if (taskGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1875,15 +1717,11 @@ public Builder setTaskGroups(int index, com.google.cloud.batch.v1.TaskGroup valu return this; } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTaskGroups( int index, com.google.cloud.batch.v1.TaskGroup.Builder builderForValue) { @@ -1897,15 +1735,11 @@ public Builder setTaskGroups( return this; } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addTaskGroups(com.google.cloud.batch.v1.TaskGroup value) { if (taskGroupsBuilder_ == null) { @@ -1921,17 +1755,14 @@ public Builder addTaskGroups(com.google.cloud.batch.v1.TaskGroup value) { return this; } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addTaskGroups(int index, com.google.cloud.batch.v1.TaskGroup value) { + public Builder addTaskGroups( + int index, com.google.cloud.batch.v1.TaskGroup value) { if (taskGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1945,17 +1776,14 @@ public Builder addTaskGroups(int index, com.google.cloud.batch.v1.TaskGroup valu return this; } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addTaskGroups(com.google.cloud.batch.v1.TaskGroup.Builder builderForValue) { + public Builder addTaskGroups( + com.google.cloud.batch.v1.TaskGroup.Builder builderForValue) { if (taskGroupsBuilder_ == null) { ensureTaskGroupsIsMutable(); taskGroups_.add(builderForValue.build()); @@ -1966,15 +1794,11 @@ public Builder addTaskGroups(com.google.cloud.batch.v1.TaskGroup.Builder builder return this; } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addTaskGroups( int index, com.google.cloud.batch.v1.TaskGroup.Builder builderForValue) { @@ -1988,21 +1812,18 @@ public Builder addTaskGroups( return this; } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllTaskGroups( java.lang.Iterable values) { if (taskGroupsBuilder_ == null) { ensureTaskGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taskGroups_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, taskGroups_); onChanged(); } else { taskGroupsBuilder_.addAllMessages(values); @@ -2010,15 +1831,11 @@ public Builder addAllTaskGroups( return this; } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTaskGroups() { if (taskGroupsBuilder_ == null) { @@ -2031,15 +1848,11 @@ public Builder clearTaskGroups() { return this; } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeTaskGroups(int index) { if (taskGroupsBuilder_ == null) { @@ -2052,50 +1865,39 @@ public Builder removeTaskGroups(int index) { return this; } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.batch.v1.TaskGroup.Builder getTaskGroupsBuilder(int index) { + public com.google.cloud.batch.v1.TaskGroup.Builder getTaskGroupsBuilder( + int index) { return getTaskGroupsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.batch.v1.TaskGroupOrBuilder getTaskGroupsOrBuilder(int index) { + public com.google.cloud.batch.v1.TaskGroupOrBuilder getTaskGroupsOrBuilder( + int index) { if (taskGroupsBuilder_ == null) { - return taskGroups_.get(index); - } else { + return taskGroups_.get(index); } else { return taskGroupsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getTaskGroupsOrBuilderList() { + public java.util.List + getTaskGroupsOrBuilderList() { if (taskGroupsBuilder_ != null) { return taskGroupsBuilder_.getMessageOrBuilderList(); } else { @@ -2103,62 +1905,49 @@ public com.google.cloud.batch.v1.TaskGroupOrBuilder getTaskGroupsOrBuilder(int i } } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.batch.v1.TaskGroup.Builder addTaskGroupsBuilder() { - return getTaskGroupsFieldBuilder() - .addBuilder(com.google.cloud.batch.v1.TaskGroup.getDefaultInstance()); + return getTaskGroupsFieldBuilder().addBuilder( + com.google.cloud.batch.v1.TaskGroup.getDefaultInstance()); } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.batch.v1.TaskGroup.Builder addTaskGroupsBuilder(int index) { - return getTaskGroupsFieldBuilder() - .addBuilder(index, com.google.cloud.batch.v1.TaskGroup.getDefaultInstance()); + public com.google.cloud.batch.v1.TaskGroup.Builder addTaskGroupsBuilder( + int index) { + return getTaskGroupsFieldBuilder().addBuilder( + index, com.google.cloud.batch.v1.TaskGroup.getDefaultInstance()); } /** - * - * *
      * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
      * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getTaskGroupsBuilderList() { + public java.util.List + getTaskGroupsBuilderList() { return getTaskGroupsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.TaskGroup, - com.google.cloud.batch.v1.TaskGroup.Builder, - com.google.cloud.batch.v1.TaskGroupOrBuilder> + com.google.cloud.batch.v1.TaskGroup, com.google.cloud.batch.v1.TaskGroup.Builder, com.google.cloud.batch.v1.TaskGroupOrBuilder> getTaskGroupsFieldBuilder() { if (taskGroupsBuilder_ == null) { - taskGroupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.TaskGroup, - com.google.cloud.batch.v1.TaskGroup.Builder, - com.google.cloud.batch.v1.TaskGroupOrBuilder>( - taskGroups_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + taskGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.batch.v1.TaskGroup, com.google.cloud.batch.v1.TaskGroup.Builder, com.google.cloud.batch.v1.TaskGroupOrBuilder>( + taskGroups_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); taskGroups_ = null; } return taskGroupsBuilder_; @@ -2166,47 +1955,34 @@ public java.util.List getTaskGroups private com.google.cloud.batch.v1.AllocationPolicy allocationPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy, - com.google.cloud.batch.v1.AllocationPolicy.Builder, - com.google.cloud.batch.v1.AllocationPolicyOrBuilder> - allocationPolicyBuilder_; + com.google.cloud.batch.v1.AllocationPolicy, com.google.cloud.batch.v1.AllocationPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicyOrBuilder> allocationPolicyBuilder_; /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
* * .google.cloud.batch.v1.AllocationPolicy allocation_policy = 7; - * * @return Whether the allocationPolicy field is set. */ public boolean hasAllocationPolicy() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
* * .google.cloud.batch.v1.AllocationPolicy allocation_policy = 7; - * * @return The allocationPolicy. */ public com.google.cloud.batch.v1.AllocationPolicy getAllocationPolicy() { if (allocationPolicyBuilder_ == null) { - return allocationPolicy_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.getDefaultInstance() - : allocationPolicy_; + return allocationPolicy_ == null ? com.google.cloud.batch.v1.AllocationPolicy.getDefaultInstance() : allocationPolicy_; } else { return allocationPolicyBuilder_.getMessage(); } } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2227,8 +2003,6 @@ public Builder setAllocationPolicy(com.google.cloud.batch.v1.AllocationPolicy va return this; } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2247,8 +2021,6 @@ public Builder setAllocationPolicy( return this; } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2257,10 +2029,9 @@ public Builder setAllocationPolicy( */ public Builder mergeAllocationPolicy(com.google.cloud.batch.v1.AllocationPolicy value) { if (allocationPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && allocationPolicy_ != null - && allocationPolicy_ - != com.google.cloud.batch.v1.AllocationPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + allocationPolicy_ != null && + allocationPolicy_ != com.google.cloud.batch.v1.AllocationPolicy.getDefaultInstance()) { getAllocationPolicyBuilder().mergeFrom(value); } else { allocationPolicy_ = value; @@ -2275,8 +2046,6 @@ public Builder mergeAllocationPolicy(com.google.cloud.batch.v1.AllocationPolicy return this; } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2294,8 +2063,6 @@ public Builder clearAllocationPolicy() { return this; } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2308,8 +2075,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Builder getAllocationPolicyBui return getAllocationPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2320,14 +2085,11 @@ public com.google.cloud.batch.v1.AllocationPolicyOrBuilder getAllocationPolicyOr if (allocationPolicyBuilder_ != null) { return allocationPolicyBuilder_.getMessageOrBuilder(); } else { - return allocationPolicy_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.getDefaultInstance() - : allocationPolicy_; + return allocationPolicy_ == null ? + com.google.cloud.batch.v1.AllocationPolicy.getDefaultInstance() : allocationPolicy_; } } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2335,35 +2097,34 @@ public com.google.cloud.batch.v1.AllocationPolicyOrBuilder getAllocationPolicyOr * .google.cloud.batch.v1.AllocationPolicy allocation_policy = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy, - com.google.cloud.batch.v1.AllocationPolicy.Builder, - com.google.cloud.batch.v1.AllocationPolicyOrBuilder> + com.google.cloud.batch.v1.AllocationPolicy, com.google.cloud.batch.v1.AllocationPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicyOrBuilder> getAllocationPolicyFieldBuilder() { if (allocationPolicyBuilder_ == null) { - allocationPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy, - com.google.cloud.batch.v1.AllocationPolicy.Builder, - com.google.cloud.batch.v1.AllocationPolicyOrBuilder>( - getAllocationPolicy(), getParentForChildren(), isClean()); + allocationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.AllocationPolicy, com.google.cloud.batch.v1.AllocationPolicy.Builder, com.google.cloud.batch.v1.AllocationPolicyOrBuilder>( + getAllocationPolicy(), + getParentForChildren(), + isClean()); allocationPolicy_ = null; } return allocationPolicyBuilder_; } - 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() { 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(); @@ -2372,13 +2133,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2395,21 +2153,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2430,8 +2187,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2448,19 +2203,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2477,25 +2230,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2511,22 +2262,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2542,20 +2294,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    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);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2571,45 +2320,34 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.cloud.batch.v1.JobStatus status_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.batch.v1.JobStatus,
-            com.google.cloud.batch.v1.JobStatus.Builder,
-            com.google.cloud.batch.v1.JobStatusOrBuilder>
-        statusBuilder_;
+        com.google.cloud.batch.v1.JobStatus, com.google.cloud.batch.v1.JobStatus.Builder, com.google.cloud.batch.v1.JobStatusOrBuilder> statusBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Job status. It is read only for users.
      * 
* - * - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Job status. It is read only for users.
      * 
* - * - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ public com.google.cloud.batch.v1.JobStatus getStatus() { @@ -2620,15 +2358,11 @@ public com.google.cloud.batch.v1.JobStatus getStatus() { } } /** - * - * *
      * Output only. Job status. It is read only for users.
      * 
* - * - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatus(com.google.cloud.batch.v1.JobStatus value) { if (statusBuilder_ == null) { @@ -2644,17 +2378,14 @@ public Builder setStatus(com.google.cloud.batch.v1.JobStatus value) { return this; } /** - * - * *
      * Output only. Job status. It is read only for users.
      * 
* - * - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStatus(com.google.cloud.batch.v1.JobStatus.Builder builderForValue) { + public Builder setStatus( + com.google.cloud.batch.v1.JobStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -2665,21 +2396,17 @@ public Builder setStatus(com.google.cloud.batch.v1.JobStatus.Builder builderForV return this; } /** - * - * *
      * Output only. Job status. It is read only for users.
      * 
* - * - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStatus(com.google.cloud.batch.v1.JobStatus value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && status_ != null - && status_ != com.google.cloud.batch.v1.JobStatus.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + status_ != null && + status_ != com.google.cloud.batch.v1.JobStatus.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -2694,15 +2421,11 @@ public Builder mergeStatus(com.google.cloud.batch.v1.JobStatus value) { return this; } /** - * - * *
      * Output only. Job status. It is read only for users.
      * 
* - * - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2715,15 +2438,11 @@ public Builder clearStatus() { return this; } /** - * - * *
      * Output only. Job status. It is read only for users.
      * 
* - * - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.batch.v1.JobStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000040; @@ -2731,46 +2450,36 @@ public com.google.cloud.batch.v1.JobStatus.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Job status. It is read only for users.
      * 
* - * - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.batch.v1.JobStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? com.google.cloud.batch.v1.JobStatus.getDefaultInstance() : status_; + return status_ == null ? + com.google.cloud.batch.v1.JobStatus.getDefaultInstance() : status_; } } /** - * - * *
      * Output only. Job status. It is read only for users.
      * 
* - * - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.JobStatus, - com.google.cloud.batch.v1.JobStatus.Builder, - com.google.cloud.batch.v1.JobStatusOrBuilder> + com.google.cloud.batch.v1.JobStatus, com.google.cloud.batch.v1.JobStatus.Builder, com.google.cloud.batch.v1.JobStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.JobStatus, - com.google.cloud.batch.v1.JobStatus.Builder, - com.google.cloud.batch.v1.JobStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.JobStatus, com.google.cloud.batch.v1.JobStatus.Builder, com.google.cloud.batch.v1.JobStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; @@ -2778,58 +2487,39 @@ public com.google.cloud.batch.v1.JobStatusOrBuilder getStatusOrBuilder() { 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. When the Job was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. When the Job was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.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. When the Job was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2845,17 +2535,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Job was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.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(); } else { @@ -2866,21 +2553,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Job was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2895,15 +2578,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Job was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2916,15 +2595,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. When the Job was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2932,48 +2607,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Job was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.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. When the Job was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.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_; @@ -2981,58 +2644,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 time the Job was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. The last time the Job was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last time the Job was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3048,17 +2692,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last time the Job was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3069,21 +2710,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last time the Job was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3098,15 +2735,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last time the Job was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3119,15 +2752,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last time the Job was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000100; @@ -3135,48 +2764,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last time the Job was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last time the Job was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3184,47 +2801,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.batch.v1.LogsPolicy logsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.LogsPolicy, - com.google.cloud.batch.v1.LogsPolicy.Builder, - com.google.cloud.batch.v1.LogsPolicyOrBuilder> - logsPolicyBuilder_; + com.google.cloud.batch.v1.LogsPolicy, com.google.cloud.batch.v1.LogsPolicy.Builder, com.google.cloud.batch.v1.LogsPolicyOrBuilder> logsPolicyBuilder_; /** - * - * *
      * Log preservation policy for the Job.
      * 
* * .google.cloud.batch.v1.LogsPolicy logs_policy = 13; - * * @return Whether the logsPolicy field is set. */ public boolean hasLogsPolicy() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Log preservation policy for the Job.
      * 
* * .google.cloud.batch.v1.LogsPolicy logs_policy = 13; - * * @return The logsPolicy. */ public com.google.cloud.batch.v1.LogsPolicy getLogsPolicy() { if (logsPolicyBuilder_ == null) { - return logsPolicy_ == null - ? com.google.cloud.batch.v1.LogsPolicy.getDefaultInstance() - : logsPolicy_; + return logsPolicy_ == null ? com.google.cloud.batch.v1.LogsPolicy.getDefaultInstance() : logsPolicy_; } else { return logsPolicyBuilder_.getMessage(); } } /** - * - * *
      * Log preservation policy for the Job.
      * 
@@ -3245,15 +2849,14 @@ public Builder setLogsPolicy(com.google.cloud.batch.v1.LogsPolicy value) { return this; } /** - * - * *
      * Log preservation policy for the Job.
      * 
* * .google.cloud.batch.v1.LogsPolicy logs_policy = 13; */ - public Builder setLogsPolicy(com.google.cloud.batch.v1.LogsPolicy.Builder builderForValue) { + public Builder setLogsPolicy( + com.google.cloud.batch.v1.LogsPolicy.Builder builderForValue) { if (logsPolicyBuilder_ == null) { logsPolicy_ = builderForValue.build(); } else { @@ -3264,8 +2867,6 @@ public Builder setLogsPolicy(com.google.cloud.batch.v1.LogsPolicy.Builder builde return this; } /** - * - * *
      * Log preservation policy for the Job.
      * 
@@ -3274,9 +2875,9 @@ public Builder setLogsPolicy(com.google.cloud.batch.v1.LogsPolicy.Builder builde */ public Builder mergeLogsPolicy(com.google.cloud.batch.v1.LogsPolicy value) { if (logsPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && logsPolicy_ != null - && logsPolicy_ != com.google.cloud.batch.v1.LogsPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + logsPolicy_ != null && + logsPolicy_ != com.google.cloud.batch.v1.LogsPolicy.getDefaultInstance()) { getLogsPolicyBuilder().mergeFrom(value); } else { logsPolicy_ = value; @@ -3291,8 +2892,6 @@ public Builder mergeLogsPolicy(com.google.cloud.batch.v1.LogsPolicy value) { return this; } /** - * - * *
      * Log preservation policy for the Job.
      * 
@@ -3310,8 +2909,6 @@ public Builder clearLogsPolicy() { return this; } /** - * - * *
      * Log preservation policy for the Job.
      * 
@@ -3324,8 +2921,6 @@ public com.google.cloud.batch.v1.LogsPolicy.Builder getLogsPolicyBuilder() { return getLogsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Log preservation policy for the Job.
      * 
@@ -3336,14 +2931,11 @@ public com.google.cloud.batch.v1.LogsPolicyOrBuilder getLogsPolicyOrBuilder() { if (logsPolicyBuilder_ != null) { return logsPolicyBuilder_.getMessageOrBuilder(); } else { - return logsPolicy_ == null - ? com.google.cloud.batch.v1.LogsPolicy.getDefaultInstance() - : logsPolicy_; + return logsPolicy_ == null ? + com.google.cloud.batch.v1.LogsPolicy.getDefaultInstance() : logsPolicy_; } } /** - * - * *
      * Log preservation policy for the Job.
      * 
@@ -3351,42 +2943,32 @@ public com.google.cloud.batch.v1.LogsPolicyOrBuilder getLogsPolicyOrBuilder() { * .google.cloud.batch.v1.LogsPolicy logs_policy = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.LogsPolicy, - com.google.cloud.batch.v1.LogsPolicy.Builder, - com.google.cloud.batch.v1.LogsPolicyOrBuilder> + com.google.cloud.batch.v1.LogsPolicy, com.google.cloud.batch.v1.LogsPolicy.Builder, com.google.cloud.batch.v1.LogsPolicyOrBuilder> getLogsPolicyFieldBuilder() { if (logsPolicyBuilder_ == null) { - logsPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.LogsPolicy, - com.google.cloud.batch.v1.LogsPolicy.Builder, - com.google.cloud.batch.v1.LogsPolicyOrBuilder>( - getLogsPolicy(), getParentForChildren(), isClean()); + logsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.LogsPolicy, com.google.cloud.batch.v1.LogsPolicy.Builder, com.google.cloud.batch.v1.LogsPolicyOrBuilder>( + getLogsPolicy(), + getParentForChildren(), + isClean()); logsPolicy_ = null; } return logsPolicyBuilder_; } private java.util.List notifications_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNotificationsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { - notifications_ = - new java.util.ArrayList(notifications_); + notifications_ = new java.util.ArrayList(notifications_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.JobNotification, - com.google.cloud.batch.v1.JobNotification.Builder, - com.google.cloud.batch.v1.JobNotificationOrBuilder> - notificationsBuilder_; + com.google.cloud.batch.v1.JobNotification, com.google.cloud.batch.v1.JobNotification.Builder, com.google.cloud.batch.v1.JobNotificationOrBuilder> notificationsBuilder_; /** - * - * *
      * Notification configurations.
      * 
@@ -3401,8 +2983,6 @@ public java.util.List getNotification } } /** - * - * *
      * Notification configurations.
      * 
@@ -3417,8 +2997,6 @@ public int getNotificationsCount() { } } /** - * - * *
      * Notification configurations.
      * 
@@ -3433,15 +3011,14 @@ public com.google.cloud.batch.v1.JobNotification getNotifications(int index) { } } /** - * - * *
      * Notification configurations.
      * 
* * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ - public Builder setNotifications(int index, com.google.cloud.batch.v1.JobNotification value) { + public Builder setNotifications( + int index, com.google.cloud.batch.v1.JobNotification value) { if (notificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3455,8 +3032,6 @@ public Builder setNotifications(int index, com.google.cloud.batch.v1.JobNotifica return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3475,8 +3050,6 @@ public Builder setNotifications( return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3497,15 +3070,14 @@ public Builder addNotifications(com.google.cloud.batch.v1.JobNotification value) return this; } /** - * - * *
      * Notification configurations.
      * 
* * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ - public Builder addNotifications(int index, com.google.cloud.batch.v1.JobNotification value) { + public Builder addNotifications( + int index, com.google.cloud.batch.v1.JobNotification value) { if (notificationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3519,8 +3091,6 @@ public Builder addNotifications(int index, com.google.cloud.batch.v1.JobNotifica return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3539,8 +3109,6 @@ public Builder addNotifications( return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3559,8 +3127,6 @@ public Builder addNotifications( return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3571,7 +3137,8 @@ public Builder addAllNotifications( java.lang.Iterable values) { if (notificationsBuilder_ == null) { ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notifications_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); onChanged(); } else { notificationsBuilder_.addAllMessages(values); @@ -3579,8 +3146,6 @@ public Builder addAllNotifications( return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3598,8 +3163,6 @@ public Builder clearNotifications() { return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3617,44 +3180,39 @@ public Builder removeNotifications(int index) { return this; } /** - * - * *
      * Notification configurations.
      * 
* * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ - public com.google.cloud.batch.v1.JobNotification.Builder getNotificationsBuilder(int index) { + public com.google.cloud.batch.v1.JobNotification.Builder getNotificationsBuilder( + int index) { return getNotificationsFieldBuilder().getBuilder(index); } /** - * - * *
      * Notification configurations.
      * 
* * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ - public com.google.cloud.batch.v1.JobNotificationOrBuilder getNotificationsOrBuilder(int index) { + public com.google.cloud.batch.v1.JobNotificationOrBuilder getNotificationsOrBuilder( + int index) { if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { + return notifications_.get(index); } else { return notificationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Notification configurations.
      * 
* * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ - public java.util.List - getNotificationsOrBuilderList() { + public java.util.List + getNotificationsOrBuilderList() { if (notificationsBuilder_ != null) { return notificationsBuilder_.getMessageOrBuilderList(); } else { @@ -3662,8 +3220,6 @@ public com.google.cloud.batch.v1.JobNotificationOrBuilder getNotificationsOrBuil } } /** - * - * *
      * Notification configurations.
      * 
@@ -3671,47 +3227,38 @@ public com.google.cloud.batch.v1.JobNotificationOrBuilder getNotificationsOrBuil * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ public com.google.cloud.batch.v1.JobNotification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder() - .addBuilder(com.google.cloud.batch.v1.JobNotification.getDefaultInstance()); + return getNotificationsFieldBuilder().addBuilder( + com.google.cloud.batch.v1.JobNotification.getDefaultInstance()); } /** - * - * *
      * Notification configurations.
      * 
* * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ - public com.google.cloud.batch.v1.JobNotification.Builder addNotificationsBuilder(int index) { - return getNotificationsFieldBuilder() - .addBuilder(index, com.google.cloud.batch.v1.JobNotification.getDefaultInstance()); + public com.google.cloud.batch.v1.JobNotification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, com.google.cloud.batch.v1.JobNotification.getDefaultInstance()); } /** - * - * *
      * Notification configurations.
      * 
* * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ - public java.util.List - getNotificationsBuilderList() { + public java.util.List + getNotificationsBuilderList() { return getNotificationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.JobNotification, - com.google.cloud.batch.v1.JobNotification.Builder, - com.google.cloud.batch.v1.JobNotificationOrBuilder> + com.google.cloud.batch.v1.JobNotification, com.google.cloud.batch.v1.JobNotification.Builder, com.google.cloud.batch.v1.JobNotificationOrBuilder> getNotificationsFieldBuilder() { if (notificationsBuilder_ == null) { - notificationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.JobNotification, - com.google.cloud.batch.v1.JobNotification.Builder, - com.google.cloud.batch.v1.JobNotificationOrBuilder>( + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.batch.v1.JobNotification, com.google.cloud.batch.v1.JobNotification.Builder, com.google.cloud.batch.v1.JobNotificationOrBuilder>( notifications_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), @@ -3720,9 +3267,9 @@ public com.google.cloud.batch.v1.JobNotification.Builder addNotificationsBuilder } return notificationsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3732,12 +3279,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.Job) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.Job) private static final com.google.cloud.batch.v1.Job DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.Job(); } @@ -3746,27 +3293,27 @@ public static com.google.cloud.batch.v1.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; @@ -3781,4 +3328,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.Job getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java similarity index 100% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java similarity index 72% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java index 1b7c531556a4..fb7e8abd59c2 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto @@ -20,62 +5,55 @@ package com.google.cloud.batch.v1; /** - * - * *
  * Notification configurations.
  * 
* * Protobuf type {@code google.cloud.batch.v1.JobNotification} */ -public final class JobNotification extends com.google.protobuf.GeneratedMessageV3 - implements +public final class JobNotification extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.JobNotification) JobNotificationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use JobNotification.newBuilder() to construct. private JobNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private JobNotification() { pubsubTopic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new JobNotification(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobNotification_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobNotification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobNotification_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobNotification_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.JobNotification.class, - com.google.cloud.batch.v1.JobNotification.Builder.class); + com.google.cloud.batch.v1.JobNotification.class, com.google.cloud.batch.v1.JobNotification.Builder.class); } /** - * - * *
    * The message type.
    * 
* * Protobuf enum {@code google.cloud.batch.v1.JobNotification.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -84,8 +62,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Notify users that the job state has changed.
      * 
@@ -94,8 +70,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_CHANGED(1), /** - * - * *
      * Notify users that the task state has changed.
      * 
@@ -107,8 +81,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -117,8 +89,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Notify users that the job state has changed.
      * 
@@ -127,8 +97,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JOB_STATE_CHANGED_VALUE = 1; /** - * - * *
      * Notify users that the task state has changed.
      * 
@@ -137,6 +105,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TASK_STATE_CHANGED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -161,49 +130,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return JOB_STATE_CHANGED; - case 2: - return TASK_STATE_CHANGED; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return JOB_STATE_CHANGED; + case 2: return TASK_STATE_CHANGED; + 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.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.batch.v1.JobNotification.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -220,89 +189,68 @@ private Type(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.batch.v1.JobNotification.Type) } - public interface MessageOrBuilder - extends + public interface MessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.JobNotification.Message) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The message type.
      * 
* * .google.cloud.batch.v1.JobNotification.Type type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * The message type.
      * 
* * .google.cloud.batch.v1.JobNotification.Type type = 1; - * * @return The type. */ com.google.cloud.batch.v1.JobNotification.Type getType(); /** - * - * *
      * The new job state.
      * 
* * .google.cloud.batch.v1.JobStatus.State new_job_state = 2; - * * @return The enum numeric value on the wire for newJobState. */ int getNewJobStateValue(); /** - * - * *
      * The new job state.
      * 
* * .google.cloud.batch.v1.JobStatus.State new_job_state = 2; - * * @return The newJobState. */ com.google.cloud.batch.v1.JobStatus.State getNewJobState(); /** - * - * *
      * The new task state.
      * 
* * .google.cloud.batch.v1.TaskStatus.State new_task_state = 3; - * * @return The enum numeric value on the wire for newTaskState. */ int getNewTaskStateValue(); /** - * - * *
      * The new task state.
      * 
* * .google.cloud.batch.v1.TaskStatus.State new_task_state = 3; - * * @return The newTaskState. */ com.google.cloud.batch.v1.TaskStatus.State getNewTaskState(); } /** - * - * *
    * Message details.
    * Describe the conditions under which messages will be sent.
@@ -315,16 +263,15 @@ public interface MessageOrBuilder
    *
    * Protobuf type {@code google.cloud.batch.v1.JobNotification.Message}
    */
-  public static final class Message extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Message extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.JobNotification.Message)
       MessageOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Message.newBuilder() to construct.
     private Message(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Message() {
       type_ = 0;
       newJobState_ = 0;
@@ -333,132 +280,103 @@ private Message() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Message();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_JobNotification_Message_fieldAccessorTable
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobNotification_Message_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.JobNotification.Message.class,
-              com.google.cloud.batch.v1.JobNotification.Message.Builder.class);
+              com.google.cloud.batch.v1.JobNotification.Message.class, com.google.cloud.batch.v1.JobNotification.Message.Builder.class);
     }
 
     public static final int TYPE_FIELD_NUMBER = 1;
     private int type_ = 0;
     /**
-     *
-     *
      * 
      * The message type.
      * 
* * .google.cloud.batch.v1.JobNotification.Type 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 message type.
      * 
* * .google.cloud.batch.v1.JobNotification.Type type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.batch.v1.JobNotification.Type getType() { - com.google.cloud.batch.v1.JobNotification.Type result = - com.google.cloud.batch.v1.JobNotification.Type.forNumber(type_); + @java.lang.Override public com.google.cloud.batch.v1.JobNotification.Type getType() { + com.google.cloud.batch.v1.JobNotification.Type result = com.google.cloud.batch.v1.JobNotification.Type.forNumber(type_); return result == null ? com.google.cloud.batch.v1.JobNotification.Type.UNRECOGNIZED : result; } public static final int NEW_JOB_STATE_FIELD_NUMBER = 2; private int newJobState_ = 0; /** - * - * *
      * The new job state.
      * 
* * .google.cloud.batch.v1.JobStatus.State new_job_state = 2; - * * @return The enum numeric value on the wire for newJobState. */ - @java.lang.Override - public int getNewJobStateValue() { + @java.lang.Override public int getNewJobStateValue() { return newJobState_; } /** - * - * *
      * The new job state.
      * 
* * .google.cloud.batch.v1.JobStatus.State new_job_state = 2; - * * @return The newJobState. */ - @java.lang.Override - public com.google.cloud.batch.v1.JobStatus.State getNewJobState() { - com.google.cloud.batch.v1.JobStatus.State result = - com.google.cloud.batch.v1.JobStatus.State.forNumber(newJobState_); + @java.lang.Override public com.google.cloud.batch.v1.JobStatus.State getNewJobState() { + com.google.cloud.batch.v1.JobStatus.State result = com.google.cloud.batch.v1.JobStatus.State.forNumber(newJobState_); return result == null ? com.google.cloud.batch.v1.JobStatus.State.UNRECOGNIZED : result; } public static final int NEW_TASK_STATE_FIELD_NUMBER = 3; private int newTaskState_ = 0; /** - * - * *
      * The new task state.
      * 
* * .google.cloud.batch.v1.TaskStatus.State new_task_state = 3; - * * @return The enum numeric value on the wire for newTaskState. */ - @java.lang.Override - public int getNewTaskStateValue() { + @java.lang.Override public int getNewTaskStateValue() { return newTaskState_; } /** - * - * *
      * The new task state.
      * 
* * .google.cloud.batch.v1.TaskStatus.State new_task_state = 3; - * * @return The newTaskState. */ - @java.lang.Override - public com.google.cloud.batch.v1.TaskStatus.State getNewTaskState() { - com.google.cloud.batch.v1.TaskStatus.State result = - com.google.cloud.batch.v1.TaskStatus.State.forNumber(newTaskState_); + @java.lang.Override public com.google.cloud.batch.v1.TaskStatus.State getNewTaskState() { + com.google.cloud.batch.v1.TaskStatus.State result = com.google.cloud.batch.v1.TaskStatus.State.forNumber(newTaskState_); return result == null ? com.google.cloud.batch.v1.TaskStatus.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -470,15 +388,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != com.google.cloud.batch.v1.JobNotification.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (newJobState_ != com.google.cloud.batch.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, newJobState_); } - if (newTaskState_ - != com.google.cloud.batch.v1.TaskStatus.State.STATE_UNSPECIFIED.getNumber()) { + if (newTaskState_ != com.google.cloud.batch.v1.TaskStatus.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, newTaskState_); } getUnknownFields().writeTo(output); @@ -491,14 +409,16 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.batch.v1.JobNotification.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } if (newJobState_ != com.google.cloud.batch.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, newJobState_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, newJobState_); } - if (newTaskState_ - != com.google.cloud.batch.v1.TaskStatus.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, newTaskState_); + if (newTaskState_ != com.google.cloud.batch.v1.TaskStatus.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, newTaskState_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -508,13 +428,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.batch.v1.JobNotification.Message)) { return super.equals(obj); } - com.google.cloud.batch.v1.JobNotification.Message other = - (com.google.cloud.batch.v1.JobNotification.Message) obj; + com.google.cloud.batch.v1.JobNotification.Message other = (com.google.cloud.batch.v1.JobNotification.Message) obj; if (type_ != other.type_) return false; if (newJobState_ != other.newJobState_) return false; @@ -542,93 +461,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.JobNotification.Message parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobNotification.Message parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.JobNotification.Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobNotification.Message parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.JobNotification.Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobNotification.Message parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.JobNotification.Message parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.JobNotification.Message parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.JobNotification.Message parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.JobNotification.Message parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.JobNotification.Message parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.JobNotification.Message parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.JobNotification.Message parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.JobNotification.Message parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.JobNotification.Message prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -638,8 +553,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Message details.
      * Describe the conditions under which messages will be sent.
@@ -652,33 +565,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.batch.v1.JobNotification.Message}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.JobNotification.Message)
         com.google.cloud.batch.v1.JobNotification.MessageOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_JobNotification_Message_fieldAccessorTable
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobNotification_Message_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.batch.v1.JobNotification.Message.class,
-                com.google.cloud.batch.v1.JobNotification.Message.Builder.class);
+                com.google.cloud.batch.v1.JobNotification.Message.class, com.google.cloud.batch.v1.JobNotification.Message.Builder.class);
       }
 
       // Construct using com.google.cloud.batch.v1.JobNotification.Message.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();
@@ -690,9 +603,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor;
       }
 
       @java.lang.Override
@@ -711,11 +624,8 @@ public com.google.cloud.batch.v1.JobNotification.Message build() {
 
       @java.lang.Override
       public com.google.cloud.batch.v1.JobNotification.Message buildPartial() {
-        com.google.cloud.batch.v1.JobNotification.Message result =
-            new com.google.cloud.batch.v1.JobNotification.Message(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.batch.v1.JobNotification.Message result = new com.google.cloud.batch.v1.JobNotification.Message(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -737,41 +647,38 @@ private void buildPartial0(com.google.cloud.batch.v1.JobNotification.Message res
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.batch.v1.JobNotification.Message) {
-          return mergeFrom((com.google.cloud.batch.v1.JobNotification.Message) other);
+          return mergeFrom((com.google.cloud.batch.v1.JobNotification.Message)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -779,8 +686,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.batch.v1.JobNotification.Message other) {
-        if (other == com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance()) return this;
         if (other.type_ != 0) {
           setTypeValue(other.getTypeValue());
         }
@@ -816,31 +722,27 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  type_ = input.readEnum();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              case 16:
-                {
-                  newJobState_ = input.readEnum();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-              case 24:
-                {
-                  newTaskState_ = input.readEnum();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 24
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                type_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+              case 16: {
+                newJobState_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+              case 24: {
+                newTaskState_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                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) {
@@ -850,34 +752,26 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private int type_ = 0;
       /**
-       *
-       *
        * 
        * The message type.
        * 
* * .google.cloud.batch.v1.JobNotification.Type 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 message type.
        * 
* * .google.cloud.batch.v1.JobNotification.Type type = 1; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -888,33 +782,24 @@ public Builder setTypeValue(int value) { return this; } /** - * - * *
        * The message type.
        * 
* * .google.cloud.batch.v1.JobNotification.Type type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.batch.v1.JobNotification.Type getType() { - com.google.cloud.batch.v1.JobNotification.Type result = - com.google.cloud.batch.v1.JobNotification.Type.forNumber(type_); - return result == null - ? com.google.cloud.batch.v1.JobNotification.Type.UNRECOGNIZED - : result; + com.google.cloud.batch.v1.JobNotification.Type result = com.google.cloud.batch.v1.JobNotification.Type.forNumber(type_); + return result == null ? com.google.cloud.batch.v1.JobNotification.Type.UNRECOGNIZED : result; } /** - * - * *
        * The message type.
        * 
* * .google.cloud.batch.v1.JobNotification.Type type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -928,14 +813,11 @@ public Builder setType(com.google.cloud.batch.v1.JobNotification.Type value) { return this; } /** - * - * *
        * The message type.
        * 
* * .google.cloud.batch.v1.JobNotification.Type type = 1; - * * @return This builder for chaining. */ public Builder clearType() { @@ -947,29 +829,22 @@ public Builder clearType() { private int newJobState_ = 0; /** - * - * *
        * The new job state.
        * 
* * .google.cloud.batch.v1.JobStatus.State new_job_state = 2; - * * @return The enum numeric value on the wire for newJobState. */ - @java.lang.Override - public int getNewJobStateValue() { + @java.lang.Override public int getNewJobStateValue() { return newJobState_; } /** - * - * *
        * The new job state.
        * 
* * .google.cloud.batch.v1.JobStatus.State new_job_state = 2; - * * @param value The enum numeric value on the wire for newJobState to set. * @return This builder for chaining. */ @@ -980,31 +855,24 @@ public Builder setNewJobStateValue(int value) { return this; } /** - * - * *
        * The new job state.
        * 
* * .google.cloud.batch.v1.JobStatus.State new_job_state = 2; - * * @return The newJobState. */ @java.lang.Override public com.google.cloud.batch.v1.JobStatus.State getNewJobState() { - com.google.cloud.batch.v1.JobStatus.State result = - com.google.cloud.batch.v1.JobStatus.State.forNumber(newJobState_); + com.google.cloud.batch.v1.JobStatus.State result = com.google.cloud.batch.v1.JobStatus.State.forNumber(newJobState_); return result == null ? com.google.cloud.batch.v1.JobStatus.State.UNRECOGNIZED : result; } /** - * - * *
        * The new job state.
        * 
* * .google.cloud.batch.v1.JobStatus.State new_job_state = 2; - * * @param value The newJobState to set. * @return This builder for chaining. */ @@ -1018,14 +886,11 @@ public Builder setNewJobState(com.google.cloud.batch.v1.JobStatus.State value) { return this; } /** - * - * *
        * The new job state.
        * 
* * .google.cloud.batch.v1.JobStatus.State new_job_state = 2; - * * @return This builder for chaining. */ public Builder clearNewJobState() { @@ -1037,29 +902,22 @@ public Builder clearNewJobState() { private int newTaskState_ = 0; /** - * - * *
        * The new task state.
        * 
* * .google.cloud.batch.v1.TaskStatus.State new_task_state = 3; - * * @return The enum numeric value on the wire for newTaskState. */ - @java.lang.Override - public int getNewTaskStateValue() { + @java.lang.Override public int getNewTaskStateValue() { return newTaskState_; } /** - * - * *
        * The new task state.
        * 
* * .google.cloud.batch.v1.TaskStatus.State new_task_state = 3; - * * @param value The enum numeric value on the wire for newTaskState to set. * @return This builder for chaining. */ @@ -1070,31 +928,24 @@ public Builder setNewTaskStateValue(int value) { return this; } /** - * - * *
        * The new task state.
        * 
* * .google.cloud.batch.v1.TaskStatus.State new_task_state = 3; - * * @return The newTaskState. */ @java.lang.Override public com.google.cloud.batch.v1.TaskStatus.State getNewTaskState() { - com.google.cloud.batch.v1.TaskStatus.State result = - com.google.cloud.batch.v1.TaskStatus.State.forNumber(newTaskState_); + com.google.cloud.batch.v1.TaskStatus.State result = com.google.cloud.batch.v1.TaskStatus.State.forNumber(newTaskState_); return result == null ? com.google.cloud.batch.v1.TaskStatus.State.UNRECOGNIZED : result; } /** - * - * *
        * The new task state.
        * 
* * .google.cloud.batch.v1.TaskStatus.State new_task_state = 3; - * * @param value The newTaskState to set. * @return This builder for chaining. */ @@ -1108,14 +959,11 @@ public Builder setNewTaskState(com.google.cloud.batch.v1.TaskStatus.State value) return this; } /** - * - * *
        * The new task state.
        * 
* * .google.cloud.batch.v1.TaskStatus.State new_task_state = 3; - * * @return This builder for chaining. */ public Builder clearNewTaskState() { @@ -1124,7 +972,6 @@ public Builder clearNewTaskState() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1137,12 +984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.JobNotification.Message) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.JobNotification.Message) private static final com.google.cloud.batch.v1.JobNotification.Message DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.JobNotification.Message(); } @@ -1151,28 +998,27 @@ public static com.google.cloud.batch.v1.JobNotification.Message getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Message 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 Message 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; @@ -1187,16 +1033,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.JobNotification.Message getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int PUBSUB_TOPIC_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object pubsubTopic_ = ""; /** - * - * *
    * The Pub/Sub topic where notifications like the job state changes
    * will be published. The topic must exist in the same project as
@@ -1206,7 +1050,6 @@ public com.google.cloud.batch.v1.JobNotification.Message getDefaultInstanceForTy
    * 
* * string pubsub_topic = 1; - * * @return The pubsubTopic. */ @java.lang.Override @@ -1215,15 +1058,14 @@ public java.lang.String getPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; } } /** - * - * *
    * The Pub/Sub topic where notifications like the job state changes
    * will be published. The topic must exist in the same project as
@@ -1233,15 +1075,16 @@ public java.lang.String getPubsubTopic() {
    * 
* * string pubsub_topic = 1; - * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1252,15 +1095,12 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { public static final int MESSAGE_FIELD_NUMBER = 2; private com.google.cloud.batch.v1.JobNotification.Message message_; /** - * - * *
    * The attribute requirements of messages to be sent to this Pub/Sub topic.
    * Without this field, no message will be sent.
    * 
* * .google.cloud.batch.v1.JobNotification.Message message = 2; - * * @return Whether the message field is set. */ @java.lang.Override @@ -1268,26 +1108,19 @@ public boolean hasMessage() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The attribute requirements of messages to be sent to this Pub/Sub topic.
    * Without this field, no message will be sent.
    * 
* * .google.cloud.batch.v1.JobNotification.Message message = 2; - * * @return The message. */ @java.lang.Override public com.google.cloud.batch.v1.JobNotification.Message getMessage() { - return message_ == null - ? com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance() - : message_; + return message_ == null ? com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance() : message_; } /** - * - * *
    * The attribute requirements of messages to be sent to this Pub/Sub topic.
    * Without this field, no message will be sent.
@@ -1297,13 +1130,10 @@ public com.google.cloud.batch.v1.JobNotification.Message getMessage() {
    */
   @java.lang.Override
   public com.google.cloud.batch.v1.JobNotification.MessageOrBuilder getMessageOrBuilder() {
-    return message_ == null
-        ? com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance()
-        : message_;
+    return message_ == null ? com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance() : message_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1315,7 +1145,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(pubsubTopic_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopic_);
     }
@@ -1335,7 +1166,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pubsubTopic_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMessage());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getMessage());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1345,18 +1177,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.batch.v1.JobNotification)) {
       return super.equals(obj);
     }
-    com.google.cloud.batch.v1.JobNotification other =
-        (com.google.cloud.batch.v1.JobNotification) obj;
+    com.google.cloud.batch.v1.JobNotification other = (com.google.cloud.batch.v1.JobNotification) obj;
 
-    if (!getPubsubTopic().equals(other.getPubsubTopic())) return false;
+    if (!getPubsubTopic()
+        .equals(other.getPubsubTopic())) return false;
     if (hasMessage() != other.hasMessage()) return false;
     if (hasMessage()) {
-      if (!getMessage().equals(other.getMessage())) return false;
+      if (!getMessage()
+          .equals(other.getMessage())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1380,127 +1213,120 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.batch.v1.JobNotification parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.batch.v1.JobNotification parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.batch.v1.JobNotification parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.batch.v1.JobNotification parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.batch.v1.JobNotification parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.batch.v1.JobNotification parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.batch.v1.JobNotification parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.batch.v1.JobNotification parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.batch.v1.JobNotification parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.batch.v1.JobNotification parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.batch.v1.JobNotification parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.batch.v1.JobNotification parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.batch.v1.JobNotification parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.batch.v1.JobNotification parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.batch.v1.JobNotification prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Notification configurations.
    * 
* * Protobuf type {@code google.cloud.batch.v1.JobNotification} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.JobNotification) com.google.cloud.batch.v1.JobNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobNotification_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobNotification_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobNotification_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobNotification_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.JobNotification.class, - com.google.cloud.batch.v1.JobNotification.Builder.class); + com.google.cloud.batch.v1.JobNotification.class, com.google.cloud.batch.v1.JobNotification.Builder.class); } // Construct using com.google.cloud.batch.v1.JobNotification.newBuilder() @@ -1508,17 +1334,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getMessageFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1533,9 +1359,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobNotification_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobNotification_descriptor; } @java.lang.Override @@ -1554,11 +1380,8 @@ public com.google.cloud.batch.v1.JobNotification build() { @java.lang.Override public com.google.cloud.batch.v1.JobNotification buildPartial() { - com.google.cloud.batch.v1.JobNotification result = - new com.google.cloud.batch.v1.JobNotification(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.JobNotification result = new com.google.cloud.batch.v1.JobNotification(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1570,7 +1393,9 @@ private void buildPartial0(com.google.cloud.batch.v1.JobNotification result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + result.message_ = messageBuilder_ == null + ? message_ + : messageBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -1580,39 +1405,38 @@ private void buildPartial0(com.google.cloud.batch.v1.JobNotification result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.JobNotification) { - return mergeFrom((com.google.cloud.batch.v1.JobNotification) other); + return mergeFrom((com.google.cloud.batch.v1.JobNotification)other); } else { super.mergeFrom(other); return this; @@ -1655,25 +1479,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - pubsubTopic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + pubsubTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMessageFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -1683,13 +1506,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object pubsubTopic_ = ""; /** - * - * *
      * The Pub/Sub topic where notifications like the job state changes
      * will be published. The topic must exist in the same project as
@@ -1699,13 +1519,13 @@ public Builder mergeFrom(
      * 
* * string pubsub_topic = 1; - * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; @@ -1714,8 +1534,6 @@ public java.lang.String getPubsubTopic() { } } /** - * - * *
      * The Pub/Sub topic where notifications like the job state changes
      * will be published. The topic must exist in the same project as
@@ -1725,14 +1543,15 @@ public java.lang.String getPubsubTopic() {
      * 
* * string pubsub_topic = 1; - * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1740,8 +1559,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } } /** - * - * *
      * The Pub/Sub topic where notifications like the job state changes
      * will be published. The topic must exist in the same project as
@@ -1751,22 +1568,18 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
      * 
* * string pubsub_topic = 1; - * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPubsubTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pubsubTopic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The Pub/Sub topic where notifications like the job state changes
      * will be published. The topic must exist in the same project as
@@ -1776,7 +1589,6 @@ public Builder setPubsubTopic(java.lang.String value) {
      * 
* * string pubsub_topic = 1; - * * @return This builder for chaining. */ public Builder clearPubsubTopic() { @@ -1786,8 +1598,6 @@ public Builder clearPubsubTopic() { return this; } /** - * - * *
      * The Pub/Sub topic where notifications like the job state changes
      * will be published. The topic must exist in the same project as
@@ -1797,14 +1607,12 @@ public Builder clearPubsubTopic() {
      * 
* * string pubsub_topic = 1; - * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pubsubTopic_ = value; bitField0_ |= 0x00000001; @@ -1814,49 +1622,36 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { private com.google.cloud.batch.v1.JobNotification.Message message_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.JobNotification.Message, - com.google.cloud.batch.v1.JobNotification.Message.Builder, - com.google.cloud.batch.v1.JobNotification.MessageOrBuilder> - messageBuilder_; + com.google.cloud.batch.v1.JobNotification.Message, com.google.cloud.batch.v1.JobNotification.Message.Builder, com.google.cloud.batch.v1.JobNotification.MessageOrBuilder> messageBuilder_; /** - * - * *
      * The attribute requirements of messages to be sent to this Pub/Sub topic.
      * Without this field, no message will be sent.
      * 
* * .google.cloud.batch.v1.JobNotification.Message message = 2; - * * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The attribute requirements of messages to be sent to this Pub/Sub topic.
      * Without this field, no message will be sent.
      * 
* * .google.cloud.batch.v1.JobNotification.Message message = 2; - * * @return The message. */ public com.google.cloud.batch.v1.JobNotification.Message getMessage() { if (messageBuilder_ == null) { - return message_ == null - ? com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance() - : message_; + return message_ == null ? com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** - * - * *
      * The attribute requirements of messages to be sent to this Pub/Sub topic.
      * Without this field, no message will be sent.
@@ -1878,8 +1673,6 @@ public Builder setMessage(com.google.cloud.batch.v1.JobNotification.Message valu
       return this;
     }
     /**
-     *
-     *
      * 
      * The attribute requirements of messages to be sent to this Pub/Sub topic.
      * Without this field, no message will be sent.
@@ -1899,8 +1692,6 @@ public Builder setMessage(
       return this;
     }
     /**
-     *
-     *
      * 
      * The attribute requirements of messages to be sent to this Pub/Sub topic.
      * Without this field, no message will be sent.
@@ -1910,9 +1701,9 @@ public Builder setMessage(
      */
     public Builder mergeMessage(com.google.cloud.batch.v1.JobNotification.Message value) {
       if (messageBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && message_ != null
-            && message_ != com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          message_ != null &&
+          message_ != com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance()) {
           getMessageBuilder().mergeFrom(value);
         } else {
           message_ = value;
@@ -1927,8 +1718,6 @@ public Builder mergeMessage(com.google.cloud.batch.v1.JobNotification.Message va
       return this;
     }
     /**
-     *
-     *
      * 
      * The attribute requirements of messages to be sent to this Pub/Sub topic.
      * Without this field, no message will be sent.
@@ -1947,8 +1736,6 @@ public Builder clearMessage() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The attribute requirements of messages to be sent to this Pub/Sub topic.
      * Without this field, no message will be sent.
@@ -1962,8 +1749,6 @@ public com.google.cloud.batch.v1.JobNotification.Message.Builder getMessageBuild
       return getMessageFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The attribute requirements of messages to be sent to this Pub/Sub topic.
      * Without this field, no message will be sent.
@@ -1975,14 +1760,11 @@ public com.google.cloud.batch.v1.JobNotification.MessageOrBuilder getMessageOrBu
       if (messageBuilder_ != null) {
         return messageBuilder_.getMessageOrBuilder();
       } else {
-        return message_ == null
-            ? com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance()
-            : message_;
+        return message_ == null ?
+            com.google.cloud.batch.v1.JobNotification.Message.getDefaultInstance() : message_;
       }
     }
     /**
-     *
-     *
      * 
      * The attribute requirements of messages to be sent to this Pub/Sub topic.
      * Without this field, no message will be sent.
@@ -1991,24 +1773,21 @@ public com.google.cloud.batch.v1.JobNotification.MessageOrBuilder getMessageOrBu
      * .google.cloud.batch.v1.JobNotification.Message message = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.batch.v1.JobNotification.Message,
-            com.google.cloud.batch.v1.JobNotification.Message.Builder,
-            com.google.cloud.batch.v1.JobNotification.MessageOrBuilder>
+        com.google.cloud.batch.v1.JobNotification.Message, com.google.cloud.batch.v1.JobNotification.Message.Builder, com.google.cloud.batch.v1.JobNotification.MessageOrBuilder> 
         getMessageFieldBuilder() {
       if (messageBuilder_ == null) {
-        messageBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.batch.v1.JobNotification.Message,
-                com.google.cloud.batch.v1.JobNotification.Message.Builder,
-                com.google.cloud.batch.v1.JobNotification.MessageOrBuilder>(
-                getMessage(), getParentForChildren(), isClean());
+        messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.batch.v1.JobNotification.Message, com.google.cloud.batch.v1.JobNotification.Message.Builder, com.google.cloud.batch.v1.JobNotification.MessageOrBuilder>(
+                getMessage(),
+                getParentForChildren(),
+                isClean());
         message_ = null;
       }
       return messageBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2018,12 +1797,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.JobNotification)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.JobNotification)
   private static final com.google.cloud.batch.v1.JobNotification DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.batch.v1.JobNotification();
   }
@@ -2032,27 +1811,27 @@ public static com.google.cloud.batch.v1.JobNotification getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public JobNotification 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 JobNotification 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;
@@ -2067,4 +1846,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.batch.v1.JobNotification getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java
similarity index 73%
rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java
rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java
index 26b5f3dcc2be..cb198f97d127 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java
+++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java
@@ -1,32 +1,14 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/batch/v1/job.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.batch.v1;
 
-public interface JobNotificationOrBuilder
-    extends
+public interface JobNotificationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.JobNotification)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The Pub/Sub topic where notifications like the job state changes
    * will be published. The topic must exist in the same project as
@@ -36,13 +18,10 @@ public interface JobNotificationOrBuilder
    * 
* * string pubsub_topic = 1; - * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** - * - * *
    * The Pub/Sub topic where notifications like the job state changes
    * will be published. The topic must exist in the same project as
@@ -52,40 +31,32 @@ public interface JobNotificationOrBuilder
    * 
* * string pubsub_topic = 1; - * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString getPubsubTopicBytes(); + com.google.protobuf.ByteString + getPubsubTopicBytes(); /** - * - * *
    * The attribute requirements of messages to be sent to this Pub/Sub topic.
    * Without this field, no message will be sent.
    * 
* * .google.cloud.batch.v1.JobNotification.Message message = 2; - * * @return Whether the message field is set. */ boolean hasMessage(); /** - * - * *
    * The attribute requirements of messages to be sent to this Pub/Sub topic.
    * Without this field, no message will be sent.
    * 
* * .google.cloud.batch.v1.JobNotification.Message message = 2; - * * @return The message. */ com.google.cloud.batch.v1.JobNotification.Message getMessage(); /** - * - * *
    * The attribute requirements of messages to be sent to this Pub/Sub topic.
    * Without this field, no message will be sent.
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java
similarity index 77%
rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java
rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java
index f5b096e40008..745b6577d828 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java
+++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java
@@ -1,84 +1,56 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/batch/v1/job.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.batch.v1;
 
-public interface JobOrBuilder
-    extends
+public interface JobOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.Job)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Output only. Job name.
    * For example: "projects/123456/locations/us-central1/jobs/job01".
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Job name.
    * For example: "projects/123456/locations/us-central1/jobs/job01".
    * 
* * 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. A system generated unique ID (in UUID4 format) for the Job.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. A system generated unique ID (in UUID4 format) for the Job.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Priority of the Job.
    * The valid value range is [0, 100). Default value is 0.
@@ -88,100 +60,73 @@ public interface JobOrBuilder
    * 
* * int64 priority = 3; - * * @return The priority. */ long getPriority(); /** - * - * *
    * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
    * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getTaskGroupsList(); + java.util.List + getTaskGroupsList(); /** - * - * *
    * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
    * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.batch.v1.TaskGroup getTaskGroups(int index); /** - * - * *
    * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
    * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ int getTaskGroupsCount(); /** - * - * *
    * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
    * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getTaskGroupsOrBuilderList(); /** - * - * *
    * Required. TaskGroups in the Job. Only one TaskGroup is supported now.
    * 
* - * - * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.batch.v1.TaskGroupOrBuilder getTaskGroupsOrBuilder(int index); + com.google.cloud.batch.v1.TaskGroupOrBuilder getTaskGroupsOrBuilder( + int index); /** - * - * *
    * Compute resource allocation for all TaskGroups in the Job.
    * 
* * .google.cloud.batch.v1.AllocationPolicy allocation_policy = 7; - * * @return Whether the allocationPolicy field is set. */ boolean hasAllocationPolicy(); /** - * - * *
    * Compute resource allocation for all TaskGroups in the Job.
    * 
* * .google.cloud.batch.v1.AllocationPolicy allocation_policy = 7; - * * @return The allocationPolicy. */ com.google.cloud.batch.v1.AllocationPolicy getAllocationPolicy(); /** - * - * *
    * Compute resource allocation for all TaskGroups in the Job.
    * 
@@ -191,8 +136,6 @@ public interface JobOrBuilder com.google.cloud.batch.v1.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder(); /** - * - * *
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -210,8 +153,6 @@ public interface JobOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -227,13 +168,15 @@ public interface JobOrBuilder
    *
    * map<string, string> labels = 8;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -249,10 +192,9 @@ public interface JobOrBuilder
    *
    * map<string, string> labels = 8;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -269,13 +211,11 @@ public interface JobOrBuilder
    * map<string, string> labels = 8;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -291,149 +231,109 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Job status. It is read only for users.
    * 
* - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
    * Output only. Job status. It is read only for users.
    * 
* - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ com.google.cloud.batch.v1.JobStatus getStatus(); /** - * - * *
    * Output only. Job status. It is read only for users.
    * 
* - * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.batch.v1.JobStatusOrBuilder getStatusOrBuilder(); /** - * - * *
    * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Log preservation policy for the Job.
    * 
* * .google.cloud.batch.v1.LogsPolicy logs_policy = 13; - * * @return Whether the logsPolicy field is set. */ boolean hasLogsPolicy(); /** - * - * *
    * Log preservation policy for the Job.
    * 
* * .google.cloud.batch.v1.LogsPolicy logs_policy = 13; - * * @return The logsPolicy. */ com.google.cloud.batch.v1.LogsPolicy getLogsPolicy(); /** - * - * *
    * Log preservation policy for the Job.
    * 
@@ -443,18 +343,15 @@ java.lang.String getLabelsOrDefault( com.google.cloud.batch.v1.LogsPolicyOrBuilder getLogsPolicyOrBuilder(); /** - * - * *
    * Notification configurations.
    * 
* * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ - java.util.List getNotificationsList(); + java.util.List + getNotificationsList(); /** - * - * *
    * Notification configurations.
    * 
@@ -463,8 +360,6 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.batch.v1.JobNotification getNotifications(int index); /** - * - * *
    * Notification configurations.
    * 
@@ -473,24 +368,21 @@ java.lang.String getLabelsOrDefault( */ int getNotificationsCount(); /** - * - * *
    * Notification configurations.
    * 
* * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ - java.util.List + java.util.List getNotificationsOrBuilderList(); /** - * - * *
    * Notification configurations.
    * 
* * repeated .google.cloud.batch.v1.JobNotification notifications = 14; */ - com.google.cloud.batch.v1.JobNotificationOrBuilder getNotificationsOrBuilder(int index); + com.google.cloud.batch.v1.JobNotificationOrBuilder getNotificationsOrBuilder( + int index); } diff --git a/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java new file mode 100644 index 000000000000..16ad166be7a5 --- /dev/null +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java @@ -0,0 +1,445 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/batch/v1/job.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.batch.v1; + +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_batch_v1_Job_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_Job_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_Job_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_LogsPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_LogsPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_JobStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_JobStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_JobNotification_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_JobNotification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_JobNotification_Message_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_TaskGroup_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_TaskGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_batch_v1_ServiceAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_batch_v1_ServiceAccount_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\037google/cloud/batch/v1/job.proto\022\025googl" + + "e.cloud.batch.v1\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\032 go" + + "ogle/cloud/batch/v1/task.proto\032\036google/p" + + "rotobuf/duration.proto\032\037google/protobuf/" + + "timestamp.proto\"\220\005\n\003Job\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\020\n\010priority\030\003 \001(\003\022:" + + "\n\013task_groups\030\004 \003(\0132 .google.cloud.batch" + + ".v1.TaskGroupB\003\340A\002\022B\n\021allocation_policy\030" + + "\007 \001(\0132\'.google.cloud.batch.v1.Allocation" + + "Policy\0226\n\006labels\030\010 \003(\0132&.google.cloud.ba" + + "tch.v1.Job.LabelsEntry\0225\n\006status\030\t \001(\0132 " + + ".google.cloud.batch.v1.JobStatusB\003\340A\003\0224\n" + + "\013create_time\030\013 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013update_time\030\014 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0226\n\013logs_policy" + + "\030\r \001(\0132!.google.cloud.batch.v1.LogsPolic" + + "y\022=\n\rnotifications\030\016 \003(\0132&.google.cloud." + + "batch.v1.JobNotification\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:Q\352AN\n\030ba" + + "tch.googleapis.com/Job\0222projects/{projec" + + "t}/locations/{location}/jobs/{job}\"\315\002\n\nL" + + "ogsPolicy\022B\n\013destination\030\001 \001(\0162-.google." + + "cloud.batch.v1.LogsPolicy.Destination\022\021\n" + + "\tlogs_path\030\002 \001(\t\022W\n\024cloud_logging_option" + + "\030\003 \001(\01324.google.cloud.batch.v1.LogsPolic" + + "y.CloudLoggingOptionB\003\340A\001\032F\n\022CloudLoggin" + + "gOption\0220\n#use_generic_task_monitored_re" + + "source\030\001 \001(\010B\003\340A\001\"G\n\013Destination\022\033\n\027DEST" + + "INATION_UNSPECIFIED\020\000\022\021\n\rCLOUD_LOGGING\020\001" + + "\022\010\n\004PATH\020\002\"\200\007\n\tJobStatus\0225\n\005state\030\001 \001(\0162" + + "&.google.cloud.batch.v1.JobStatus.State\022" + + "9\n\rstatus_events\030\002 \003(\0132\".google.cloud.ba" + + "tch.v1.StatusEvent\022E\n\013task_groups\030\004 \003(\0132" + + "0.google.cloud.batch.v1.JobStatus.TaskGr" + + "oupsEntry\022/\n\014run_duration\030\005 \001(\0132\031.google" + + ".protobuf.Duration\032\321\001\n\016InstanceStatus\022\024\n" + + "\014machine_type\030\001 \001(\t\022U\n\022provisioning_mode" + + "l\030\002 \001(\01629.google.cloud.batch.v1.Allocati" + + "onPolicy.ProvisioningModel\022\021\n\ttask_pack\030" + + "\003 \001(\003\022?\n\tboot_disk\030\004 \001(\0132,.google.cloud." + + "batch.v1.AllocationPolicy.Disk\032\322\001\n\017TaskG" + + "roupStatus\022L\n\006counts\030\001 \003(\0132<.google.clou" + + "d.batch.v1.JobStatus.TaskGroupStatus.Cou" + + "ntsEntry\022B\n\tinstances\030\002 \003(\0132/.google.clo" + + "ud.batch.v1.JobStatus.InstanceStatus\032-\n\013" + + "CountsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:" + + "\0028\001\032c\n\017TaskGroupsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005v" + + "alue\030\002 \001(\01320.google.cloud.batch.v1.JobSt" + + "atus.TaskGroupStatus:\0028\001\"{\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020\001\022\r\n\tSCHEDULE" + + "D\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006FAILE" + + "D\020\005\022\030\n\024DELETION_IN_PROGRESS\020\006\"\374\002\n\017JobNot" + + "ification\022\024\n\014pubsub_topic\030\001 \001(\t\022?\n\007messa" + + "ge\030\002 \001(\0132..google.cloud.batch.v1.JobNoti" + + "fication.Message\032\304\001\n\007Message\0229\n\004type\030\001 \001" + + "(\0162+.google.cloud.batch.v1.JobNotificati" + + "on.Type\022=\n\rnew_job_state\030\002 \001(\0162&.google." + + "cloud.batch.v1.JobStatus.State\022?\n\016new_ta" + + "sk_state\030\003 \001(\0162\'.google.cloud.batch.v1.T" + + "askStatus.State\"K\n\004Type\022\024\n\020TYPE_UNSPECIF" + + "IED\020\000\022\025\n\021JOB_STATE_CHANGED\020\001\022\026\n\022TASK_STA" + + "TE_CHANGED\020\002\"\274\016\n\020AllocationPolicy\022H\n\010loc" + + "ation\030\001 \001(\01326.google.cloud.batch.v1.Allo" + + "cationPolicy.LocationPolicy\022S\n\tinstances" + + "\030\010 \003(\0132@.google.cloud.batch.v1.Allocatio" + + "nPolicy.InstancePolicyOrTemplate\022>\n\017serv" + + "ice_account\030\t \001(\0132%.google.cloud.batch.v" + + "1.ServiceAccount\022C\n\006labels\030\006 \003(\01323.googl" + + "e.cloud.batch.v1.AllocationPolicy.Labels" + + "Entry\022F\n\007network\030\007 \001(\01325.google.cloud.ba" + + "tch.v1.AllocationPolicy.NetworkPolicy\022J\n" + + "\tplacement\030\n \001(\01327.google.cloud.batch.v1" + + ".AllocationPolicy.PlacementPolicy\022\021\n\004tag" + + "s\030\013 \003(\tB\003\340A\001\032+\n\016LocationPolicy\022\031\n\021allowe" + + "d_locations\030\001 \003(\t\032q\n\004Disk\022\017\n\005image\030\004 \001(\t" + + "H\000\022\022\n\010snapshot\030\005 \001(\tH\000\022\014\n\004type\030\001 \001(\t\022\017\n\007" + + "size_gb\030\002 \001(\003\022\026\n\016disk_interface\030\006 \001(\tB\r\n" + + "\013data_source\032\212\001\n\014AttachedDisk\022@\n\010new_dis" + + "k\030\001 \001(\0132,.google.cloud.batch.v1.Allocati" + + "onPolicy.DiskH\000\022\027\n\rexisting_disk\030\002 \001(\tH\000" + + "\022\023\n\013device_name\030\003 \001(\tB\n\n\010attached\032h\n\013Acc" + + "elerator\022\014\n\004type\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\022\037\n" + + "\023install_gpu_drivers\030\003 \001(\010B\002\030\001\022\033\n\016driver" + + "_version\030\004 \001(\tB\003\340A\001\032\202\003\n\016InstancePolicy\022\024" + + "\n\014machine_type\030\002 \001(\t\022\030\n\020min_cpu_platform" + + "\030\003 \001(\t\022U\n\022provisioning_model\030\004 \001(\01629.goo" + + "gle.cloud.batch.v1.AllocationPolicy.Prov" + + "isioningModel\022I\n\014accelerators\030\005 \003(\01323.go" + + "ogle.cloud.batch.v1.AllocationPolicy.Acc" + + "elerator\022?\n\tboot_disk\030\010 \001(\0132,.google.clo" + + "ud.batch.v1.AllocationPolicy.Disk\022C\n\005dis" + + "ks\030\006 \003(\01324.google.cloud.batch.v1.Allocat" + + "ionPolicy.AttachedDisk\022\030\n\013reservation\030\007 " + + "\001(\tB\003\340A\001\032\261\001\n\030InstancePolicyOrTemplate\022H\n" + + "\006policy\030\001 \001(\01326.google.cloud.batch.v1.Al" + + "locationPolicy.InstancePolicyH\000\022\033\n\021insta" + + "nce_template\030\002 \001(\tH\000\022\033\n\023install_gpu_driv" + + "ers\030\003 \001(\010B\021\n\017policy_template\032W\n\020NetworkI" + + "nterface\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030" + + "\002 \001(\t\022\036\n\026no_external_ip_address\030\003 \001(\010\032e\n" + + "\rNetworkPolicy\022T\n\022network_interfaces\030\001 \003" + + "(\01328.google.cloud.batch.v1.AllocationPol" + + "icy.NetworkInterface\032<\n\017PlacementPolicy\022" + + "\023\n\013collocation\030\001 \001(\t\022\024\n\014max_distance\030\002 \001" + + "(\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"`\n\021ProvisioningModel\022\"\n\036PROVIS" + + "IONING_MODEL_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001" + + "\022\010\n\004SPOT\020\002\022\017\n\013PREEMPTIBLE\020\003\"\313\004\n\tTaskGrou" + + "p\022\021\n\004name\030\001 \001(\tB\003\340A\003\0227\n\ttask_spec\030\003 \001(\0132" + + "\037.google.cloud.batch.v1.TaskSpecB\003\340A\002\022\022\n" + + "\ntask_count\030\004 \001(\003\022\023\n\013parallelism\030\005 \001(\003\022L" + + "\n\021scheduling_policy\030\006 \001(\01621.google.cloud" + + ".batch.v1.TaskGroup.SchedulingPolicy\022=\n\021" + + "task_environments\030\t \003(\0132\".google.cloud.b" + + "atch.v1.Environment\022\033\n\023task_count_per_no" + + "de\030\n \001(\003\022\032\n\022require_hosts_file\030\013 \001(\010\022\026\n\016" + + "permissive_ssh\030\014 \001(\010\022\034\n\017run_as_non_root\030" + + "\016 \001(\010B\003\340A\001\"\\\n\020SchedulingPolicy\022!\n\035SCHEDU" + + "LING_POLICY_UNSPECIFIED\020\000\022\027\n\023AS_SOON_AS_" + + "POSSIBLE\020\001\022\014\n\010IN_ORDER\020\002:o\352Al\n\036batch.goo" + + "gleapis.com/TaskGroup\022Jprojects/{project" + + "}/locations/{location}/jobs/{job}/taskGr" + + "oups/{task_group}\"/\n\016ServiceAccount\022\r\n\005e" + + "mail\030\001 \001(\t\022\016\n\006scopes\030\002 \003(\tB\251\001\n\031com.googl" + + "e.cloud.batch.v1B\010JobProtoP\001Z/cloud.goog" + + "le.com/go/batch/apiv1/batchpb;batchpb\242\002\003" + + "GCB\252\002\025Google.Cloud.Batch.V1\312\002\025Google\\Clo" + + "ud\\Batch\\V1\352\002\030Google::Cloud::Batch::V1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.batch.v1.TaskProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_batch_v1_Job_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_batch_v1_Job_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_Job_descriptor, + new java.lang.String[] { "Name", "Uid", "Priority", "TaskGroups", "AllocationPolicy", "Labels", "Status", "CreateTime", "UpdateTime", "LogsPolicy", "Notifications", }); + internal_static_google_cloud_batch_v1_Job_LabelsEntry_descriptor = + internal_static_google_cloud_batch_v1_Job_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_batch_v1_Job_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_Job_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_batch_v1_LogsPolicy_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_batch_v1_LogsPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_LogsPolicy_descriptor, + new java.lang.String[] { "Destination", "LogsPath", "CloudLoggingOption", }); + internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor = + internal_static_google_cloud_batch_v1_LogsPolicy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor, + new java.lang.String[] { "UseGenericTaskMonitoredResource", }); + internal_static_google_cloud_batch_v1_JobStatus_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_batch_v1_JobStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_JobStatus_descriptor, + new java.lang.String[] { "State", "StatusEvents", "TaskGroups", "RunDuration", }); + internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor = + internal_static_google_cloud_batch_v1_JobStatus_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor, + new java.lang.String[] { "MachineType", "ProvisioningModel", "TaskPack", "BootDisk", }); + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor = + internal_static_google_cloud_batch_v1_JobStatus_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor, + new java.lang.String[] { "Counts", "Instances", }); + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_descriptor = + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_descriptor = + internal_static_google_cloud_batch_v1_JobStatus_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_batch_v1_JobNotification_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_batch_v1_JobNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_JobNotification_descriptor, + new java.lang.String[] { "PubsubTopic", "Message", }); + internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor = + internal_static_google_cloud_batch_v1_JobNotification_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_batch_v1_JobNotification_Message_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_JobNotification_Message_descriptor, + new java.lang.String[] { "Type", "NewJobState", "NewTaskState", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_batch_v1_AllocationPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor, + new java.lang.String[] { "Location", "Instances", "ServiceAccount", "Labels", "Network", "Placement", "Tags", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_LocationPolicy_descriptor, + new java.lang.String[] { "AllowedLocations", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_Disk_descriptor, + new java.lang.String[] { "Image", "Snapshot", "Type", "SizeGb", "DiskInterface", "DataSource", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_AttachedDisk_descriptor, + new java.lang.String[] { "NewDisk", "ExistingDisk", "DeviceName", "Attached", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_Accelerator_descriptor, + new java.lang.String[] { "Type", "Count", "InstallGpuDrivers", "DriverVersion", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicy_descriptor, + new java.lang.String[] { "MachineType", "MinCpuPlatform", "ProvisioningModel", "Accelerators", "BootDisk", "Disks", "Reservation", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor, + new java.lang.String[] { "Policy", "InstanceTemplate", "InstallGpuDrivers", "PolicyTemplate", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor, + new java.lang.String[] { "Network", "Subnetwork", "NoExternalIpAddress", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor, + new java.lang.String[] { "NetworkInterfaces", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_PlacementPolicy_descriptor, + new java.lang.String[] { "Collocation", "MaxDistance", }); + internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(9); + internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_AllocationPolicy_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_batch_v1_TaskGroup_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_batch_v1_TaskGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_TaskGroup_descriptor, + new java.lang.String[] { "Name", "TaskSpec", "TaskCount", "Parallelism", "SchedulingPolicy", "TaskEnvironments", "TaskCountPerNode", "RequireHostsFile", "PermissiveSsh", "RunAsNonRoot", }); + internal_static_google_cloud_batch_v1_ServiceAccount_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_batch_v1_ServiceAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_batch_v1_ServiceAccount_descriptor, + new java.lang.String[] { "Email", "Scopes", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.batch.v1.TaskProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java similarity index 70% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java index 63ee7ce3c60a..886927cd9f99 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto @@ -20,24 +5,21 @@ package com.google.cloud.batch.v1; /** - * - * *
  * Job status.
  * 
* * Protobuf type {@code google.cloud.batch.v1.JobStatus} */ -public final class JobStatus extends com.google.protobuf.GeneratedMessageV3 - implements +public final class JobStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.JobStatus) JobStatusOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use JobStatus.newBuilder() to construct. private JobStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private JobStatus() { state_ = 0; statusEvents_ = java.util.Collections.emptyList(); @@ -45,13 +27,14 @@ private JobStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new JobStatus(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -62,33 +45,28 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 4: return internalGetTaskGroups(); 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.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.JobStatus.class, - com.google.cloud.batch.v1.JobStatus.Builder.class); + com.google.cloud.batch.v1.JobStatus.class, com.google.cloud.batch.v1.JobStatus.Builder.class); } /** - * - * *
    * Valid Job states.
    * 
* * Protobuf enum {@code google.cloud.batch.v1.JobStatus.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Job state unspecified.
      * 
@@ -97,8 +75,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Job is admitted (validated and persisted) and waiting for resources.
      * 
@@ -107,8 +83,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ QUEUED(1), /** - * - * *
      * Job is scheduled to run as soon as resource allocation is ready.
      * The resource allocation may happen at a later time but with a high
@@ -119,8 +93,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SCHEDULED(2),
     /**
-     *
-     *
      * 
      * Resource allocation has been successful. At least one Task in the Job is
      * RUNNING.
@@ -130,8 +102,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     RUNNING(3),
     /**
-     *
-     *
      * 
      * All Tasks in the Job have finished successfully.
      * 
@@ -140,8 +110,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(4), /** - * - * *
      * At least one Task in the Job has failed.
      * 
@@ -150,8 +118,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(5), /** - * - * *
      * The Job will be deleted, but has not been deleted yet. Typically this is
      * because resources used by the Job are still being cleaned up.
@@ -164,8 +130,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Job state unspecified.
      * 
@@ -174,8 +138,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Job is admitted (validated and persisted) and waiting for resources.
      * 
@@ -184,8 +146,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 1; /** - * - * *
      * Job is scheduled to run as soon as resource allocation is ready.
      * The resource allocation may happen at a later time but with a high
@@ -196,8 +156,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SCHEDULED_VALUE = 2;
     /**
-     *
-     *
      * 
      * Resource allocation has been successful. At least one Task in the Job is
      * RUNNING.
@@ -207,8 +165,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RUNNING_VALUE = 3;
     /**
-     *
-     *
      * 
      * All Tasks in the Job have finished successfully.
      * 
@@ -217,8 +173,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 4; /** - * - * *
      * At least one Task in the Job has failed.
      * 
@@ -227,8 +181,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 5; /** - * - * *
      * The Job will be deleted, but has not been deleted yet. Typically this is
      * because resources used by the Job are still being cleaned up.
@@ -238,6 +190,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DELETION_IN_PROGRESS_VALUE = 6;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -262,57 +215,53 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return QUEUED;
-        case 2:
-          return SCHEDULED;
-        case 3:
-          return RUNNING;
-        case 4:
-          return SUCCEEDED;
-        case 5:
-          return FAILED;
-        case 6:
-          return DELETION_IN_PROGRESS;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return QUEUED;
+        case 2: return SCHEDULED;
+        case 3: return RUNNING;
+        case 4: return SUCCEEDED;
+        case 5: return FAILED;
+        case 6: return DELETION_IN_PROGRESS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.batch.v1.JobStatus.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;
@@ -329,103 +278,78 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.batch.v1.JobStatus.State)
   }
 
-  public interface InstanceStatusOrBuilder
-      extends
+  public interface InstanceStatusOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.JobStatus.InstanceStatus)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The Compute Engine machine type.
      * 
* * string machine_type = 1; - * * @return The machineType. */ java.lang.String getMachineType(); /** - * - * *
      * The Compute Engine machine type.
      * 
* * string machine_type = 1; - * * @return The bytes for machineType. */ - com.google.protobuf.ByteString getMachineTypeBytes(); + com.google.protobuf.ByteString + getMachineTypeBytes(); /** - * - * *
      * The VM instance provisioning model.
      * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; * @return The enum numeric value on the wire for provisioningModel. */ int getProvisioningModelValue(); /** - * - * *
      * The VM instance provisioning model.
      * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; * @return The provisioningModel. */ com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvisioningModel(); /** - * - * *
      * The max number of tasks can be assigned to this instance type.
      * 
* * int64 task_pack = 3; - * * @return The taskPack. */ long getTaskPack(); /** - * - * *
      * The VM boot disk.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 4; - * * @return Whether the bootDisk field is set. */ boolean hasBootDisk(); /** - * - * *
      * The VM boot disk.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 4; - * * @return The bootDisk. */ com.google.cloud.batch.v1.AllocationPolicy.Disk getBootDisk(); /** - * - * *
      * The VM boot disk.
      * 
@@ -435,24 +359,21 @@ public interface InstanceStatusOrBuilder com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder(); } /** - * - * *
    * VM instance status.
    * 
* * Protobuf type {@code google.cloud.batch.v1.JobStatus.InstanceStatus} */ - public static final class InstanceStatus extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class InstanceStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.JobStatus.InstanceStatus) InstanceStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstanceStatus.newBuilder() to construct. private InstanceStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InstanceStatus() { machineType_ = ""; provisioningModel_ = 0; @@ -460,39 +381,34 @@ private InstanceStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstanceStatus(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.JobStatus.InstanceStatus.class, - com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder.class); + com.google.cloud.batch.v1.JobStatus.InstanceStatus.class, com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder.class); } private int bitField0_; public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object machineType_ = ""; /** - * - * *
      * The Compute Engine machine type.
      * 
* * string machine_type = 1; - * * @return The machineType. */ @java.lang.Override @@ -501,29 +417,29 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** - * - * *
      * The Compute Engine machine type.
      * 
* * string machine_type = 1; - * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -534,54 +450,37 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { public static final int PROVISIONING_MODEL_FIELD_NUMBER = 2; private int provisioningModel_ = 0; /** - * - * *
      * The VM instance provisioning model.
      * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; * @return The enum numeric value on the wire for provisioningModel. */ - @java.lang.Override - public int getProvisioningModelValue() { + @java.lang.Override public int getProvisioningModelValue() { return provisioningModel_; } /** - * - * *
      * The VM instance provisioning model.
      * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; * @return The provisioningModel. */ - @java.lang.Override - public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvisioningModel() { - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.forNumber( - provisioningModel_); - return result == null - ? com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvisioningModel() { + com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.forNumber(provisioningModel_); + return result == null ? com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.UNRECOGNIZED : result; } public static final int TASK_PACK_FIELD_NUMBER = 3; private long taskPack_ = 0L; /** - * - * *
      * The max number of tasks can be assigned to this instance type.
      * 
* * int64 task_pack = 3; - * * @return The taskPack. */ @java.lang.Override @@ -592,14 +491,11 @@ public long getTaskPack() { public static final int BOOT_DISK_FIELD_NUMBER = 4; private com.google.cloud.batch.v1.AllocationPolicy.Disk bootDisk_; /** - * - * *
      * The VM boot disk.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 4; - * * @return Whether the bootDisk field is set. */ @java.lang.Override @@ -607,25 +503,18 @@ public boolean hasBootDisk() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The VM boot disk.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 4; - * * @return The bootDisk. */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.Disk getBootDisk() { - return bootDisk_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() - : bootDisk_; + return bootDisk_ == null ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() : bootDisk_; } /** - * - * *
      * The VM boot disk.
      * 
@@ -634,13 +523,10 @@ public com.google.cloud.batch.v1.AllocationPolicy.Disk getBootDisk() { */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder() { - return bootDisk_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() - : bootDisk_; + return bootDisk_ == null ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() : bootDisk_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -652,14 +538,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); } - if (provisioningModel_ - != com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel - .PROVISIONING_MODEL_UNSPECIFIED - .getNumber()) { + if (provisioningModel_ != com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.PROVISIONING_MODEL_UNSPECIFIED.getNumber()) { output.writeEnum(2, provisioningModel_); } if (taskPack_ != 0L) { @@ -680,17 +564,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); } - if (provisioningModel_ - != com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel - .PROVISIONING_MODEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, provisioningModel_); + if (provisioningModel_ != com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.PROVISIONING_MODEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, provisioningModel_); } if (taskPack_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, taskPack_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, taskPack_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBootDisk()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getBootDisk()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -700,20 +584,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.batch.v1.JobStatus.InstanceStatus)) { return super.equals(obj); } - com.google.cloud.batch.v1.JobStatus.InstanceStatus other = - (com.google.cloud.batch.v1.JobStatus.InstanceStatus) obj; + com.google.cloud.batch.v1.JobStatus.InstanceStatus other = (com.google.cloud.batch.v1.JobStatus.InstanceStatus) obj; - if (!getMachineType().equals(other.getMachineType())) return false; + if (!getMachineType() + .equals(other.getMachineType())) return false; if (provisioningModel_ != other.provisioningModel_) return false; - if (getTaskPack() != other.getTaskPack()) return false; + if (getTaskPack() + != other.getTaskPack()) return false; if (hasBootDisk() != other.hasBootDisk()) return false; if (hasBootDisk()) { - if (!getBootDisk().equals(other.getBootDisk())) return false; + if (!getBootDisk() + .equals(other.getBootDisk())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -731,7 +617,8 @@ public int hashCode() { hash = (37 * hash) + PROVISIONING_MODEL_FIELD_NUMBER; hash = (53 * hash) + provisioningModel_; hash = (37 * hash) + TASK_PACK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTaskPack()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTaskPack()); if (hasBootDisk()) { hash = (37 * hash) + BOOT_DISK_FIELD_NUMBER; hash = (53 * hash) + getBootDisk().hashCode(); @@ -742,93 +629,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.JobStatus.InstanceStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.JobStatus.InstanceStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -838,32 +721,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * VM instance status.
      * 
* * Protobuf type {@code google.cloud.batch.v1.JobStatus.InstanceStatus} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.JobStatus.InstanceStatus) com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.JobStatus.InstanceStatus.class, - com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder.class); + com.google.cloud.batch.v1.JobStatus.InstanceStatus.class, com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder.class); } // Construct using com.google.cloud.batch.v1.JobStatus.InstanceStatus.newBuilder() @@ -871,17 +749,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBootDiskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -898,9 +776,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_InstanceStatus_descriptor; } @java.lang.Override @@ -919,11 +797,8 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatus build() { @java.lang.Override public com.google.cloud.batch.v1.JobStatus.InstanceStatus buildPartial() { - com.google.cloud.batch.v1.JobStatus.InstanceStatus result = - new com.google.cloud.batch.v1.JobStatus.InstanceStatus(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.JobStatus.InstanceStatus result = new com.google.cloud.batch.v1.JobStatus.InstanceStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -941,7 +816,9 @@ private void buildPartial0(com.google.cloud.batch.v1.JobStatus.InstanceStatus re } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.bootDisk_ = bootDiskBuilder_ == null ? bootDisk_ : bootDiskBuilder_.build(); + result.bootDisk_ = bootDiskBuilder_ == null + ? bootDisk_ + : bootDiskBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -951,41 +828,38 @@ private void buildPartial0(com.google.cloud.batch.v1.JobStatus.InstanceStatus re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.JobStatus.InstanceStatus) { - return mergeFrom((com.google.cloud.batch.v1.JobStatus.InstanceStatus) other); + return mergeFrom((com.google.cloud.batch.v1.JobStatus.InstanceStatus)other); } else { super.mergeFrom(other); return this; @@ -993,8 +867,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.batch.v1.JobStatus.InstanceStatus other) { - if (other == com.google.cloud.batch.v1.JobStatus.InstanceStatus.getDefaultInstance()) - return this; + if (other == com.google.cloud.batch.v1.JobStatus.InstanceStatus.getDefaultInstance()) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; bitField0_ |= 0x00000001; @@ -1035,37 +908,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - provisioningModel_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - taskPack_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getBootDiskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + provisioningModel_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + taskPack_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getBootDiskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + 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) { @@ -1075,25 +945,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object machineType_ = ""; /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 1; - * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -1102,21 +969,20 @@ public java.lang.String getMachineType() { } } /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 1; - * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -1124,35 +990,28 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } } /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 1; - * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMachineType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } machineType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 1; - * * @return This builder for chaining. */ public Builder clearMachineType() { @@ -1162,21 +1021,17 @@ public Builder clearMachineType() { return this; } /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 1; - * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00000001; @@ -1186,31 +1041,22 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { private int provisioningModel_ = 0; /** - * - * *
        * The VM instance provisioning model.
        * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; * @return The enum numeric value on the wire for provisioningModel. */ - @java.lang.Override - public int getProvisioningModelValue() { + @java.lang.Override public int getProvisioningModelValue() { return provisioningModel_; } /** - * - * *
        * The VM instance provisioning model.
        * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; * @param value The enum numeric value on the wire for provisioningModel to set. * @return This builder for chaining. */ @@ -1221,41 +1067,28 @@ public Builder setProvisioningModelValue(int value) { return this; } /** - * - * *
        * The VM instance provisioning model.
        * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; * @return The provisioningModel. */ @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvisioningModel() { - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.forNumber( - provisioningModel_); - return result == null - ? com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.UNRECOGNIZED - : result; + com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.forNumber(provisioningModel_); + return result == null ? com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.UNRECOGNIZED : result; } /** - * - * *
        * The VM instance provisioning model.
        * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; * @param value The provisioningModel to set. * @return This builder for chaining. */ - public Builder setProvisioningModel( - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel value) { + public Builder setProvisioningModel(com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel value) { if (value == null) { throw new NullPointerException(); } @@ -1265,15 +1098,11 @@ public Builder setProvisioningModel( return this; } /** - * - * *
        * The VM instance provisioning model.
        * 
* - * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; - * - * + * .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2; * @return This builder for chaining. */ public Builder clearProvisioningModel() { @@ -1283,16 +1112,13 @@ public Builder clearProvisioningModel() { return this; } - private long taskPack_; + private long taskPack_ ; /** - * - * *
        * The max number of tasks can be assigned to this instance type.
        * 
* * int64 task_pack = 3; - * * @return The taskPack. */ @java.lang.Override @@ -1300,14 +1126,11 @@ public long getTaskPack() { return taskPack_; } /** - * - * *
        * The max number of tasks can be assigned to this instance type.
        * 
* * int64 task_pack = 3; - * * @param value The taskPack to set. * @return This builder for chaining. */ @@ -1319,14 +1142,11 @@ public Builder setTaskPack(long value) { return this; } /** - * - * *
        * The max number of tasks can be assigned to this instance type.
        * 
* * int64 task_pack = 3; - * * @return This builder for chaining. */ public Builder clearTaskPack() { @@ -1338,47 +1158,34 @@ public Builder clearTaskPack() { private com.google.cloud.batch.v1.AllocationPolicy.Disk bootDisk_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.Disk, - com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, - com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder> - bootDiskBuilder_; + com.google.cloud.batch.v1.AllocationPolicy.Disk, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder> bootDiskBuilder_; /** - * - * *
        * The VM boot disk.
        * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 4; - * * @return Whether the bootDisk field is set. */ public boolean hasBootDisk() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * The VM boot disk.
        * 
* * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 4; - * * @return The bootDisk. */ public com.google.cloud.batch.v1.AllocationPolicy.Disk getBootDisk() { if (bootDiskBuilder_ == null) { - return bootDisk_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() - : bootDisk_; + return bootDisk_ == null ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() : bootDisk_; } else { return bootDiskBuilder_.getMessage(); } } /** - * - * *
        * The VM boot disk.
        * 
@@ -1399,8 +1206,6 @@ public Builder setBootDisk(com.google.cloud.batch.v1.AllocationPolicy.Disk value return this; } /** - * - * *
        * The VM boot disk.
        * 
@@ -1419,8 +1224,6 @@ public Builder setBootDisk( return this; } /** - * - * *
        * The VM boot disk.
        * 
@@ -1429,10 +1232,9 @@ public Builder setBootDisk( */ public Builder mergeBootDisk(com.google.cloud.batch.v1.AllocationPolicy.Disk value) { if (bootDiskBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && bootDisk_ != null - && bootDisk_ - != com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + bootDisk_ != null && + bootDisk_ != com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance()) { getBootDiskBuilder().mergeFrom(value); } else { bootDisk_ = value; @@ -1447,8 +1249,6 @@ public Builder mergeBootDisk(com.google.cloud.batch.v1.AllocationPolicy.Disk val return this; } /** - * - * *
        * The VM boot disk.
        * 
@@ -1466,8 +1266,6 @@ public Builder clearBootDisk() { return this; } /** - * - * *
        * The VM boot disk.
        * 
@@ -1480,8 +1278,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder getBootDiskBuilde return getBootDiskFieldBuilder().getBuilder(); } /** - * - * *
        * The VM boot disk.
        * 
@@ -1492,14 +1288,11 @@ public com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getBootDiskOrBui if (bootDiskBuilder_ != null) { return bootDiskBuilder_.getMessageOrBuilder(); } else { - return bootDisk_ == null - ? com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() - : bootDisk_; + return bootDisk_ == null ? + com.google.cloud.batch.v1.AllocationPolicy.Disk.getDefaultInstance() : bootDisk_; } } /** - * - * *
        * The VM boot disk.
        * 
@@ -1507,22 +1300,18 @@ public com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder getBootDiskOrBui * .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.Disk, - com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, - com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder> + com.google.cloud.batch.v1.AllocationPolicy.Disk, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder> getBootDiskFieldBuilder() { if (bootDiskBuilder_ == null) { - bootDiskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.AllocationPolicy.Disk, - com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, - com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder>( - getBootDisk(), getParentForChildren(), isClean()); + bootDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.AllocationPolicy.Disk, com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder, com.google.cloud.batch.v1.AllocationPolicy.DiskOrBuilder>( + getBootDisk(), + getParentForChildren(), + isClean()); bootDisk_ = null; } return bootDiskBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1535,12 +1324,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.JobStatus.InstanceStatus) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.JobStatus.InstanceStatus) private static final com.google.cloud.batch.v1.JobStatus.InstanceStatus DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.JobStatus.InstanceStatus(); } @@ -1549,28 +1338,27 @@ public static com.google.cloud.batch.v1.JobStatus.InstanceStatus getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceStatus 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 InstanceStatus 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; @@ -1585,16 +1373,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.JobStatus.InstanceStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TaskGroupStatusOrBuilder - extends + public interface TaskGroupStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.JobStatus.TaskGroupStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1604,8 +1390,6 @@ public interface TaskGroupStatusOrBuilder
      */
     int getCountsCount();
     /**
-     *
-     *
      * 
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1613,13 +1397,15 @@ public interface TaskGroupStatusOrBuilder
      *
      * map<string, int64> counts = 1;
      */
-    boolean containsCounts(java.lang.String key);
-    /** Use {@link #getCountsMap()} instead. */
+    boolean containsCounts(
+        java.lang.String key);
+    /**
+     * Use {@link #getCountsMap()} instead.
+     */
     @java.lang.Deprecated
-    java.util.Map getCounts();
+    java.util.Map
+    getCounts();
     /**
-     *
-     *
      * 
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1627,10 +1413,9 @@ public interface TaskGroupStatusOrBuilder
      *
      * map<string, int64> counts = 1;
      */
-    java.util.Map getCountsMap();
+    java.util.Map
+    getCountsMap();
     /**
-     *
-     *
      * 
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1638,10 +1423,10 @@ public interface TaskGroupStatusOrBuilder
      *
      * map<string, int64> counts = 1;
      */
-    long getCountsOrDefault(java.lang.String key, long defaultValue);
+    long getCountsOrDefault(
+        java.lang.String key,
+        long defaultValue);
     /**
-     *
-     *
      * 
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1649,21 +1434,19 @@ public interface TaskGroupStatusOrBuilder
      *
      * map<string, int64> counts = 1;
      */
-    long getCountsOrThrow(java.lang.String key);
+    long getCountsOrThrow(
+        java.lang.String key);
 
     /**
-     *
-     *
      * 
      * Status of instances allocated for the TaskGroup.
      * 
* * repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2; */ - java.util.List getInstancesList(); + java.util.List + getInstancesList(); /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1672,8 +1455,6 @@ public interface TaskGroupStatusOrBuilder */ com.google.cloud.batch.v1.JobStatus.InstanceStatus getInstances(int index); /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1682,59 +1463,54 @@ public interface TaskGroupStatusOrBuilder */ int getInstancesCount(); /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
* * repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
* * repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2; */ - com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder getInstancesOrBuilder(int index); + com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder getInstancesOrBuilder( + int index); } /** - * - * *
    * Aggregated task status for a TaskGroup.
    * 
* * Protobuf type {@code google.cloud.batch.v1.JobStatus.TaskGroupStatus} */ - public static final class TaskGroupStatus extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TaskGroupStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.JobStatus.TaskGroupStatus) TaskGroupStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TaskGroupStatus.newBuilder() to construct. private TaskGroupStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TaskGroupStatus() { instances_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TaskGroupStatus(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -1745,49 +1521,45 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 1: return internalGetCounts(); 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.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.class, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder.class); + com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.class, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder.class); } public static final int COUNTS_FIELD_NUMBER = 1; - private static final class CountsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_CountsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField counts_; - - private com.google.protobuf.MapField internalGetCounts() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> counts_; + private com.google.protobuf.MapField + internalGetCounts() { if (counts_ == null) { - return com.google.protobuf.MapField.emptyMapField(CountsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + CountsDefaultEntryHolder.defaultEntry); } return counts_; } - public int getCountsCount() { return internalGetCounts().getMap().size(); } /** - * - * *
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1796,21 +1568,20 @@ public int getCountsCount() {
      * map<string, int64> counts = 1;
      */
     @java.lang.Override
-    public boolean containsCounts(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsCounts(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetCounts().getMap().containsKey(key);
     }
-    /** Use {@link #getCountsMap()} instead. */
+    /**
+     * Use {@link #getCountsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getCounts() {
       return getCountsMap();
     }
     /**
-     *
-     *
      * 
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1823,8 +1594,6 @@ public java.util.Map getCountsMap() {
       return internalGetCounts().getMap();
     }
     /**
-     *
-     *
      * 
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1833,16 +1602,15 @@ public java.util.Map getCountsMap() {
      * map<string, int64> counts = 1;
      */
     @java.lang.Override
-    public long getCountsOrDefault(java.lang.String key, long defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetCounts().getMap();
+    public long getCountsOrDefault(
+        java.lang.String key,
+        long defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetCounts().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1851,11 +1619,11 @@ public long getCountsOrDefault(java.lang.String key, long defaultValue) {
      * map<string, int64> counts = 1;
      */
     @java.lang.Override
-    public long getCountsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetCounts().getMap();
+    public long getCountsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetCounts().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1863,12 +1631,9 @@ public long getCountsOrThrow(java.lang.String key) {
     }
 
     public static final int INSTANCES_FIELD_NUMBER = 2;
-
     @SuppressWarnings("serial")
     private java.util.List instances_;
     /**
-     *
-     *
      * 
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1880,8 +1645,6 @@ public java.util.List getIns return instances_; } /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1889,13 +1652,11 @@ public java.util.List getIns * repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2; */ @java.lang.Override - public java.util.List + public java.util.List getInstancesOrBuilderList() { return instances_; } /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1907,8 +1668,6 @@ public int getInstancesCount() { return instances_.size(); } /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1920,8 +1679,6 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatus getInstances(int index return instances_.get(index); } /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1935,7 +1692,6 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder getInstancesO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1947,9 +1703,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, internalGetCounts(), CountsDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCounts(), + CountsDefaultEntryHolder.defaultEntry, + 1); for (int i = 0; i < instances_.size(); i++) { output.writeMessage(2, instances_.get(i)); } @@ -1962,18 +1723,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetCounts().getMap().entrySet()) { - com.google.protobuf.MapEntry counts__ = - CountsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, counts__); + for (java.util.Map.Entry entry + : internalGetCounts().getMap().entrySet()) { + com.google.protobuf.MapEntry + counts__ = CountsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, counts__); } for (int i = 0; i < instances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, instances_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1983,16 +1745,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.batch.v1.JobStatus.TaskGroupStatus)) { return super.equals(obj); } - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus other = - (com.google.cloud.batch.v1.JobStatus.TaskGroupStatus) obj; + com.google.cloud.batch.v1.JobStatus.TaskGroupStatus other = (com.google.cloud.batch.v1.JobStatus.TaskGroupStatus) obj; - if (!internalGetCounts().equals(other.internalGetCounts())) return false; - if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!internalGetCounts().equals( + other.internalGetCounts())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2018,94 +1781,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.JobStatus.TaskGroupStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2115,22 +1873,19 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Aggregated task status for a TaskGroup.
      * 
* * Protobuf type {@code google.cloud.batch.v1.JobStatus.TaskGroupStatus} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.JobStatus.TaskGroupStatus) com.google.cloud.batch.v1.JobStatus.TaskGroupStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -2140,10 +1895,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 1: return internalGetCounts(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -2151,27 +1906,28 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 1: return internalGetMutableCounts(); 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.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.class, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder.class); + com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.class, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder.class); } // Construct using com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.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(); @@ -2188,9 +1944,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_TaskGroupStatus_descriptor; } @java.lang.Override @@ -2209,18 +1965,14 @@ public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus build() { @java.lang.Override public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus buildPartial() { - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus result = - new com.google.cloud.batch.v1.JobStatus.TaskGroupStatus(this); + com.google.cloud.batch.v1.JobStatus.TaskGroupStatus result = new com.google.cloud.batch.v1.JobStatus.TaskGroupStatus(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus result) { + private void buildPartialRepeatedFields(com.google.cloud.batch.v1.JobStatus.TaskGroupStatus result) { if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -2244,41 +1996,38 @@ private void buildPartial0(com.google.cloud.batch.v1.JobStatus.TaskGroupStatus r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.JobStatus.TaskGroupStatus) { - return mergeFrom((com.google.cloud.batch.v1.JobStatus.TaskGroupStatus) other); + return mergeFrom((com.google.cloud.batch.v1.JobStatus.TaskGroupStatus)other); } else { super.mergeFrom(other); return this; @@ -2286,9 +2035,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.batch.v1.JobStatus.TaskGroupStatus other) { - if (other == com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.getDefaultInstance()) - return this; - internalGetMutableCounts().mergeFrom(other.internalGetCounts()); + if (other == com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.getDefaultInstance()) return this; + internalGetMutableCounts().mergeFrom( + other.internalGetCounts()); bitField0_ |= 0x00000001; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { @@ -2308,10 +2057,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.JobStatus.TaskGroupStatus oth instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000002); - instancesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstancesFieldBuilder() - : null; + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } @@ -2343,39 +2091,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.MapEntry counts__ = - input.readMessage( - CountsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableCounts() - .getMutableMap() - .put(counts__.getKey(), counts__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.batch.v1.JobStatus.InstanceStatus m = - input.readMessage( - com.google.cloud.batch.v1.JobStatus.InstanceStatus.parser(), - extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.MapEntry + counts__ = input.readMessage( + CountsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCounts().getMutableMap().put( + counts__.getKey(), counts__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.batch.v1.JobStatus.InstanceStatus m = + input.readMessage( + com.google.cloud.batch.v1.JobStatus.InstanceStatus.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + 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) { @@ -2385,22 +2128,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.MapField counts_; - - private com.google.protobuf.MapField internalGetCounts() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> counts_; + private com.google.protobuf.MapField + internalGetCounts() { if (counts_ == null) { - return com.google.protobuf.MapField.emptyMapField(CountsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + CountsDefaultEntryHolder.defaultEntry); } return counts_; } - private com.google.protobuf.MapField internalGetMutableCounts() { if (counts_ == null) { - counts_ = com.google.protobuf.MapField.newMapField(CountsDefaultEntryHolder.defaultEntry); + counts_ = com.google.protobuf.MapField.newMapField( + CountsDefaultEntryHolder.defaultEntry); } if (!counts_.isMutable()) { counts_ = counts_.copy(); @@ -2409,13 +2153,10 @@ private com.google.protobuf.MapField internalG onChanged(); return counts_; } - public int getCountsCount() { return internalGetCounts().getMap().size(); } /** - * - * *
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2424,21 +2165,20 @@ public int getCountsCount() {
        * map<string, int64> counts = 1;
        */
       @java.lang.Override
-      public boolean containsCounts(java.lang.String key) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
+      public boolean containsCounts(
+          java.lang.String key) {
+        if (key == null) { throw new NullPointerException("map key"); }
         return internalGetCounts().getMap().containsKey(key);
       }
-      /** Use {@link #getCountsMap()} instead. */
+      /**
+       * Use {@link #getCountsMap()} instead.
+       */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getCounts() {
         return getCountsMap();
       }
       /**
-       *
-       *
        * 
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2451,8 +2191,6 @@ public java.util.Map getCountsMap() {
         return internalGetCounts().getMap();
       }
       /**
-       *
-       *
        * 
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2461,16 +2199,15 @@ public java.util.Map getCountsMap() {
        * map<string, int64> counts = 1;
        */
       @java.lang.Override
-      public long getCountsOrDefault(java.lang.String key, long defaultValue) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
-        java.util.Map map = internalGetCounts().getMap();
+      public long getCountsOrDefault(
+          java.lang.String key,
+          long defaultValue) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        java.util.Map map =
+            internalGetCounts().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
-       *
-       *
        * 
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2479,25 +2216,23 @@ public long getCountsOrDefault(java.lang.String key, long defaultValue) {
        * map<string, int64> counts = 1;
        */
       @java.lang.Override
-      public long getCountsOrThrow(java.lang.String key) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
-        java.util.Map map = internalGetCounts().getMap();
+      public long getCountsOrThrow(
+          java.lang.String key) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        java.util.Map map =
+            internalGetCounts().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
         return map.get(key);
       }
-
       public Builder clearCounts() {
         bitField0_ = (bitField0_ & ~0x00000001);
-        internalGetMutableCounts().getMutableMap().clear();
+        internalGetMutableCounts().getMutableMap()
+            .clear();
         return this;
       }
       /**
-       *
-       *
        * 
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2505,22 +2240,23 @@ public Builder clearCounts() {
        *
        * map<string, int64> counts = 1;
        */
-      public Builder removeCounts(java.lang.String key) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
-        internalGetMutableCounts().getMutableMap().remove(key);
+      public Builder removeCounts(
+          java.lang.String key) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        internalGetMutableCounts().getMutableMap()
+            .remove(key);
         return this;
       }
-      /** Use alternate mutation accessors instead. */
+      /**
+       * Use alternate mutation accessors instead.
+       */
       @java.lang.Deprecated
-      public java.util.Map getMutableCounts() {
+      public java.util.Map
+          getMutableCounts() {
         bitField0_ |= 0x00000001;
         return internalGetMutableCounts().getMutableMap();
       }
       /**
-       *
-       *
        * 
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2528,18 +2264,17 @@ public java.util.Map getMutableCounts() {
        *
        * map<string, int64> counts = 1;
        */
-      public Builder putCounts(java.lang.String key, long value) {
-        if (key == null) {
-          throw new NullPointerException("map key");
-        }
+      public Builder putCounts(
+          java.lang.String key,
+          long value) {
+        if (key == null) { throw new NullPointerException("map key"); }
 
-        internalGetMutableCounts().getMutableMap().put(key, value);
+        internalGetMutableCounts().getMutableMap()
+            .put(key, value);
         bitField0_ |= 0x00000001;
         return this;
       }
       /**
-       *
-       *
        * 
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2547,33 +2282,27 @@ public Builder putCounts(java.lang.String key, long value) {
        *
        * map<string, int64> counts = 1;
        */
-      public Builder putAllCounts(java.util.Map values) {
-        internalGetMutableCounts().getMutableMap().putAll(values);
+      public Builder putAllCounts(
+          java.util.Map values) {
+        internalGetMutableCounts().getMutableMap()
+            .putAll(values);
         bitField0_ |= 0x00000001;
         return this;
       }
 
       private java.util.List instances_ =
-          java.util.Collections.emptyList();
-
+        java.util.Collections.emptyList();
       private void ensureInstancesIsMutable() {
         if (!((bitField0_ & 0x00000002) != 0)) {
-          instances_ =
-              new java.util.ArrayList(
-                  instances_);
+          instances_ = new java.util.ArrayList(instances_);
           bitField0_ |= 0x00000002;
-        }
+         }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.batch.v1.JobStatus.InstanceStatus,
-              com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder,
-              com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder>
-          instancesBuilder_;
+          com.google.cloud.batch.v1.JobStatus.InstanceStatus, com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder, com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder> instancesBuilder_;
 
       /**
-       *
-       *
        * 
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2588,8 +2317,6 @@ public java.util.List getIns } } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2604,8 +2331,6 @@ public int getInstancesCount() { } } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2620,8 +2345,6 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatus getInstances(int index } } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2643,8 +2366,6 @@ public Builder setInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2663,8 +2384,6 @@ public Builder setInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2685,8 +2404,6 @@ public Builder addInstances(com.google.cloud.batch.v1.JobStatus.InstanceStatus v return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2708,8 +2425,6 @@ public Builder addInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2728,8 +2443,6 @@ public Builder addInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2748,8 +2461,6 @@ public Builder addInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2760,7 +2471,8 @@ public Builder addAllInstances( java.lang.Iterable values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); @@ -2768,8 +2480,6 @@ public Builder addAllInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2787,8 +2497,6 @@ public Builder clearInstances() { return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2806,8 +2514,6 @@ public Builder removeInstances(int index) { return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2819,8 +2525,6 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder getInstancesBu return getInstancesFieldBuilder().getBuilder(index); } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2830,22 +2534,19 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder getInstancesBu public com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder getInstancesOrBuilder( int index) { if (instancesBuilder_ == null) { - return instances_.get(index); - } else { + return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
* * repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2; */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -2853,8 +2554,6 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder getInstancesO } } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2862,12 +2561,10 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder getInstancesO * repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2; */ public com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder addInstancesBuilder() { - return getInstancesFieldBuilder() - .addBuilder(com.google.cloud.batch.v1.JobStatus.InstanceStatus.getDefaultInstance()); + return getInstancesFieldBuilder().addBuilder( + com.google.cloud.batch.v1.JobStatus.InstanceStatus.getDefaultInstance()); } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2876,41 +2573,34 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder addInstancesBu */ public com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder addInstancesBuilder( int index) { - return getInstancesFieldBuilder() - .addBuilder( - index, com.google.cloud.batch.v1.JobStatus.InstanceStatus.getDefaultInstance()); + return getInstancesFieldBuilder().addBuilder( + index, com.google.cloud.batch.v1.JobStatus.InstanceStatus.getDefaultInstance()); } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
* * repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.JobStatus.InstanceStatus, - com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder, - com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder> + com.google.cloud.batch.v1.JobStatus.InstanceStatus, com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder, com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.JobStatus.InstanceStatus, - com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder, - com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder>( - instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.batch.v1.JobStatus.InstanceStatus, com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder, com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder>( + instances_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); instances_ = null; } return instancesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2923,12 +2613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.JobStatus.TaskGroupStatus) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.JobStatus.TaskGroupStatus) private static final com.google.cloud.batch.v1.JobStatus.TaskGroupStatus DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.JobStatus.TaskGroupStatus(); } @@ -2937,28 +2627,27 @@ public static com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskGroupStatus 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 TaskGroupStatus 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; @@ -2973,51 +2662,40 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; /** - * - * *
    * Job state
    * 
* * .google.cloud.batch.v1.JobStatus.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Job state
    * 
* * .google.cloud.batch.v1.JobStatus.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.batch.v1.JobStatus.State getState() { - com.google.cloud.batch.v1.JobStatus.State result = - com.google.cloud.batch.v1.JobStatus.State.forNumber(state_); + @java.lang.Override public com.google.cloud.batch.v1.JobStatus.State getState() { + com.google.cloud.batch.v1.JobStatus.State result = com.google.cloud.batch.v1.JobStatus.State.forNumber(state_); return result == null ? com.google.cloud.batch.v1.JobStatus.State.UNRECOGNIZED : result; } public static final int STATUS_EVENTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List statusEvents_; /** - * - * *
    * Job status events
    * 
@@ -3029,8 +2707,6 @@ public java.util.List getStatusEventsList return statusEvents_; } /** - * - * *
    * Job status events
    * 
@@ -3038,13 +2714,11 @@ public java.util.List getStatusEventsList * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ @java.lang.Override - public java.util.List + public java.util.List getStatusEventsOrBuilderList() { return statusEvents_; } /** - * - * *
    * Job status events
    * 
@@ -3056,8 +2730,6 @@ public int getStatusEventsCount() { return statusEvents_.size(); } /** - * - * *
    * Job status events
    * 
@@ -3069,8 +2741,6 @@ public com.google.cloud.batch.v1.StatusEvent getStatusEvents(int index) { return statusEvents_.get(index); } /** - * - * *
    * Job status events
    * 
@@ -3078,125 +2748,102 @@ public com.google.cloud.batch.v1.StatusEvent getStatusEvents(int index) { * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ @java.lang.Override - public com.google.cloud.batch.v1.StatusEventOrBuilder getStatusEventsOrBuilder(int index) { + public com.google.cloud.batch.v1.StatusEventOrBuilder getStatusEventsOrBuilder( + int index) { return statusEvents_.get(index); } public static final int TASK_GROUPS_FIELD_NUMBER = 4; - private static final class TaskGroupsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> - defaultEntry = + java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_TaskGroupsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> - taskGroups_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> - internalGetTaskGroups() { + java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> taskGroups_; + private com.google.protobuf.MapField + internalGetTaskGroups() { if (taskGroups_ == null) { - return com.google.protobuf.MapField.emptyMapField(TaskGroupsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + TaskGroupsDefaultEntryHolder.defaultEntry); } return taskGroups_; } - public int getTaskGroupsCount() { return internalGetTaskGroups().getMap().size(); } /** - * - * *
    * Aggregated task status for each TaskGroup in the Job.
    * The map key is TaskGroup ID.
    * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ @java.lang.Override - public boolean containsTaskGroups(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsTaskGroups( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetTaskGroups().getMap().containsKey(key); } - /** Use {@link #getTaskGroupsMap()} instead. */ + /** + * Use {@link #getTaskGroupsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getTaskGroups() { + public java.util.Map getTaskGroups() { return getTaskGroupsMap(); } /** - * - * *
    * Aggregated task status for each TaskGroup in the Job.
    * The map key is TaskGroup ID.
    * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ @java.lang.Override - public java.util.Map - getTaskGroupsMap() { + public java.util.Map getTaskGroupsMap() { return internalGetTaskGroups().getMap(); } /** - * - * *
    * Aggregated task status for each TaskGroup in the Job.
    * The map key is TaskGroup ID.
    * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ @java.lang.Override - public /* nullable */ com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrDefault( + public /* nullable */ +com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.batch.v1.JobStatus.TaskGroupStatus defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTaskGroups().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Aggregated task status for each TaskGroup in the Job.
    * The map key is TaskGroup ID.
    * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ @java.lang.Override public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTaskGroups().getMap(); if (!map.containsKey(key)) { @@ -3208,14 +2855,11 @@ public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrThrow( public static final int RUN_DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration runDuration_; /** - * - * *
    * The duration of time that the Job spent in status RUNNING.
    * 
* * .google.protobuf.Duration run_duration = 5; - * * @return Whether the runDuration field is set. */ @java.lang.Override @@ -3223,14 +2867,11 @@ public boolean hasRunDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The duration of time that the Job spent in status RUNNING.
    * 
* * .google.protobuf.Duration run_duration = 5; - * * @return The runDuration. */ @java.lang.Override @@ -3238,8 +2879,6 @@ public com.google.protobuf.Duration getRunDuration() { return runDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runDuration_; } /** - * - * *
    * The duration of time that the Job spent in status RUNNING.
    * 
@@ -3252,7 +2891,6 @@ public com.google.protobuf.DurationOrBuilder getRunDurationOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3264,15 +2902,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (state_ != com.google.cloud.batch.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } for (int i = 0; i < statusEvents_.size(); i++) { output.writeMessage(2, statusEvents_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetTaskGroups(), TaskGroupsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetTaskGroups(), + TaskGroupsDefaultEntryHolder.defaultEntry, + 4); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getRunDuration()); } @@ -3286,25 +2929,26 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.batch.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } for (int i = 0; i < statusEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, statusEvents_.get(i)); - } - for (java.util.Map.Entry - entry : internalGetTaskGroups().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> - taskGroups__ = - TaskGroupsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, taskGroups__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, statusEvents_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetTaskGroups().getMap().entrySet()) { + com.google.protobuf.MapEntry + taskGroups__ = TaskGroupsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, taskGroups__); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRunDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRunDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3314,7 +2958,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.batch.v1.JobStatus)) { return super.equals(obj); @@ -3322,11 +2966,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.batch.v1.JobStatus other = (com.google.cloud.batch.v1.JobStatus) obj; if (state_ != other.state_) return false; - if (!getStatusEventsList().equals(other.getStatusEventsList())) return false; - if (!internalGetTaskGroups().equals(other.internalGetTaskGroups())) return false; + if (!getStatusEventsList() + .equals(other.getStatusEventsList())) return false; + if (!internalGetTaskGroups().equals( + other.internalGetTaskGroups())) return false; if (hasRunDuration() != other.hasRunDuration()) return false; if (hasRunDuration()) { - if (!getRunDuration().equals(other.getRunDuration())) return false; + if (!getRunDuration() + .equals(other.getRunDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3358,116 +3005,112 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.JobStatus parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.JobStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.JobStatus parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.batch.v1.JobStatus parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.JobStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.JobStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.batch.v1.JobStatus 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.batch.v1.JobStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.JobStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.JobStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.JobStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 status.
    * 
* * Protobuf type {@code google.cloud.batch.v1.JobStatus} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.JobStatus) com.google.cloud.batch.v1.JobStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -3477,10 +3120,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 4: return internalGetTaskGroups(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -3488,18 +3131,16 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 4: return internalGetMutableTaskGroups(); 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.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_fieldAccessorTable + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.JobStatus.class, - com.google.cloud.batch.v1.JobStatus.Builder.class); + com.google.cloud.batch.v1.JobStatus.class, com.google.cloud.batch.v1.JobStatus.Builder.class); } // Construct using com.google.cloud.batch.v1.JobStatus.newBuilder() @@ -3507,18 +3148,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStatusEventsFieldBuilder(); getRunDurationFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3541,9 +3182,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.JobProto - .internal_static_google_cloud_batch_v1_JobStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_JobStatus_descriptor; } @java.lang.Override @@ -3564,9 +3205,7 @@ public com.google.cloud.batch.v1.JobStatus build() { public com.google.cloud.batch.v1.JobStatus buildPartial() { com.google.cloud.batch.v1.JobStatus result = new com.google.cloud.batch.v1.JobStatus(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -3589,13 +3228,13 @@ private void buildPartial0(com.google.cloud.batch.v1.JobStatus result) { result.state_ = state_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.taskGroups_ = - internalGetTaskGroups().build(TaskGroupsDefaultEntryHolder.defaultEntry); + result.taskGroups_ = internalGetTaskGroups().build(TaskGroupsDefaultEntryHolder.defaultEntry); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.runDuration_ = - runDurationBuilder_ == null ? runDuration_ : runDurationBuilder_.build(); + result.runDuration_ = runDurationBuilder_ == null + ? runDuration_ + : runDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -3605,39 +3244,38 @@ private void buildPartial0(com.google.cloud.batch.v1.JobStatus result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.JobStatus) { - return mergeFrom((com.google.cloud.batch.v1.JobStatus) other); + return mergeFrom((com.google.cloud.batch.v1.JobStatus)other); } else { super.mergeFrom(other); return this; @@ -3667,16 +3305,16 @@ public Builder mergeFrom(com.google.cloud.batch.v1.JobStatus other) { statusEventsBuilder_ = null; statusEvents_ = other.statusEvents_; bitField0_ = (bitField0_ & ~0x00000002); - statusEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStatusEventsFieldBuilder() - : null; + statusEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStatusEventsFieldBuilder() : null; } else { statusEventsBuilder_.addAllMessages(other.statusEvents_); } } } - internalGetMutableTaskGroups().mergeFrom(other.internalGetTaskGroups()); + internalGetMutableTaskGroups().mergeFrom( + other.internalGetTaskGroups()); bitField0_ |= 0x00000004; if (other.hasRunDuration()) { mergeRunDuration(other.getRunDuration()); @@ -3707,52 +3345,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.cloud.batch.v1.StatusEvent m = - input.readMessage( - com.google.cloud.batch.v1.StatusEvent.parser(), extensionRegistry); - if (statusEventsBuilder_ == null) { - ensureStatusEventsIsMutable(); - statusEvents_.add(m); - } else { - statusEventsBuilder_.addMessage(m); - } - break; - } // case 18 - case 34: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> - taskGroups__ = - input.readMessage( - TaskGroupsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableTaskGroups() - .ensureBuilderMap() - .put(taskGroups__.getKey(), taskGroups__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage(getRunDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + com.google.cloud.batch.v1.StatusEvent m = + input.readMessage( + com.google.cloud.batch.v1.StatusEvent.parser(), + extensionRegistry); + if (statusEventsBuilder_ == null) { + ensureStatusEventsIsMutable(); + statusEvents_.add(m); + } else { + statusEventsBuilder_.addMessage(m); + } + break; + } // case 18 + case 34: { + com.google.protobuf.MapEntry + taskGroups__ = input.readMessage( + TaskGroupsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTaskGroups().ensureBuilderMap().put( + taskGroups__.getKey(), taskGroups__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + input.readMessage( + getRunDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + 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) { @@ -3762,34 +3394,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * Job state
      * 
* * .google.cloud.batch.v1.JobStatus.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Job state
      * 
* * .google.cloud.batch.v1.JobStatus.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3800,31 +3424,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Job state
      * 
* * .google.cloud.batch.v1.JobStatus.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.batch.v1.JobStatus.State getState() { - com.google.cloud.batch.v1.JobStatus.State result = - com.google.cloud.batch.v1.JobStatus.State.forNumber(state_); + com.google.cloud.batch.v1.JobStatus.State result = com.google.cloud.batch.v1.JobStatus.State.forNumber(state_); return result == null ? com.google.cloud.batch.v1.JobStatus.State.UNRECOGNIZED : result; } /** - * - * *
      * Job state
      * 
* * .google.cloud.batch.v1.JobStatus.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -3838,14 +3455,11 @@ public Builder setState(com.google.cloud.batch.v1.JobStatus.State value) { return this; } /** - * - * *
      * Job state
      * 
* * .google.cloud.batch.v1.JobStatus.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { @@ -3856,25 +3470,18 @@ public Builder clearState() { } private java.util.List statusEvents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStatusEventsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - statusEvents_ = - new java.util.ArrayList(statusEvents_); + statusEvents_ = new java.util.ArrayList(statusEvents_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.StatusEvent, - com.google.cloud.batch.v1.StatusEvent.Builder, - com.google.cloud.batch.v1.StatusEventOrBuilder> - statusEventsBuilder_; + com.google.cloud.batch.v1.StatusEvent, com.google.cloud.batch.v1.StatusEvent.Builder, com.google.cloud.batch.v1.StatusEventOrBuilder> statusEventsBuilder_; /** - * - * *
      * Job status events
      * 
@@ -3889,8 +3496,6 @@ public java.util.List getStatusEventsList } } /** - * - * *
      * Job status events
      * 
@@ -3905,8 +3510,6 @@ public int getStatusEventsCount() { } } /** - * - * *
      * Job status events
      * 
@@ -3921,15 +3524,14 @@ public com.google.cloud.batch.v1.StatusEvent getStatusEvents(int index) { } } /** - * - * *
      * Job status events
      * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - public Builder setStatusEvents(int index, com.google.cloud.batch.v1.StatusEvent value) { + public Builder setStatusEvents( + int index, com.google.cloud.batch.v1.StatusEvent value) { if (statusEventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3943,8 +3545,6 @@ public Builder setStatusEvents(int index, com.google.cloud.batch.v1.StatusEvent return this; } /** - * - * *
      * Job status events
      * 
@@ -3963,8 +3563,6 @@ public Builder setStatusEvents( return this; } /** - * - * *
      * Job status events
      * 
@@ -3985,15 +3583,14 @@ public Builder addStatusEvents(com.google.cloud.batch.v1.StatusEvent value) { return this; } /** - * - * *
      * Job status events
      * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - public Builder addStatusEvents(int index, com.google.cloud.batch.v1.StatusEvent value) { + public Builder addStatusEvents( + int index, com.google.cloud.batch.v1.StatusEvent value) { if (statusEventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4007,15 +3604,14 @@ public Builder addStatusEvents(int index, com.google.cloud.batch.v1.StatusEvent return this; } /** - * - * *
      * Job status events
      * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - public Builder addStatusEvents(com.google.cloud.batch.v1.StatusEvent.Builder builderForValue) { + public Builder addStatusEvents( + com.google.cloud.batch.v1.StatusEvent.Builder builderForValue) { if (statusEventsBuilder_ == null) { ensureStatusEventsIsMutable(); statusEvents_.add(builderForValue.build()); @@ -4026,8 +3622,6 @@ public Builder addStatusEvents(com.google.cloud.batch.v1.StatusEvent.Builder bui return this; } /** - * - * *
      * Job status events
      * 
@@ -4046,8 +3640,6 @@ public Builder addStatusEvents( return this; } /** - * - * *
      * Job status events
      * 
@@ -4058,7 +3650,8 @@ public Builder addAllStatusEvents( java.lang.Iterable values) { if (statusEventsBuilder_ == null) { ensureStatusEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusEvents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, statusEvents_); onChanged(); } else { statusEventsBuilder_.addAllMessages(values); @@ -4066,8 +3659,6 @@ public Builder addAllStatusEvents( return this; } /** - * - * *
      * Job status events
      * 
@@ -4085,8 +3676,6 @@ public Builder clearStatusEvents() { return this; } /** - * - * *
      * Job status events
      * 
@@ -4104,44 +3693,39 @@ public Builder removeStatusEvents(int index) { return this; } /** - * - * *
      * Job status events
      * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - public com.google.cloud.batch.v1.StatusEvent.Builder getStatusEventsBuilder(int index) { + public com.google.cloud.batch.v1.StatusEvent.Builder getStatusEventsBuilder( + int index) { return getStatusEventsFieldBuilder().getBuilder(index); } /** - * - * *
      * Job status events
      * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - public com.google.cloud.batch.v1.StatusEventOrBuilder getStatusEventsOrBuilder(int index) { + public com.google.cloud.batch.v1.StatusEventOrBuilder getStatusEventsOrBuilder( + int index) { if (statusEventsBuilder_ == null) { - return statusEvents_.get(index); - } else { + return statusEvents_.get(index); } else { return statusEventsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Job status events
      * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - public java.util.List - getStatusEventsOrBuilderList() { + public java.util.List + getStatusEventsOrBuilderList() { if (statusEventsBuilder_ != null) { return statusEventsBuilder_.getMessageOrBuilderList(); } else { @@ -4149,8 +3733,6 @@ public com.google.cloud.batch.v1.StatusEventOrBuilder getStatusEventsOrBuilder(i } } /** - * - * *
      * Job status events
      * 
@@ -4158,101 +3740,71 @@ public com.google.cloud.batch.v1.StatusEventOrBuilder getStatusEventsOrBuilder(i * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ public com.google.cloud.batch.v1.StatusEvent.Builder addStatusEventsBuilder() { - return getStatusEventsFieldBuilder() - .addBuilder(com.google.cloud.batch.v1.StatusEvent.getDefaultInstance()); + return getStatusEventsFieldBuilder().addBuilder( + com.google.cloud.batch.v1.StatusEvent.getDefaultInstance()); } /** - * - * *
      * Job status events
      * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - public com.google.cloud.batch.v1.StatusEvent.Builder addStatusEventsBuilder(int index) { - return getStatusEventsFieldBuilder() - .addBuilder(index, com.google.cloud.batch.v1.StatusEvent.getDefaultInstance()); + public com.google.cloud.batch.v1.StatusEvent.Builder addStatusEventsBuilder( + int index) { + return getStatusEventsFieldBuilder().addBuilder( + index, com.google.cloud.batch.v1.StatusEvent.getDefaultInstance()); } /** - * - * *
      * Job status events
      * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - public java.util.List - getStatusEventsBuilderList() { + public java.util.List + getStatusEventsBuilderList() { return getStatusEventsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.StatusEvent, - com.google.cloud.batch.v1.StatusEvent.Builder, - com.google.cloud.batch.v1.StatusEventOrBuilder> + com.google.cloud.batch.v1.StatusEvent, com.google.cloud.batch.v1.StatusEvent.Builder, com.google.cloud.batch.v1.StatusEventOrBuilder> getStatusEventsFieldBuilder() { if (statusEventsBuilder_ == null) { - statusEventsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.StatusEvent, - com.google.cloud.batch.v1.StatusEvent.Builder, - com.google.cloud.batch.v1.StatusEventOrBuilder>( - statusEvents_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + statusEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.batch.v1.StatusEvent, com.google.cloud.batch.v1.StatusEvent.Builder, com.google.cloud.batch.v1.StatusEventOrBuilder>( + statusEvents_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); statusEvents_ = null; } return statusEventsBuilder_; } - private static final class TaskGroupsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatusOrBuilder, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> { + private static final class TaskGroupsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override - public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus build( - com.google.cloud.batch.v1.JobStatus.TaskGroupStatusOrBuilder val) { - if (val instanceof com.google.cloud.batch.v1.JobStatus.TaskGroupStatus) { - return (com.google.cloud.batch.v1.JobStatus.TaskGroupStatus) val; - } + public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus build(com.google.cloud.batch.v1.JobStatus.TaskGroupStatusOrBuilder val) { + if (val instanceof com.google.cloud.batch.v1.JobStatus.TaskGroupStatus) { return (com.google.cloud.batch.v1.JobStatus.TaskGroupStatus) val; } return ((com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder) val).build(); } @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> - defaultEntry() { + public com.google.protobuf.MapEntry defaultEntry() { return TaskGroupsDefaultEntryHolder.defaultEntry; } }; - private static final TaskGroupsConverter taskGroupsConverter = new TaskGroupsConverter(); private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatusOrBuilder, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder> - taskGroups_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatusOrBuilder, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder> + java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatusOrBuilder, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder> taskGroups_; + private com.google.protobuf.MapFieldBuilder internalGetTaskGroups() { if (taskGroups_ == null) { return new com.google.protobuf.MapFieldBuilder<>(taskGroupsConverter); } return taskGroups_; } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatusOrBuilder, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus, - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder> + private com.google.protobuf.MapFieldBuilder internalGetMutableTaskGroups() { if (taskGroups_ == null) { taskGroups_ = new com.google.protobuf.MapFieldBuilder<>(taskGroupsConverter); @@ -4261,124 +3813,102 @@ public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus build( onChanged(); return taskGroups_; } - public int getTaskGroupsCount() { return internalGetTaskGroups().ensureBuilderMap().size(); } /** - * - * *
      * Aggregated task status for each TaskGroup in the Job.
      * The map key is TaskGroup ID.
      * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ @java.lang.Override - public boolean containsTaskGroups(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsTaskGroups( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetTaskGroups().ensureBuilderMap().containsKey(key); } - /** Use {@link #getTaskGroupsMap()} instead. */ + /** + * Use {@link #getTaskGroupsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getTaskGroups() { + public java.util.Map getTaskGroups() { return getTaskGroupsMap(); } /** - * - * *
      * Aggregated task status for each TaskGroup in the Job.
      * The map key is TaskGroup ID.
      * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ @java.lang.Override - public java.util.Map - getTaskGroupsMap() { + public java.util.Map getTaskGroupsMap() { return internalGetTaskGroups().getImmutableMap(); } /** - * - * *
      * Aggregated task status for each TaskGroup in the Job.
      * The map key is TaskGroup ID.
      * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ @java.lang.Override - public /* nullable */ com.google.cloud.batch.v1.JobStatus.TaskGroupStatus - getTaskGroupsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableTaskGroups().ensureBuilderMap(); + public /* nullable */ +com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.batch.v1.JobStatus.TaskGroupStatus defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableTaskGroups().ensureBuilderMap(); return map.containsKey(key) ? taskGroupsConverter.build(map.get(key)) : defaultValue; } /** - * - * *
      * Aggregated task status for each TaskGroup in the Job.
      * The map key is TaskGroup ID.
      * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ @java.lang.Override public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableTaskGroups().ensureBuilderMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableTaskGroups().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return taskGroupsConverter.build(map.get(key)); } - public Builder clearTaskGroups() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableTaskGroups().clear(); return this; } /** - * - * *
      * Aggregated task status for each TaskGroup in the Job.
      * The map key is TaskGroup ID.
      * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ - public Builder removeTaskGroups(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableTaskGroups().ensureBuilderMap().remove(key); + public Builder removeTaskGroups( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTaskGroups().ensureBuilderMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableTaskGroups() { @@ -4386,68 +3916,54 @@ public Builder removeTaskGroups(java.lang.String key) { return internalGetMutableTaskGroups().ensureMessageMap(); } /** - * - * *
      * Aggregated task status for each TaskGroup in the Job.
      * The map key is TaskGroup ID.
      * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ public Builder putTaskGroups( - java.lang.String key, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableTaskGroups().ensureBuilderMap().put(key, value); + java.lang.String key, + com.google.cloud.batch.v1.JobStatus.TaskGroupStatus value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableTaskGroups().ensureBuilderMap() + .put(key, value); bitField0_ |= 0x00000004; return this; } /** - * - * *
      * Aggregated task status for each TaskGroup in the Job.
      * The map key is TaskGroup ID.
      * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ public Builder putAllTaskGroups( - java.util.Map - values) { - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> - e : values.entrySet()) { + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } - internalGetMutableTaskGroups().ensureBuilderMap().putAll(values); + internalGetMutableTaskGroups().ensureBuilderMap() + .putAll(values); bitField0_ |= 0x00000004; return this; } /** - * - * *
      * Aggregated task status for each TaskGroup in the Job.
      * The map key is TaskGroup ID.
      * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder putTaskGroupsBuilderIfAbsent( java.lang.String key) { - java.util.Map - builderMap = internalGetMutableTaskGroups().ensureBuilderMap(); + java.util.Map builderMap = internalGetMutableTaskGroups().ensureBuilderMap(); com.google.cloud.batch.v1.JobStatus.TaskGroupStatusOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.newBuilder(); @@ -4462,47 +3978,34 @@ public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus.Builder putTaskGroups private com.google.protobuf.Duration runDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - runDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> runDurationBuilder_; /** - * - * *
      * The duration of time that the Job spent in status RUNNING.
      * 
* * .google.protobuf.Duration run_duration = 5; - * * @return Whether the runDuration field is set. */ public boolean hasRunDuration() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The duration of time that the Job spent in status RUNNING.
      * 
* * .google.protobuf.Duration run_duration = 5; - * * @return The runDuration. */ public com.google.protobuf.Duration getRunDuration() { if (runDurationBuilder_ == null) { - return runDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runDuration_; + return runDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runDuration_; } else { return runDurationBuilder_.getMessage(); } } /** - * - * *
      * The duration of time that the Job spent in status RUNNING.
      * 
@@ -4523,15 +4026,14 @@ public Builder setRunDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The duration of time that the Job spent in status RUNNING.
      * 
* * .google.protobuf.Duration run_duration = 5; */ - public Builder setRunDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRunDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (runDurationBuilder_ == null) { runDuration_ = builderForValue.build(); } else { @@ -4542,8 +4044,6 @@ public Builder setRunDuration(com.google.protobuf.Duration.Builder builderForVal return this; } /** - * - * *
      * The duration of time that the Job spent in status RUNNING.
      * 
@@ -4552,9 +4052,9 @@ public Builder setRunDuration(com.google.protobuf.Duration.Builder builderForVal */ public Builder mergeRunDuration(com.google.protobuf.Duration value) { if (runDurationBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && runDuration_ != null - && runDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + runDuration_ != null && + runDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getRunDurationBuilder().mergeFrom(value); } else { runDuration_ = value; @@ -4569,8 +4069,6 @@ public Builder mergeRunDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The duration of time that the Job spent in status RUNNING.
      * 
@@ -4588,8 +4086,6 @@ public Builder clearRunDuration() { return this; } /** - * - * *
      * The duration of time that the Job spent in status RUNNING.
      * 
@@ -4602,8 +4098,6 @@ public com.google.protobuf.Duration.Builder getRunDurationBuilder() { return getRunDurationFieldBuilder().getBuilder(); } /** - * - * *
      * The duration of time that the Job spent in status RUNNING.
      * 
@@ -4614,14 +4108,11 @@ public com.google.protobuf.DurationOrBuilder getRunDurationOrBuilder() { if (runDurationBuilder_ != null) { return runDurationBuilder_.getMessageOrBuilder(); } else { - return runDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runDuration_; + return runDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : runDuration_; } } /** - * - * *
      * The duration of time that the Job spent in status RUNNING.
      * 
@@ -4629,24 +4120,21 @@ public com.google.protobuf.DurationOrBuilder getRunDurationOrBuilder() { * .google.protobuf.Duration run_duration = 5; */ 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> getRunDurationFieldBuilder() { if (runDurationBuilder_ == null) { - runDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getRunDuration(), getParentForChildren(), isClean()); + runDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getRunDuration(), + getParentForChildren(), + isClean()); runDuration_ = null; } return runDurationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4656,12 +4144,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.JobStatus) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.JobStatus) private static final com.google.cloud.batch.v1.JobStatus DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.JobStatus(); } @@ -4670,27 +4158,27 @@ public static com.google.cloud.batch.v1.JobStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobStatus 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 JobStatus 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; @@ -4705,4 +4193,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.JobStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java similarity index 71% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java index 90712f53a40d..c1da8fc767aa 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java @@ -1,67 +1,42 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface JobStatusOrBuilder - extends +public interface JobStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.JobStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Job state
    * 
* * .google.cloud.batch.v1.JobStatus.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Job state
    * 
* * .google.cloud.batch.v1.JobStatus.State state = 1; - * * @return The state. */ com.google.cloud.batch.v1.JobStatus.State getState(); /** - * - * *
    * Job status events
    * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - java.util.List getStatusEventsList(); + java.util.List + getStatusEventsList(); /** - * - * *
    * Job status events
    * 
@@ -70,8 +45,6 @@ public interface JobStatusOrBuilder */ com.google.cloud.batch.v1.StatusEvent getStatusEvents(int index); /** - * - * *
    * Job status events
    * 
@@ -80,124 +53,102 @@ public interface JobStatusOrBuilder */ int getStatusEventsCount(); /** - * - * *
    * Job status events
    * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - java.util.List + java.util.List getStatusEventsOrBuilderList(); /** - * - * *
    * Job status events
    * 
* * repeated .google.cloud.batch.v1.StatusEvent status_events = 2; */ - com.google.cloud.batch.v1.StatusEventOrBuilder getStatusEventsOrBuilder(int index); + com.google.cloud.batch.v1.StatusEventOrBuilder getStatusEventsOrBuilder( + int index); /** - * - * *
    * Aggregated task status for each TaskGroup in the Job.
    * The map key is TaskGroup ID.
    * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ int getTaskGroupsCount(); /** - * - * *
    * Aggregated task status for each TaskGroup in the Job.
    * The map key is TaskGroup ID.
    * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; + */ + boolean containsTaskGroups( + java.lang.String key); + /** + * Use {@link #getTaskGroupsMap()} instead. */ - boolean containsTaskGroups(java.lang.String key); - /** Use {@link #getTaskGroupsMap()} instead. */ @java.lang.Deprecated java.util.Map - getTaskGroups(); + getTaskGroups(); /** - * - * *
    * Aggregated task status for each TaskGroup in the Job.
    * The map key is TaskGroup ID.
    * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ java.util.Map - getTaskGroupsMap(); + getTaskGroupsMap(); /** - * - * *
    * Aggregated task status for each TaskGroup in the Job.
    * The map key is TaskGroup ID.
    * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ /* nullable */ - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrDefault( +com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus defaultValue); +com.google.cloud.batch.v1.JobStatus.TaskGroupStatus defaultValue); /** - * - * *
    * Aggregated task status for each TaskGroup in the Job.
    * The map key is TaskGroup ID.
    * 
* - * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; - * + * map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4; */ - com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrThrow(java.lang.String key); + com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrThrow( + java.lang.String key); /** - * - * *
    * The duration of time that the Job spent in status RUNNING.
    * 
* * .google.protobuf.Duration run_duration = 5; - * * @return Whether the runDuration field is set. */ boolean hasRunDuration(); /** - * - * *
    * The duration of time that the Job spent in status RUNNING.
    * 
* * .google.protobuf.Duration run_duration = 5; - * * @return The runDuration. */ com.google.protobuf.Duration getRunDuration(); /** - * - * *
    * The duration of time that the Job spent in status RUNNING.
    * 
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java similarity index 72% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java index 43fd5932b358..04a94454ebdc 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto @@ -20,8 +5,6 @@ package com.google.cloud.batch.v1; /** - * - * *
  * LifecyclePolicy describes how to deal with task failures
  * based on different conditions.
@@ -29,54 +12,49 @@
  *
  * Protobuf type {@code google.cloud.batch.v1.LifecyclePolicy}
  */
-public final class LifecyclePolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LifecyclePolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.LifecyclePolicy)
     LifecyclePolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LifecyclePolicy.newBuilder() to construct.
   private LifecyclePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LifecyclePolicy() {
     action_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LifecyclePolicy();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.batch.v1.TaskProto
-        .internal_static_google_cloud_batch_v1_LifecyclePolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_LifecyclePolicy_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.batch.v1.TaskProto
-        .internal_static_google_cloud_batch_v1_LifecyclePolicy_fieldAccessorTable
+    return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_LifecyclePolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.batch.v1.LifecyclePolicy.class,
-            com.google.cloud.batch.v1.LifecyclePolicy.Builder.class);
+            com.google.cloud.batch.v1.LifecyclePolicy.class, com.google.cloud.batch.v1.LifecyclePolicy.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Action on task failures based on different conditions.
    * 
* * Protobuf enum {@code google.cloud.batch.v1.LifecyclePolicy.Action} */ - public enum Action implements com.google.protobuf.ProtocolMessageEnum { + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Action unspecified.
      * 
@@ -85,8 +63,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Action that tasks in the group will be scheduled to re-execute.
      * 
@@ -95,8 +71,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ RETRY_TASK(1), /** - * - * *
      * Action that tasks in the group will be stopped immediately.
      * 
@@ -108,8 +82,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Action unspecified.
      * 
@@ -118,8 +90,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Action that tasks in the group will be scheduled to re-execute.
      * 
@@ -128,8 +98,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETRY_TASK_VALUE = 1; /** - * - * *
      * Action that tasks in the group will be stopped immediately.
      * 
@@ -138,6 +106,7 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAIL_TASK_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -162,49 +131,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: - return ACTION_UNSPECIFIED; - case 1: - return RETRY_TASK; - case 2: - return FAIL_TASK; - default: - return null; + case 0: return ACTION_UNSPECIFIED; + case 1: return RETRY_TASK; + case 2: return FAIL_TASK; + 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< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.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.batch.v1.LifecyclePolicy.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action 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; @@ -221,14 +190,11 @@ private Action(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.batch.v1.LifecyclePolicy.Action) } - public interface ActionConditionOrBuilder - extends + public interface ActionConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.LifecyclePolicy.ActionCondition) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Exit codes of a task execution.
      * If there are more than 1 exit codes,
@@ -237,13 +203,10 @@ public interface ActionConditionOrBuilder
      * 
* * repeated int32 exit_codes = 1; - * * @return A list containing the exitCodes. */ java.util.List getExitCodesList(); /** - * - * *
      * Exit codes of a task execution.
      * If there are more than 1 exit codes,
@@ -252,13 +215,10 @@ public interface ActionConditionOrBuilder
      * 
* * repeated int32 exit_codes = 1; - * * @return The count of exitCodes. */ int getExitCodesCount(); /** - * - * *
      * Exit codes of a task execution.
      * If there are more than 1 exit codes,
@@ -267,63 +227,56 @@ public interface ActionConditionOrBuilder
      * 
* * repeated int32 exit_codes = 1; - * * @param index The index of the element to return. * @return The exitCodes at the given index. */ int getExitCodes(int index); } /** - * - * *
    * Conditions for actions to deal with task failures.
    * 
* * Protobuf type {@code google.cloud.batch.v1.LifecyclePolicy.ActionCondition} */ - public static final class ActionCondition extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ActionCondition extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.LifecyclePolicy.ActionCondition) ActionConditionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ActionCondition.newBuilder() to construct. private ActionCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ActionCondition() { exitCodes_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ActionCondition(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_fieldAccessorTable + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.class, - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder.class); + com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.class, com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder.class); } public static final int EXIT_CODES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList exitCodes_ = emptyIntList(); + private com.google.protobuf.Internal.IntList exitCodes_ = + emptyIntList(); /** - * - * *
      * Exit codes of a task execution.
      * If there are more than 1 exit codes,
@@ -332,16 +285,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated int32 exit_codes = 1; - * * @return A list containing the exitCodes. */ @java.lang.Override - public java.util.List getExitCodesList() { + public java.util.List + getExitCodesList() { return exitCodes_; } /** - * - * *
      * Exit codes of a task execution.
      * If there are more than 1 exit codes,
@@ -350,15 +301,12 @@ public java.util.List getExitCodesList() {
      * 
* * repeated int32 exit_codes = 1; - * * @return The count of exitCodes. */ public int getExitCodesCount() { return exitCodes_.size(); } /** - * - * *
      * Exit codes of a task execution.
      * If there are more than 1 exit codes,
@@ -367,18 +315,15 @@ public int getExitCodesCount() {
      * 
* * repeated int32 exit_codes = 1; - * * @param index The index of the element to return. * @return The exitCodes at the given index. */ public int getExitCodes(int index) { return exitCodes_.getInt(index); } - private int exitCodesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,7 +335,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getExitCodesList().size() > 0) { output.writeUInt32NoTag(10); @@ -411,13 +357,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < exitCodes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(exitCodes_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(exitCodes_.getInt(i)); } size += dataSize; if (!getExitCodesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } exitCodesMemoizedSerializedSize = dataSize; } @@ -429,15 +376,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.batch.v1.LifecyclePolicy.ActionCondition)) { return super.equals(obj); } - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition other = - (com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition) obj; + com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition other = (com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition) obj; - if (!getExitCodesList().equals(other.getExitCodesList())) return false; + if (!getExitCodesList() + .equals(other.getExitCodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -459,94 +406,89 @@ public int hashCode() { } public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -556,41 +498,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Conditions for actions to deal with task failures.
      * 
* * Protobuf type {@code google.cloud.batch.v1.LifecyclePolicy.ActionCondition} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.LifecyclePolicy.ActionCondition) com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_fieldAccessorTable + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.class, - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder.class); + com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.class, com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder.class); } // Construct using com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.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(); @@ -600,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_LifecyclePolicy_ActionCondition_descriptor; } @java.lang.Override @@ -621,11 +561,8 @@ public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition build() { @java.lang.Override public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition buildPartial() { - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition result = - new com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition result = new com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -642,41 +579,38 @@ private void buildPartial0(com.google.cloud.batch.v1.LifecyclePolicy.ActionCondi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition) { - return mergeFrom((com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition) other); + return mergeFrom((com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition)other); } else { super.mergeFrom(other); return this; @@ -684,8 +618,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition other) { - if (other == com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance()) - return this; + if (other == com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance()) return this; if (!other.exitCodes_.isEmpty()) { if (exitCodes_.isEmpty()) { exitCodes_ = other.exitCodes_; @@ -723,31 +656,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - int v = input.readInt32(); - ensureExitCodesIsMutable(); - exitCodes_.addInt(v); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureExitCodesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - exitCodes_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + int v = input.readInt32(); + ensureExitCodesIsMutable(); + exitCodes_.addInt(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureExitCodesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + exitCodes_.addInt(input.readInt32()); + } + input.popLimit(limit); + 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) { @@ -757,11 +687,9 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Internal.IntList exitCodes_ = emptyIntList(); - private void ensureExitCodesIsMutable() { if (!exitCodes_.isModifiable()) { exitCodes_ = makeMutableCopy(exitCodes_); @@ -769,8 +697,6 @@ private void ensureExitCodesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -779,16 +705,14 @@ private void ensureExitCodesIsMutable() {
        * 
* * repeated int32 exit_codes = 1; - * * @return A list containing the exitCodes. */ - public java.util.List getExitCodesList() { + public java.util.List + getExitCodesList() { exitCodes_.makeImmutable(); return exitCodes_; } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -797,15 +721,12 @@ public java.util.List getExitCodesList() {
        * 
* * repeated int32 exit_codes = 1; - * * @return The count of exitCodes. */ public int getExitCodesCount() { return exitCodes_.size(); } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -814,7 +735,6 @@ public int getExitCodesCount() {
        * 
* * repeated int32 exit_codes = 1; - * * @param index The index of the element to return. * @return The exitCodes at the given index. */ @@ -822,8 +742,6 @@ public int getExitCodes(int index) { return exitCodes_.getInt(index); } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -832,12 +750,12 @@ public int getExitCodes(int index) {
        * 
* * repeated int32 exit_codes = 1; - * * @param index The index to set the value at. * @param value The exitCodes to set. * @return This builder for chaining. */ - public Builder setExitCodes(int index, int value) { + public Builder setExitCodes( + int index, int value) { ensureExitCodesIsMutable(); exitCodes_.setInt(index, value); @@ -846,8 +764,6 @@ public Builder setExitCodes(int index, int value) { return this; } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -856,7 +772,6 @@ public Builder setExitCodes(int index, int value) {
        * 
* * repeated int32 exit_codes = 1; - * * @param value The exitCodes to add. * @return This builder for chaining. */ @@ -869,8 +784,6 @@ public Builder addExitCodes(int value) { return this; } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -879,20 +792,19 @@ public Builder addExitCodes(int value) {
        * 
* * repeated int32 exit_codes = 1; - * * @param values The exitCodes to add. * @return This builder for chaining. */ - public Builder addAllExitCodes(java.lang.Iterable values) { + public Builder addAllExitCodes( + java.lang.Iterable values) { ensureExitCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exitCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exitCodes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -901,7 +813,6 @@ public Builder addAllExitCodes(java.lang.Iterable v
        * 
* * repeated int32 exit_codes = 1; - * * @return This builder for chaining. */ public Builder clearExitCodes() { @@ -910,7 +821,6 @@ public Builder clearExitCodes() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -923,12 +833,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.LifecyclePolicy.ActionCondition) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.LifecyclePolicy.ActionCondition) private static final com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition(); } @@ -937,28 +847,27 @@ public static com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActionCondition 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 ActionCondition 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; @@ -973,14 +882,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int ACTION_FIELD_NUMBER = 1; private int action_ = 0; /** - * - * *
    * Action to execute when ActionCondition is true.
    * When RETRY_TASK is specified, we will retry failed tasks
@@ -990,16 +898,12 @@ public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition getDefaultInsta
    * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
    * Action to execute when ActionCondition is true.
    * When RETRY_TASK is specified, we will retry failed tasks
@@ -1009,27 +913,21 @@ public int getActionValue() {
    * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @return The action. */ - @java.lang.Override - public com.google.cloud.batch.v1.LifecyclePolicy.Action getAction() { - com.google.cloud.batch.v1.LifecyclePolicy.Action result = - com.google.cloud.batch.v1.LifecyclePolicy.Action.forNumber(action_); + @java.lang.Override public com.google.cloud.batch.v1.LifecyclePolicy.Action getAction() { + com.google.cloud.batch.v1.LifecyclePolicy.Action result = com.google.cloud.batch.v1.LifecyclePolicy.Action.forNumber(action_); return result == null ? com.google.cloud.batch.v1.LifecyclePolicy.Action.UNRECOGNIZED : result; } public static final int ACTION_CONDITION_FIELD_NUMBER = 2; private com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition actionCondition_; /** - * - * *
    * Conditions that decide why a task failure is dealt with a specific action.
    * 
* * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; - * * @return Whether the actionCondition field is set. */ @java.lang.Override @@ -1037,25 +935,18 @@ public boolean hasActionCondition() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Conditions that decide why a task failure is dealt with a specific action.
    * 
* * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; - * * @return The actionCondition. */ @java.lang.Override public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition getActionCondition() { - return actionCondition_ == null - ? com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance() - : actionCondition_; + return actionCondition_ == null ? com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance() : actionCondition_; } /** - * - * *
    * Conditions that decide why a task failure is dealt with a specific action.
    * 
@@ -1063,15 +954,11 @@ public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition getActionCondit * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; */ @java.lang.Override - public com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder - getActionConditionOrBuilder() { - return actionCondition_ == null - ? com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance() - : actionCondition_; + public com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder getActionConditionOrBuilder() { + return actionCondition_ == null ? com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance() : actionCondition_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1083,9 +970,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (action_ - != com.google.cloud.batch.v1.LifecyclePolicy.Action.ACTION_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (action_ != com.google.cloud.batch.v1.LifecyclePolicy.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -1100,12 +987,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (action_ - != com.google.cloud.batch.v1.LifecyclePolicy.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); + if (action_ != com.google.cloud.batch.v1.LifecyclePolicy.Action.ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, action_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getActionCondition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getActionCondition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1115,18 +1003,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.batch.v1.LifecyclePolicy)) { return super.equals(obj); } - com.google.cloud.batch.v1.LifecyclePolicy other = - (com.google.cloud.batch.v1.LifecyclePolicy) obj; + com.google.cloud.batch.v1.LifecyclePolicy other = (com.google.cloud.batch.v1.LifecyclePolicy) obj; if (action_ != other.action_) return false; if (hasActionCondition() != other.hasActionCondition()) return false; if (hasActionCondition()) { - if (!getActionCondition().equals(other.getActionCondition())) return false; + if (!getActionCondition() + .equals(other.getActionCondition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1150,104 +1038,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.LifecyclePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.LifecyclePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.LifecyclePolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.LifecyclePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.LifecyclePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * LifecyclePolicy describes how to deal with task failures
    * based on different conditions.
@@ -1255,23 +1138,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.batch.v1.LifecyclePolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.LifecyclePolicy)
       com.google.cloud.batch.v1.LifecyclePolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.TaskProto
-          .internal_static_google_cloud_batch_v1_LifecyclePolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_LifecyclePolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.TaskProto
-          .internal_static_google_cloud_batch_v1_LifecyclePolicy_fieldAccessorTable
+      return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_LifecyclePolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.LifecyclePolicy.class,
-              com.google.cloud.batch.v1.LifecyclePolicy.Builder.class);
+              com.google.cloud.batch.v1.LifecyclePolicy.class, com.google.cloud.batch.v1.LifecyclePolicy.Builder.class);
     }
 
     // Construct using com.google.cloud.batch.v1.LifecyclePolicy.newBuilder()
@@ -1279,17 +1160,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getActionConditionFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1304,9 +1185,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.batch.v1.TaskProto
-          .internal_static_google_cloud_batch_v1_LifecyclePolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_LifecyclePolicy_descriptor;
     }
 
     @java.lang.Override
@@ -1325,11 +1206,8 @@ public com.google.cloud.batch.v1.LifecyclePolicy build() {
 
     @java.lang.Override
     public com.google.cloud.batch.v1.LifecyclePolicy buildPartial() {
-      com.google.cloud.batch.v1.LifecyclePolicy result =
-          new com.google.cloud.batch.v1.LifecyclePolicy(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.batch.v1.LifecyclePolicy result = new com.google.cloud.batch.v1.LifecyclePolicy(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1341,8 +1219,9 @@ private void buildPartial0(com.google.cloud.batch.v1.LifecyclePolicy result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.actionCondition_ =
-            actionConditionBuilder_ == null ? actionCondition_ : actionConditionBuilder_.build();
+        result.actionCondition_ = actionConditionBuilder_ == null
+            ? actionCondition_
+            : actionConditionBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -1352,39 +1231,38 @@ private void buildPartial0(com.google.cloud.batch.v1.LifecyclePolicy result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.batch.v1.LifecyclePolicy) {
-        return mergeFrom((com.google.cloud.batch.v1.LifecyclePolicy) other);
+        return mergeFrom((com.google.cloud.batch.v1.LifecyclePolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1425,25 +1303,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                action_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getActionConditionFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              action_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getActionConditionFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              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) {
@@ -1453,13 +1330,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int action_ = 0;
     /**
-     *
-     *
      * 
      * Action to execute when ActionCondition is true.
      * When RETRY_TASK is specified, we will retry failed tasks
@@ -1469,16 +1343,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
      * Action to execute when ActionCondition is true.
      * When RETRY_TASK is specified, we will retry failed tasks
@@ -1488,7 +1358,6 @@ public int getActionValue() {
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ @@ -1499,8 +1368,6 @@ public Builder setActionValue(int value) { return this; } /** - * - * *
      * Action to execute when ActionCondition is true.
      * When RETRY_TASK is specified, we will retry failed tasks
@@ -1510,20 +1377,14 @@ public Builder setActionValue(int value) {
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @return The action. */ @java.lang.Override public com.google.cloud.batch.v1.LifecyclePolicy.Action getAction() { - com.google.cloud.batch.v1.LifecyclePolicy.Action result = - com.google.cloud.batch.v1.LifecyclePolicy.Action.forNumber(action_); - return result == null - ? com.google.cloud.batch.v1.LifecyclePolicy.Action.UNRECOGNIZED - : result; + com.google.cloud.batch.v1.LifecyclePolicy.Action result = com.google.cloud.batch.v1.LifecyclePolicy.Action.forNumber(action_); + return result == null ? com.google.cloud.batch.v1.LifecyclePolicy.Action.UNRECOGNIZED : result; } /** - * - * *
      * Action to execute when ActionCondition is true.
      * When RETRY_TASK is specified, we will retry failed tasks
@@ -1533,7 +1394,6 @@ public com.google.cloud.batch.v1.LifecyclePolicy.Action getAction() {
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @param value The action to set. * @return This builder for chaining. */ @@ -1547,8 +1407,6 @@ public Builder setAction(com.google.cloud.batch.v1.LifecyclePolicy.Action value) return this; } /** - * - * *
      * Action to execute when ActionCondition is true.
      * When RETRY_TASK is specified, we will retry failed tasks
@@ -1558,7 +1416,6 @@ public Builder setAction(com.google.cloud.batch.v1.LifecyclePolicy.Action value)
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @return This builder for chaining. */ public Builder clearAction() { @@ -1570,55 +1427,41 @@ public Builder clearAction() { private com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition actionCondition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition, - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder, - com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder> - actionConditionBuilder_; + com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition, com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder, com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder> actionConditionBuilder_; /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; - * * @return Whether the actionCondition field is set. */ public boolean hasActionCondition() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; - * * @return The actionCondition. */ public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition getActionCondition() { if (actionConditionBuilder_ == null) { - return actionCondition_ == null - ? com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance() - : actionCondition_; + return actionCondition_ == null ? com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance() : actionCondition_; } else { return actionConditionBuilder_.getMessage(); } } /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; */ - public Builder setActionCondition( - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition value) { + public Builder setActionCondition(com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition value) { if (actionConditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1632,8 +1475,6 @@ public Builder setActionCondition( return this; } /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
@@ -1652,21 +1493,17 @@ public Builder setActionCondition( return this; } /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; */ - public Builder mergeActionCondition( - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition value) { + public Builder mergeActionCondition(com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition value) { if (actionConditionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && actionCondition_ != null - && actionCondition_ - != com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + actionCondition_ != null && + actionCondition_ != com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance()) { getActionConditionBuilder().mergeFrom(value); } else { actionCondition_ = value; @@ -1681,8 +1518,6 @@ public Builder mergeActionCondition( return this; } /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
@@ -1700,42 +1535,33 @@ public Builder clearActionCondition() { return this; } /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; */ - public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder - getActionConditionBuilder() { + public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder getActionConditionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getActionConditionFieldBuilder().getBuilder(); } /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; */ - public com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder - getActionConditionOrBuilder() { + public com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder getActionConditionOrBuilder() { if (actionConditionBuilder_ != null) { return actionConditionBuilder_.getMessageOrBuilder(); } else { - return actionCondition_ == null - ? com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance() - : actionCondition_; + return actionCondition_ == null ? + com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.getDefaultInstance() : actionCondition_; } } /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
@@ -1743,24 +1569,21 @@ public Builder clearActionCondition() { * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition, - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder, - com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder> + com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition, com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder, com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder> getActionConditionFieldBuilder() { if (actionConditionBuilder_ == null) { - actionConditionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition, - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder, - com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder>( - getActionCondition(), getParentForChildren(), isClean()); + actionConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition, com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder, com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder>( + getActionCondition(), + getParentForChildren(), + isClean()); actionCondition_ = null; } return actionConditionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1770,12 +1593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.LifecyclePolicy) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.LifecyclePolicy) private static final com.google.cloud.batch.v1.LifecyclePolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.LifecyclePolicy(); } @@ -1784,27 +1607,27 @@ public static com.google.cloud.batch.v1.LifecyclePolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LifecyclePolicy 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 LifecyclePolicy 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; @@ -1819,4 +1642,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.LifecyclePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java similarity index 76% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java index 08a3bad536f9..c0d8b3636e40 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface LifecyclePolicyOrBuilder - extends +public interface LifecyclePolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.LifecyclePolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Action to execute when ActionCondition is true.
    * When RETRY_TASK is specified, we will retry failed tasks
@@ -36,13 +18,10 @@ public interface LifecyclePolicyOrBuilder
    * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * - * *
    * Action to execute when ActionCondition is true.
    * When RETRY_TASK is specified, we will retry failed tasks
@@ -52,38 +31,29 @@ public interface LifecyclePolicyOrBuilder
    * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @return The action. */ com.google.cloud.batch.v1.LifecyclePolicy.Action getAction(); /** - * - * *
    * Conditions that decide why a task failure is dealt with a specific action.
    * 
* * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; - * * @return Whether the actionCondition field is set. */ boolean hasActionCondition(); /** - * - * *
    * Conditions that decide why a task failure is dealt with a specific action.
    * 
* * .google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2; - * * @return The actionCondition. */ com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition getActionCondition(); /** - * - * *
    * Conditions that decide why a task failure is dealt with a specific action.
    * 
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java similarity index 69% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java index e2680490fa5c..6da51da78a39 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto @@ -20,24 +5,21 @@ package com.google.cloud.batch.v1; /** - * - * *
  * ListJob Request.
  * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.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_ = ""; filter_ = ""; @@ -47,38 +29,33 @@ private ListJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListJobsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListJobsRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.ListJobsRequest.class, - com.google.cloud.batch.v1.ListJobsRequest.Builder.class); + com.google.cloud.batch.v1.ListJobsRequest.class, com.google.cloud.batch.v1.ListJobsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Parent path.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -87,29 +64,29 @@ 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; } } /** - * - * *
    * Parent path.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -118,18 +95,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -138,29 +111,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -169,19 +142,15 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Optional. Sort results. Supported are "name", "name desc", "create_time",
    * and "create_time desc".
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -190,30 +159,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. Sort results. Supported are "name", "name desc", "create_time",
    * and "create_time desc".
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -224,14 +193,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -240,18 +206,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -260,29 +222,29 @@ 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; } } /** - * - * *
    * Page token.
    * 
* * 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 { @@ -291,7 +253,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,7 +264,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_); } @@ -332,7 +294,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -351,19 +314,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.batch.v1.ListJobsRequest)) { return super.equals(obj); } - com.google.cloud.batch.v1.ListJobsRequest other = - (com.google.cloud.batch.v1.ListJobsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.batch.v1.ListJobsRequest other = (com.google.cloud.batch.v1.ListJobsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -390,136 +357,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.ListJobsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.ListJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.ListJobsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.ListJobsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.ListJobsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.ListJobsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.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; } /** - * - * *
    * ListJob Request.
    * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.ListJobsRequest) com.google.cloud.batch.v1.ListJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListJobsRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.ListJobsRequest.class, - com.google.cloud.batch.v1.ListJobsRequest.Builder.class); + com.google.cloud.batch.v1.ListJobsRequest.class, com.google.cloud.batch.v1.ListJobsRequest.Builder.class); } // Construct using com.google.cloud.batch.v1.ListJobsRequest.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(); @@ -533,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListJobsRequest_descriptor; } @java.lang.Override @@ -554,11 +517,8 @@ public com.google.cloud.batch.v1.ListJobsRequest build() { @java.lang.Override public com.google.cloud.batch.v1.ListJobsRequest buildPartial() { - com.google.cloud.batch.v1.ListJobsRequest result = - new com.google.cloud.batch.v1.ListJobsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.ListJobsRequest result = new com.google.cloud.batch.v1.ListJobsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -586,39 +546,38 @@ private void buildPartial0(com.google.cloud.batch.v1.ListJobsRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.ListJobsRequest) { - return mergeFrom((com.google.cloud.batch.v1.ListJobsRequest) other); + return mergeFrom((com.google.cloud.batch.v1.ListJobsRequest)other); } else { super.mergeFrom(other); return this; @@ -676,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -722,25 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Parent path.
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -749,21 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Parent path.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -771,35 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Parent path.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Parent path.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -809,21 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Parent path.
      * 
* * string parent = 1; - * * @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(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -833,20 +771,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -855,21 +791,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -877,35 +812,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -915,21 +843,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -939,21 +863,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. Sort results. Supported are "name", "name desc", "create_time",
      * and "create_time desc".
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -962,22 +884,21 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. Sort results. Supported are "name", "name desc", "create_time",
      * and "create_time desc".
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -985,37 +906,30 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. Sort results. Supported are "name", "name desc", "create_time",
      * and "create_time desc".
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. Sort results. Supported are "name", "name desc", "create_time",
      * and "create_time desc".
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1025,22 +939,18 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Optional. Sort results. Supported are "name", "name desc", "create_time",
      * and "create_time desc".
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000004; @@ -1048,16 +958,13 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -1065,14 +972,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1084,14 +988,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1103,20 +1004,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token.
      * 
* * 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; @@ -1125,21 +1024,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token.
      * 
* * 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 { @@ -1147,35 +1045,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1185,30 +1076,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1218,12 +1105,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.ListJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.ListJobsRequest) private static final com.google.cloud.batch.v1.ListJobsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.ListJobsRequest(); } @@ -1232,27 +1119,27 @@ public static com.google.cloud.batch.v1.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; @@ -1267,4 +1154,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.ListJobsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java similarity index 65% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java index 8c90d2a34e69..42ffc1b7f426 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java @@ -1,141 +1,102 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface ListJobsRequestOrBuilder - extends +public interface ListJobsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.ListJobsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Parent path.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Parent path.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Sort results. Supported are "name", "name desc", "create_time",
    * and "create_time desc".
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. Sort results. Supported are "name", "name desc", "create_time",
    * and "create_time desc".
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java similarity index 71% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java index 56467bd871b6..0b22f1c88962 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto @@ -20,58 +5,52 @@ package com.google.cloud.batch.v1; /** - * - * *
  * ListJob Response.
  * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.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_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListJobsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListJobsResponse_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.ListJobsResponse.class, - com.google.cloud.batch.v1.ListJobsResponse.Builder.class); + com.google.cloud.batch.v1.ListJobsResponse.class, com.google.cloud.batch.v1.ListJobsResponse.Builder.class); } public static final int JOBS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List jobs_; /** - * - * *
    * Jobs.
    * 
@@ -83,8 +62,6 @@ public java.util.List getJobsList() { return jobs_; } /** - * - * *
    * Jobs.
    * 
@@ -92,12 +69,11 @@ public java.util.List getJobsList() { * repeated .google.cloud.batch.v1.Job jobs = 1; */ @java.lang.Override - public java.util.List getJobsOrBuilderList() { + public java.util.List + getJobsOrBuilderList() { return jobs_; } /** - * - * *
    * Jobs.
    * 
@@ -109,8 +85,6 @@ public int getJobsCount() { return jobs_.size(); } /** - * - * *
    * Jobs.
    * 
@@ -122,8 +96,6 @@ public com.google.cloud.batch.v1.Job getJobs(int index) { return jobs_.get(index); } /** - * - * *
    * Jobs.
    * 
@@ -131,23 +103,20 @@ public com.google.cloud.batch.v1.Job getJobs(int index) { * repeated .google.cloud.batch.v1.Job jobs = 1; */ @java.lang.Override - public com.google.cloud.batch.v1.JobOrBuilder getJobsOrBuilder(int index) { + public com.google.cloud.batch.v1.JobOrBuilder getJobsOrBuilder( + int index) { return jobs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,29 +125,29 @@ 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; } } /** - * - * *
    * Next page token.
    * 
* * 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 { @@ -187,47 +156,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -235,23 +195,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +220,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 < jobs_.size(); i++) { output.writeMessage(1, jobs_.get(i)); } @@ -283,7 +241,8 @@ 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_); @@ -304,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.batch.v1.ListJobsResponse)) { return super.equals(obj); } - com.google.cloud.batch.v1.ListJobsResponse other = - (com.google.cloud.batch.v1.ListJobsResponse) obj; + com.google.cloud.batch.v1.ListJobsResponse other = (com.google.cloud.batch.v1.ListJobsResponse) obj; - if (!getJobsList().equals(other.getJobsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getJobsList() + .equals(other.getJobsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -341,136 +302,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.ListJobsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.ListJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.ListJobsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.ListJobsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.ListJobsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.ListJobsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.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; } /** - * - * *
    * ListJob Response.
    * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.ListJobsResponse) com.google.cloud.batch.v1.ListJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListJobsResponse_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.ListJobsResponse.class, - com.google.cloud.batch.v1.ListJobsResponse.Builder.class); + com.google.cloud.batch.v1.ListJobsResponse.class, com.google.cloud.batch.v1.ListJobsResponse.Builder.class); } // Construct using com.google.cloud.batch.v1.ListJobsResponse.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(); @@ -483,14 +440,15 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListJobsResponse_descriptor; } @java.lang.Override @@ -509,12 +467,9 @@ public com.google.cloud.batch.v1.ListJobsResponse build() { @java.lang.Override public com.google.cloud.batch.v1.ListJobsResponse buildPartial() { - com.google.cloud.batch.v1.ListJobsResponse result = - new com.google.cloud.batch.v1.ListJobsResponse(this); + com.google.cloud.batch.v1.ListJobsResponse result = new com.google.cloud.batch.v1.ListJobsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -546,39 +501,38 @@ private void buildPartial0(com.google.cloud.batch.v1.ListJobsResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.ListJobsResponse) { - return mergeFrom((com.google.cloud.batch.v1.ListJobsResponse) other); + return mergeFrom((com.google.cloud.batch.v1.ListJobsResponse)other); } else { super.mergeFrom(other); return this; @@ -605,10 +559,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.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_); } @@ -655,38 +608,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.batch.v1.Job m = - input.readMessage(com.google.cloud.batch.v1.Job.parser(), extensionRegistry); - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(m); - } else { - jobsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.batch.v1.Job m = + input.readMessage( + com.google.cloud.batch.v1.Job.parser(), + extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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) { @@ -696,27 +647,21 @@ 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.batch.v1.Job, - com.google.cloud.batch.v1.Job.Builder, - com.google.cloud.batch.v1.JobOrBuilder> - jobsBuilder_; + com.google.cloud.batch.v1.Job, com.google.cloud.batch.v1.Job.Builder, com.google.cloud.batch.v1.JobOrBuilder> jobsBuilder_; /** - * - * *
      * Jobs.
      * 
@@ -731,8 +676,6 @@ public java.util.List getJobsList() { } } /** - * - * *
      * Jobs.
      * 
@@ -747,8 +690,6 @@ public int getJobsCount() { } } /** - * - * *
      * Jobs.
      * 
@@ -763,15 +704,14 @@ public com.google.cloud.batch.v1.Job getJobs(int index) { } } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - public Builder setJobs(int index, com.google.cloud.batch.v1.Job value) { + public Builder setJobs( + int index, com.google.cloud.batch.v1.Job value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -785,15 +725,14 @@ public Builder setJobs(int index, com.google.cloud.batch.v1.Job value) { return this; } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - public Builder setJobs(int index, com.google.cloud.batch.v1.Job.Builder builderForValue) { + public Builder setJobs( + int index, com.google.cloud.batch.v1.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.set(index, builderForValue.build()); @@ -804,8 +743,6 @@ public Builder setJobs(int index, com.google.cloud.batch.v1.Job.Builder builderF return this; } /** - * - * *
      * Jobs.
      * 
@@ -826,15 +763,14 @@ public Builder addJobs(com.google.cloud.batch.v1.Job value) { return this; } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - public Builder addJobs(int index, com.google.cloud.batch.v1.Job value) { + public Builder addJobs( + int index, com.google.cloud.batch.v1.Job value) { if (jobsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -848,15 +784,14 @@ public Builder addJobs(int index, com.google.cloud.batch.v1.Job value) { return this; } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - public Builder addJobs(com.google.cloud.batch.v1.Job.Builder builderForValue) { + public Builder addJobs( + com.google.cloud.batch.v1.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.add(builderForValue.build()); @@ -867,15 +802,14 @@ public Builder addJobs(com.google.cloud.batch.v1.Job.Builder builderForValue) { return this; } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - public Builder addJobs(int index, com.google.cloud.batch.v1.Job.Builder builderForValue) { + public Builder addJobs( + int index, com.google.cloud.batch.v1.Job.Builder builderForValue) { if (jobsBuilder_ == null) { ensureJobsIsMutable(); jobs_.add(index, builderForValue.build()); @@ -886,18 +820,18 @@ public Builder addJobs(int index, com.google.cloud.batch.v1.Job.Builder builderF return this; } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.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); @@ -905,8 +839,6 @@ public Builder addAllJobs(java.lang.Iterable * Jobs. *
@@ -924,8 +856,6 @@ public Builder clearJobs() { return this; } /** - * - * *
      * Jobs.
      * 
@@ -943,43 +873,39 @@ public Builder removeJobs(int index) { return this; } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - public com.google.cloud.batch.v1.Job.Builder getJobsBuilder(int index) { + public com.google.cloud.batch.v1.Job.Builder getJobsBuilder( + int index) { return getJobsFieldBuilder().getBuilder(index); } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - public com.google.cloud.batch.v1.JobOrBuilder getJobsOrBuilder(int index) { + public com.google.cloud.batch.v1.JobOrBuilder getJobsOrBuilder( + int index) { if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { + return jobs_.get(index); } else { return jobsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - public java.util.List getJobsOrBuilderList() { + public java.util.List + getJobsOrBuilderList() { if (jobsBuilder_ != null) { return jobsBuilder_.getMessageOrBuilderList(); } else { @@ -987,8 +913,6 @@ public java.util.List getJobsO } } /** - * - * *
      * Jobs.
      * 
@@ -996,46 +920,42 @@ public java.util.List getJobsO * repeated .google.cloud.batch.v1.Job jobs = 1; */ public com.google.cloud.batch.v1.Job.Builder addJobsBuilder() { - return getJobsFieldBuilder().addBuilder(com.google.cloud.batch.v1.Job.getDefaultInstance()); + return getJobsFieldBuilder().addBuilder( + com.google.cloud.batch.v1.Job.getDefaultInstance()); } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - public com.google.cloud.batch.v1.Job.Builder addJobsBuilder(int index) { - return getJobsFieldBuilder() - .addBuilder(index, com.google.cloud.batch.v1.Job.getDefaultInstance()); + public com.google.cloud.batch.v1.Job.Builder addJobsBuilder( + int index) { + return getJobsFieldBuilder().addBuilder( + index, com.google.cloud.batch.v1.Job.getDefaultInstance()); } /** - * - * *
      * Jobs.
      * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - public java.util.List getJobsBuilderList() { + public java.util.List + getJobsBuilderList() { return getJobsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.Job, - com.google.cloud.batch.v1.Job.Builder, - com.google.cloud.batch.v1.JobOrBuilder> + com.google.cloud.batch.v1.Job, com.google.cloud.batch.v1.Job.Builder, com.google.cloud.batch.v1.JobOrBuilder> getJobsFieldBuilder() { if (jobsBuilder_ == null) { - jobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.Job, - com.google.cloud.batch.v1.Job.Builder, - com.google.cloud.batch.v1.JobOrBuilder>( - jobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + jobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.batch.v1.Job, com.google.cloud.batch.v1.Job.Builder, com.google.cloud.batch.v1.JobOrBuilder>( + jobs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); jobs_ = null; } return jobsBuilder_; @@ -1043,20 +963,18 @@ public java.util.List getJobsBuilderList( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Next page token.
      * 
* * 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; @@ -1065,21 +983,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Next page token.
      * 
* * 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 { @@ -1087,35 +1004,28 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Next page token.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1125,21 +1035,17 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Next page token.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1149,7 +1055,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1157,43 +1062,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1201,37 +1098,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1239,21 +1130,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1261,58 +1148,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1320,9 +1199,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1332,12 +1211,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.ListJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.ListJobsResponse) private static final com.google.cloud.batch.v1.ListJobsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.ListJobsResponse(); } @@ -1346,27 +1225,27 @@ public static com.google.cloud.batch.v1.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; @@ -1381,4 +1260,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.ListJobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java similarity index 66% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java index b522dcd18df4..02182dd2d8e8 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface ListJobsResponseOrBuilder - extends +public interface ListJobsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.ListJobsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Jobs.
    * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - java.util.List getJobsList(); + java.util.List + getJobsList(); /** - * - * *
    * Jobs.
    * 
@@ -45,8 +26,6 @@ public interface ListJobsResponseOrBuilder */ com.google.cloud.batch.v1.Job getJobs(int index); /** - * - * *
    * Jobs.
    * 
@@ -55,99 +34,82 @@ public interface ListJobsResponseOrBuilder */ int getJobsCount(); /** - * - * *
    * Jobs.
    * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - java.util.List getJobsOrBuilderList(); + java.util.List + getJobsOrBuilderList(); /** - * - * *
    * Jobs.
    * 
* * repeated .google.cloud.batch.v1.Job jobs = 1; */ - com.google.cloud.batch.v1.JobOrBuilder getJobsOrBuilder(int index); + com.google.cloud.batch.v1.JobOrBuilder getJobsOrBuilder( + int index); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java similarity index 67% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java index 5cb995d51d3e..46052300edb8 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto @@ -20,24 +5,21 @@ package com.google.cloud.batch.v1; /** - * - * *
  * ListTasks Request.
  * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.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_ = ""; filter_ = ""; @@ -46,42 +28,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(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListTasksRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListTasksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.ListTasksRequest.class, - com.google.cloud.batch.v1.ListTasksRequest.Builder.class); + com.google.cloud.batch.v1.ListTasksRequest.class, com.google.cloud.batch.v1.ListTasksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Name of a TaskGroup from which Tasks are being requested.
    * Pattern:
    * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
    * 
* - * - * string parent = 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 @@ -90,33 +65,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. Name of a TaskGroup from which Tasks are being requested.
    * Pattern:
    * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
    * 
* - * - * string parent = 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 { @@ -125,12 +98,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Task filter, null filter matches all Tasks.
    * Filter string should be of the format State=TaskStatus.State e.g.
@@ -138,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -147,15 +116,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Task filter, null filter matches all Tasks.
    * Filter string should be of the format State=TaskStatus.State e.g.
@@ -163,15 +131,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -182,14 +151,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * Page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -198,18 +164,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token.
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -218,29 +180,29 @@ 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; } } /** - * - * *
    * Page token.
    * 
* * string page_token = 4; - * * @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 { @@ -249,7 +211,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +222,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_); } @@ -290,7 +252,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -303,18 +266,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.batch.v1.ListTasksRequest)) { return super.equals(obj); } - com.google.cloud.batch.v1.ListTasksRequest other = - (com.google.cloud.batch.v1.ListTasksRequest) obj; + com.google.cloud.batch.v1.ListTasksRequest other = (com.google.cloud.batch.v1.ListTasksRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,136 +305,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.ListTasksRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.ListTasksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.ListTasksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.ListTasksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.ListTasksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.ListTasksRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.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; } /** - * - * *
    * ListTasks Request.
    * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.ListTasksRequest) com.google.cloud.batch.v1.ListTasksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListTasksRequest_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListTasksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.ListTasksRequest.class, - com.google.cloud.batch.v1.ListTasksRequest.Builder.class); + com.google.cloud.batch.v1.ListTasksRequest.class, com.google.cloud.batch.v1.ListTasksRequest.Builder.class); } // Construct using com.google.cloud.batch.v1.ListTasksRequest.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(); @@ -481,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListTasksRequest_descriptor; } @java.lang.Override @@ -502,11 +464,8 @@ public com.google.cloud.batch.v1.ListTasksRequest build() { @java.lang.Override public com.google.cloud.batch.v1.ListTasksRequest buildPartial() { - com.google.cloud.batch.v1.ListTasksRequest result = - new com.google.cloud.batch.v1.ListTasksRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.ListTasksRequest result = new com.google.cloud.batch.v1.ListTasksRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -531,39 +490,38 @@ private void buildPartial0(com.google.cloud.batch.v1.ListTasksRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.ListTasksRequest) { - return mergeFrom((com.google.cloud.batch.v1.ListTasksRequest) other); + return mergeFrom((com.google.cloud.batch.v1.ListTasksRequest)other); } else { super.mergeFrom(other); return this; @@ -616,37 +574,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -656,29 +609,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of a TaskGroup from which Tasks are being requested.
      * Pattern:
      * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
      * 
* - * - * string parent = 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; @@ -687,25 +635,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of a TaskGroup from which Tasks are being requested.
      * Pattern:
      * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
      * 
* - * - * string parent = 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 { @@ -713,43 +658,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of a TaskGroup from which Tasks are being requested.
      * Pattern:
      * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of a TaskGroup from which Tasks are being requested.
      * Pattern:
      * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
      * 
* - * - * string 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() { @@ -759,25 +693,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of a TaskGroup from which Tasks are being requested.
      * Pattern:
      * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -787,8 +715,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Task filter, null filter matches all Tasks.
      * Filter string should be of the format State=TaskStatus.State e.g.
@@ -796,13 +722,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -811,8 +737,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Task filter, null filter matches all Tasks.
      * Filter string should be of the format State=TaskStatus.State e.g.
@@ -820,14 +744,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -835,8 +760,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Task filter, null filter matches all Tasks.
      * Filter string should be of the format State=TaskStatus.State e.g.
@@ -844,22 +767,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Task filter, null filter matches all Tasks.
      * Filter string should be of the format State=TaskStatus.State e.g.
@@ -867,7 +786,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -877,8 +795,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Task filter, null filter matches all Tasks.
      * Filter string should be of the format State=TaskStatus.State e.g.
@@ -886,14 +802,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -901,16 +815,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Page size.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -918,14 +829,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -937,14 +845,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -956,20 +861,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token.
      * 
* * string page_token = 4; - * * @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; @@ -978,21 +881,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token.
      * 
* * string page_token = 4; - * * @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 { @@ -1000,35 +902,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token.
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Page token.
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1038,30 +933,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token.
      * 
* * string page_token = 4; - * * @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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1071,12 +962,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.ListTasksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.ListTasksRequest) private static final com.google.cloud.batch.v1.ListTasksRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.ListTasksRequest(); } @@ -1085,27 +976,27 @@ public static com.google.cloud.batch.v1.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; @@ -1120,4 +1011,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.ListTasksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java similarity index 60% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java index 6501bc0fd40d..580944ce3556 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java @@ -1,65 +1,38 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface ListTasksRequestOrBuilder - extends +public interface ListTasksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.ListTasksRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of a TaskGroup from which Tasks are being requested.
    * Pattern:
    * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
    * 
* - * - * string parent = 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. Name of a TaskGroup from which Tasks are being requested.
    * Pattern:
    * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
    * 
* - * - * string parent = 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(); /** - * - * *
    * Task filter, null filter matches all Tasks.
    * Filter string should be of the format State=TaskStatus.State e.g.
@@ -67,13 +40,10 @@ public interface ListTasksRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Task filter, null filter matches all Tasks.
    * Filter string should be of the format State=TaskStatus.State e.g.
@@ -81,46 +51,38 @@ public interface ListTasksRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token.
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token.
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java similarity index 71% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java index 9247c0ba1925..70de69429bba 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto @@ -20,58 +5,52 @@ package com.google.cloud.batch.v1; /** - * - * *
  * ListTasks Response.
  * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.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_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTasksResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListTasksResponse_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListTasksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.ListTasksResponse.class, - com.google.cloud.batch.v1.ListTasksResponse.Builder.class); + com.google.cloud.batch.v1.ListTasksResponse.class, com.google.cloud.batch.v1.ListTasksResponse.Builder.class); } public static final int TASKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List tasks_; /** - * - * *
    * Tasks.
    * 
@@ -83,8 +62,6 @@ public java.util.List getTasksList() { return tasks_; } /** - * - * *
    * Tasks.
    * 
@@ -92,12 +69,11 @@ public java.util.List getTasksList() { * repeated .google.cloud.batch.v1.Task tasks = 1; */ @java.lang.Override - public java.util.List getTasksOrBuilderList() { + public java.util.List + getTasksOrBuilderList() { return tasks_; } /** - * - * *
    * Tasks.
    * 
@@ -109,8 +85,6 @@ public int getTasksCount() { return tasks_.size(); } /** - * - * *
    * Tasks.
    * 
@@ -122,8 +96,6 @@ public com.google.cloud.batch.v1.Task getTasks(int index) { return tasks_.get(index); } /** - * - * *
    * Tasks.
    * 
@@ -131,23 +103,20 @@ public com.google.cloud.batch.v1.Task getTasks(int index) { * repeated .google.cloud.batch.v1.Task tasks = 1; */ @java.lang.Override - public com.google.cloud.batch.v1.TaskOrBuilder getTasksOrBuilder(int index) { + public com.google.cloud.batch.v1.TaskOrBuilder getTasksOrBuilder( + int index) { return tasks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,29 +125,29 @@ 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; } } /** - * - * *
    * Next page token.
    * 
* * 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 { @@ -187,47 +156,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -235,23 +195,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +220,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 < tasks_.size(); i++) { output.writeMessage(1, tasks_.get(i)); } @@ -283,7 +241,8 @@ 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_); @@ -304,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.batch.v1.ListTasksResponse)) { return super.equals(obj); } - com.google.cloud.batch.v1.ListTasksResponse other = - (com.google.cloud.batch.v1.ListTasksResponse) obj; + com.google.cloud.batch.v1.ListTasksResponse other = (com.google.cloud.batch.v1.ListTasksResponse) obj; - if (!getTasksList().equals(other.getTasksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getTasksList() + .equals(other.getTasksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -341,136 +302,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.ListTasksResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.ListTasksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.ListTasksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.ListTasksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.ListTasksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.ListTasksResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.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.batch.v1.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.batch.v1.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.batch.v1.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; } /** - * - * *
    * ListTasks Response.
    * 
* * Protobuf type {@code google.cloud.batch.v1.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.batch.v1.ListTasksResponse) com.google.cloud.batch.v1.ListTasksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListTasksResponse_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListTasksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.ListTasksResponse.class, - com.google.cloud.batch.v1.ListTasksResponse.Builder.class); + com.google.cloud.batch.v1.ListTasksResponse.class, com.google.cloud.batch.v1.ListTasksResponse.Builder.class); } // Construct using com.google.cloud.batch.v1.ListTasksResponse.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(); @@ -483,14 +440,15 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_ListTasksResponse_descriptor; } @java.lang.Override @@ -509,12 +467,9 @@ public com.google.cloud.batch.v1.ListTasksResponse build() { @java.lang.Override public com.google.cloud.batch.v1.ListTasksResponse buildPartial() { - com.google.cloud.batch.v1.ListTasksResponse result = - new com.google.cloud.batch.v1.ListTasksResponse(this); + com.google.cloud.batch.v1.ListTasksResponse result = new com.google.cloud.batch.v1.ListTasksResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -546,39 +501,38 @@ private void buildPartial0(com.google.cloud.batch.v1.ListTasksResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.ListTasksResponse) { - return mergeFrom((com.google.cloud.batch.v1.ListTasksResponse) other); + return mergeFrom((com.google.cloud.batch.v1.ListTasksResponse)other); } else { super.mergeFrom(other); return this; @@ -605,10 +559,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.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_); } @@ -655,38 +608,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.batch.v1.Task m = - input.readMessage(com.google.cloud.batch.v1.Task.parser(), extensionRegistry); - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(m); - } else { - tasksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.batch.v1.Task m = + input.readMessage( + com.google.cloud.batch.v1.Task.parser(), + extensionRegistry); + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(m); + } else { + tasksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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) { @@ -696,28 +647,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List tasks_ = - java.util.Collections.emptyList(); - + 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.batch.v1.Task, - com.google.cloud.batch.v1.Task.Builder, - com.google.cloud.batch.v1.TaskOrBuilder> - tasksBuilder_; + com.google.cloud.batch.v1.Task, com.google.cloud.batch.v1.Task.Builder, com.google.cloud.batch.v1.TaskOrBuilder> tasksBuilder_; /** - * - * *
      * Tasks.
      * 
@@ -732,8 +676,6 @@ public java.util.List getTasksList() { } } /** - * - * *
      * Tasks.
      * 
@@ -748,8 +690,6 @@ public int getTasksCount() { } } /** - * - * *
      * Tasks.
      * 
@@ -764,15 +704,14 @@ public com.google.cloud.batch.v1.Task getTasks(int index) { } } /** - * - * *
      * Tasks.
      * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - public Builder setTasks(int index, com.google.cloud.batch.v1.Task value) { + public Builder setTasks( + int index, com.google.cloud.batch.v1.Task value) { if (tasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -786,15 +725,14 @@ public Builder setTasks(int index, com.google.cloud.batch.v1.Task value) { return this; } /** - * - * *
      * Tasks.
      * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - public Builder setTasks(int index, com.google.cloud.batch.v1.Task.Builder builderForValue) { + public Builder setTasks( + int index, com.google.cloud.batch.v1.Task.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.set(index, builderForValue.build()); @@ -805,8 +743,6 @@ public Builder setTasks(int index, com.google.cloud.batch.v1.Task.Builder builde return this; } /** - * - * *
      * Tasks.
      * 
@@ -827,15 +763,14 @@ public Builder addTasks(com.google.cloud.batch.v1.Task value) { return this; } /** - * - * *
      * Tasks.
      * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - public Builder addTasks(int index, com.google.cloud.batch.v1.Task value) { + public Builder addTasks( + int index, com.google.cloud.batch.v1.Task value) { if (tasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -849,15 +784,14 @@ public Builder addTasks(int index, com.google.cloud.batch.v1.Task value) { return this; } /** - * - * *
      * Tasks.
      * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - public Builder addTasks(com.google.cloud.batch.v1.Task.Builder builderForValue) { + public Builder addTasks( + com.google.cloud.batch.v1.Task.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.add(builderForValue.build()); @@ -868,15 +802,14 @@ public Builder addTasks(com.google.cloud.batch.v1.Task.Builder builderForValue) return this; } /** - * - * *
      * Tasks.
      * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - public Builder addTasks(int index, com.google.cloud.batch.v1.Task.Builder builderForValue) { + public Builder addTasks( + int index, com.google.cloud.batch.v1.Task.Builder builderForValue) { if (tasksBuilder_ == null) { ensureTasksIsMutable(); tasks_.add(index, builderForValue.build()); @@ -887,8 +820,6 @@ public Builder addTasks(int index, com.google.cloud.batch.v1.Task.Builder builde return this; } /** - * - * *
      * Tasks.
      * 
@@ -899,7 +830,8 @@ 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); @@ -907,8 +839,6 @@ public Builder addAllTasks( return this; } /** - * - * *
      * Tasks.
      * 
@@ -926,8 +856,6 @@ public Builder clearTasks() { return this; } /** - * - * *
      * Tasks.
      * 
@@ -945,44 +873,39 @@ public Builder removeTasks(int index) { return this; } /** - * - * *
      * Tasks.
      * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - public com.google.cloud.batch.v1.Task.Builder getTasksBuilder(int index) { + public com.google.cloud.batch.v1.Task.Builder getTasksBuilder( + int index) { return getTasksFieldBuilder().getBuilder(index); } /** - * - * *
      * Tasks.
      * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - public com.google.cloud.batch.v1.TaskOrBuilder getTasksOrBuilder(int index) { + public com.google.cloud.batch.v1.TaskOrBuilder getTasksOrBuilder( + int index) { if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { + return tasks_.get(index); } else { return tasksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Tasks.
      * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - public java.util.List - getTasksOrBuilderList() { + public java.util.List + getTasksOrBuilderList() { if (tasksBuilder_ != null) { return tasksBuilder_.getMessageOrBuilderList(); } else { @@ -990,8 +913,6 @@ public com.google.cloud.batch.v1.TaskOrBuilder getTasksOrBuilder(int index) { } } /** - * - * *
      * Tasks.
      * 
@@ -999,46 +920,42 @@ public com.google.cloud.batch.v1.TaskOrBuilder getTasksOrBuilder(int index) { * repeated .google.cloud.batch.v1.Task tasks = 1; */ public com.google.cloud.batch.v1.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder(com.google.cloud.batch.v1.Task.getDefaultInstance()); + return getTasksFieldBuilder().addBuilder( + com.google.cloud.batch.v1.Task.getDefaultInstance()); } /** - * - * *
      * Tasks.
      * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - public com.google.cloud.batch.v1.Task.Builder addTasksBuilder(int index) { - return getTasksFieldBuilder() - .addBuilder(index, com.google.cloud.batch.v1.Task.getDefaultInstance()); + public com.google.cloud.batch.v1.Task.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, com.google.cloud.batch.v1.Task.getDefaultInstance()); } /** - * - * *
      * Tasks.
      * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - public java.util.List getTasksBuilderList() { + public java.util.List + getTasksBuilderList() { return getTasksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.Task, - com.google.cloud.batch.v1.Task.Builder, - com.google.cloud.batch.v1.TaskOrBuilder> + com.google.cloud.batch.v1.Task, com.google.cloud.batch.v1.Task.Builder, com.google.cloud.batch.v1.TaskOrBuilder> getTasksFieldBuilder() { if (tasksBuilder_ == null) { - tasksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.batch.v1.Task, - com.google.cloud.batch.v1.Task.Builder, - com.google.cloud.batch.v1.TaskOrBuilder>( - tasks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.batch.v1.Task, com.google.cloud.batch.v1.Task.Builder, com.google.cloud.batch.v1.TaskOrBuilder>( + tasks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); tasks_ = null; } return tasksBuilder_; @@ -1046,20 +963,18 @@ public java.util.List getTasksBuilderLis private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Next page token.
      * 
* * 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; @@ -1068,21 +983,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Next page token.
      * 
* * 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 { @@ -1090,35 +1004,28 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Next page token.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1128,21 +1035,17 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Next page token.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1152,7 +1055,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1160,43 +1062,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1204,37 +1098,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1242,21 +1130,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1264,58 +1148,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1323,9 +1199,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1335,12 +1211,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.ListTasksResponse) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.ListTasksResponse) private static final com.google.cloud.batch.v1.ListTasksResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.ListTasksResponse(); } @@ -1349,27 +1225,27 @@ public static com.google.cloud.batch.v1.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; @@ -1384,4 +1260,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.ListTasksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java similarity index 66% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java index c51aa855cd19..5ae758743099 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface ListTasksResponseOrBuilder - extends +public interface ListTasksResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.ListTasksResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Tasks.
    * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - java.util.List getTasksList(); + java.util.List + getTasksList(); /** - * - * *
    * Tasks.
    * 
@@ -45,8 +26,6 @@ public interface ListTasksResponseOrBuilder */ com.google.cloud.batch.v1.Task getTasks(int index); /** - * - * *
    * Tasks.
    * 
@@ -55,99 +34,82 @@ public interface ListTasksResponseOrBuilder */ int getTasksCount(); /** - * - * *
    * Tasks.
    * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - java.util.List getTasksOrBuilderList(); + java.util.List + getTasksOrBuilderList(); /** - * - * *
    * Tasks.
    * 
* * repeated .google.cloud.batch.v1.Task tasks = 1; */ - com.google.cloud.batch.v1.TaskOrBuilder getTasksOrBuilder(int index); + com.google.cloud.batch.v1.TaskOrBuilder getTasksOrBuilder( + int index); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java similarity index 100% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java similarity index 68% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java index 99f1f674340b..2f77e167b519 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto @@ -20,8 +5,6 @@ package com.google.cloud.batch.v1; /** - * - * *
  * LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
  * preserved.
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.batch.v1.LogsPolicy}
  */
-public final class LogsPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LogsPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.LogsPolicy)
     LogsPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LogsPolicy.newBuilder() to construct.
   private LogsPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LogsPolicy() {
     destination_ = 0;
     logsPath_ = "";
@@ -46,38 +28,34 @@ private LogsPolicy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogsPolicy();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.batch.v1.JobProto
-        .internal_static_google_cloud_batch_v1_LogsPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_LogsPolicy_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.batch.v1.JobProto
-        .internal_static_google_cloud_batch_v1_LogsPolicy_fieldAccessorTable
+    return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_LogsPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.batch.v1.LogsPolicy.class,
-            com.google.cloud.batch.v1.LogsPolicy.Builder.class);
+            com.google.cloud.batch.v1.LogsPolicy.class, com.google.cloud.batch.v1.LogsPolicy.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The destination (if any) for logs.
    * 
* * Protobuf enum {@code google.cloud.batch.v1.LogsPolicy.Destination} */ - public enum Destination implements com.google.protobuf.ProtocolMessageEnum { + public enum Destination + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Logs are not preserved.
      * 
@@ -86,8 +64,6 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { */ DESTINATION_UNSPECIFIED(0), /** - * - * *
      * Logs are streamed to Cloud Logging.
      * 
@@ -96,8 +72,6 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { */ CLOUD_LOGGING(1), /** - * - * *
      * Logs are saved to a file path.
      * 
@@ -109,8 +83,6 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Logs are not preserved.
      * 
@@ -119,8 +91,6 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DESTINATION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Logs are streamed to Cloud Logging.
      * 
@@ -129,8 +99,6 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLOUD_LOGGING_VALUE = 1; /** - * - * *
      * Logs are saved to a file path.
      * 
@@ -139,6 +107,7 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PATH_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -163,49 +132,49 @@ public static Destination valueOf(int value) { */ public static Destination forNumber(int value) { switch (value) { - case 0: - return DESTINATION_UNSPECIFIED; - case 1: - return CLOUD_LOGGING; - case 2: - return PATH; - default: - return null; + case 0: return DESTINATION_UNSPECIFIED; + case 1: return CLOUD_LOGGING; + case 2: return PATH; + 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< + Destination> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Destination findValueByNumber(int number) { + return Destination.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Destination findValueByNumber(int number) { - return Destination.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.batch.v1.LogsPolicy.getDescriptor().getEnumTypes().get(0); } private static final Destination[] VALUES = values(); - public static Destination valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Destination 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; @@ -222,14 +191,11 @@ private Destination(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.batch.v1.LogsPolicy.Destination) } - public interface CloudLoggingOptionOrBuilder - extends + public interface CloudLoggingOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.LogsPolicy.CloudLoggingOption) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. Set this flag to true to change the [monitored resource
      * type](https://cloud.google.com/monitoring/api/resources) for
@@ -241,16 +207,12 @@ public interface CloudLoggingOptionOrBuilder
      * type.
      * 
* - * bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The useGenericTaskMonitoredResource. */ boolean getUseGenericTaskMonitoredResource(); } /** - * - * *
    * `CloudLoggingOption` contains additional settings for Cloud Logging logs
    * generated by Batch job.
@@ -258,44 +220,41 @@ public interface CloudLoggingOptionOrBuilder
    *
    * Protobuf type {@code google.cloud.batch.v1.LogsPolicy.CloudLoggingOption}
    */
-  public static final class CloudLoggingOption extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class CloudLoggingOption extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.LogsPolicy.CloudLoggingOption)
       CloudLoggingOptionOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use CloudLoggingOption.newBuilder() to construct.
     private CloudLoggingOption(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private CloudLoggingOption() {}
+    private CloudLoggingOption() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new CloudLoggingOption();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_fieldAccessorTable
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.class,
-              com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder.class);
+              com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.class, com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder.class);
     }
 
     public static final int USE_GENERIC_TASK_MONITORED_RESOURCE_FIELD_NUMBER = 1;
     private boolean useGenericTaskMonitoredResource_ = false;
     /**
-     *
-     *
      * 
      * Optional. Set this flag to true to change the [monitored resource
      * type](https://cloud.google.com/monitoring/api/resources) for
@@ -307,9 +266,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * type.
      * 
* - * bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The useGenericTaskMonitoredResource. */ @java.lang.Override @@ -318,7 +275,6 @@ public boolean getUseGenericTaskMonitoredResource() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,7 +286,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 (useGenericTaskMonitoredResource_ != false) { output.writeBool(1, useGenericTaskMonitoredResource_); } @@ -344,9 +301,8 @@ public int getSerializedSize() { size = 0; if (useGenericTaskMonitoredResource_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 1, useGenericTaskMonitoredResource_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, useGenericTaskMonitoredResource_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -356,16 +312,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.batch.v1.LogsPolicy.CloudLoggingOption)) { return super.equals(obj); } - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption other = - (com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption) obj; + com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption other = (com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption) obj; - if (getUseGenericTaskMonitoredResource() != other.getUseGenericTaskMonitoredResource()) - return false; + if (getUseGenericTaskMonitoredResource() + != other.getUseGenericTaskMonitoredResource()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -378,103 +333,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + USE_GENERIC_TASK_MONITORED_RESOURCE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getUseGenericTaskMonitoredResource()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseGenericTaskMonitoredResource()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption prototype) { + public static Builder newBuilder(com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -484,8 +433,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * `CloudLoggingOption` contains additional settings for Cloud Logging logs
      * generated by Batch job.
@@ -493,33 +440,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.batch.v1.LogsPolicy.CloudLoggingOption}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.LogsPolicy.CloudLoggingOption)
         com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_fieldAccessorTable
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.class,
-                com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder.class);
+                com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.class, com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder.class);
       }
 
       // Construct using com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.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();
@@ -529,9 +476,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.batch.v1.JobProto
-            .internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_LogsPolicy_CloudLoggingOption_descriptor;
       }
 
       @java.lang.Override
@@ -550,11 +497,8 @@ public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption build() {
 
       @java.lang.Override
       public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption buildPartial() {
-        com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption result =
-            new com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption result = new com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -570,41 +514,38 @@ private void buildPartial0(com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOpti
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption) {
-          return mergeFrom((com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption) other);
+          return mergeFrom((com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -612,8 +553,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption other) {
-        if (other == com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance()) return this;
         if (other.getUseGenericTaskMonitoredResource() != false) {
           setUseGenericTaskMonitoredResource(other.getUseGenericTaskMonitoredResource());
         }
@@ -643,19 +583,17 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8:
-                {
-                  useGenericTaskMonitoredResource_ = input.readBool();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 8: {
+                useGenericTaskMonitoredResource_ = input.readBool();
+                bitField0_ |= 0x00000001;
+                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) {
@@ -665,13 +603,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private boolean useGenericTaskMonitoredResource_;
+      private boolean useGenericTaskMonitoredResource_ ;
       /**
-       *
-       *
        * 
        * Optional. Set this flag to true to change the [monitored resource
        * type](https://cloud.google.com/monitoring/api/resources) for
@@ -683,10 +618,7 @@ public Builder mergeFrom(
        * type.
        * 
* - * - * bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The useGenericTaskMonitoredResource. */ @java.lang.Override @@ -694,8 +626,6 @@ public boolean getUseGenericTaskMonitoredResource() { return useGenericTaskMonitoredResource_; } /** - * - * *
        * Optional. Set this flag to true to change the [monitored resource
        * type](https://cloud.google.com/monitoring/api/resources) for
@@ -707,10 +637,7 @@ public boolean getUseGenericTaskMonitoredResource() {
        * type.
        * 
* - * - * bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The useGenericTaskMonitoredResource to set. * @return This builder for chaining. */ @@ -722,8 +649,6 @@ public Builder setUseGenericTaskMonitoredResource(boolean value) { return this; } /** - * - * *
        * Optional. Set this flag to true to change the [monitored resource
        * type](https://cloud.google.com/monitoring/api/resources) for
@@ -735,10 +660,7 @@ public Builder setUseGenericTaskMonitoredResource(boolean value) {
        * type.
        * 
* - * - * bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearUseGenericTaskMonitoredResource() { @@ -747,7 +669,6 @@ public Builder clearUseGenericTaskMonitoredResource() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -760,12 +681,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.LogsPolicy.CloudLoggingOption) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.LogsPolicy.CloudLoggingOption) private static final com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption(); } @@ -774,28 +695,27 @@ public static com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudLoggingOption 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 CloudLoggingOption 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; @@ -810,51 +730,40 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int DESTINATION_FIELD_NUMBER = 1; private int destination_ = 0; /** - * - * *
    * Where logs should be saved.
    * 
* * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; - * * @return The enum numeric value on the wire for destination. */ - @java.lang.Override - public int getDestinationValue() { + @java.lang.Override public int getDestinationValue() { return destination_; } /** - * - * *
    * Where logs should be saved.
    * 
* * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; - * * @return The destination. */ - @java.lang.Override - public com.google.cloud.batch.v1.LogsPolicy.Destination getDestination() { - com.google.cloud.batch.v1.LogsPolicy.Destination result = - com.google.cloud.batch.v1.LogsPolicy.Destination.forNumber(destination_); + @java.lang.Override public com.google.cloud.batch.v1.LogsPolicy.Destination getDestination() { + com.google.cloud.batch.v1.LogsPolicy.Destination result = com.google.cloud.batch.v1.LogsPolicy.Destination.forNumber(destination_); return result == null ? com.google.cloud.batch.v1.LogsPolicy.Destination.UNRECOGNIZED : result; } public static final int LOGS_PATH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object logsPath_ = ""; /** - * - * *
    * The path to which logs are saved when the destination = PATH. This can be a
    * local file path on the VM, or under the mount point of a Persistent Disk or
@@ -862,7 +771,6 @@ public com.google.cloud.batch.v1.LogsPolicy.Destination getDestination() {
    * 
* * string logs_path = 2; - * * @return The logsPath. */ @java.lang.Override @@ -871,15 +779,14 @@ public java.lang.String getLogsPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logsPath_ = s; return s; } } /** - * - * *
    * The path to which logs are saved when the destination = PATH. This can be a
    * local file path on the VM, or under the mount point of a Persistent Disk or
@@ -887,15 +794,16 @@ public java.lang.String getLogsPath() {
    * 
* * string logs_path = 2; - * * @return The bytes for logsPath. */ @java.lang.Override - public com.google.protobuf.ByteString getLogsPathBytes() { + public com.google.protobuf.ByteString + getLogsPathBytes() { java.lang.Object ref = logsPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logsPath_ = b; return b; } else { @@ -906,17 +814,12 @@ public com.google.protobuf.ByteString getLogsPathBytes() { public static final int CLOUD_LOGGING_OPTION_FIELD_NUMBER = 3; private com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloudLoggingOption_; /** - * - * *
    * Optional. Additional settings for Cloud Logging. It will only take effect
    * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
    * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the cloudLoggingOption field is set. */ @java.lang.Override @@ -924,47 +827,32 @@ public boolean hasCloudLoggingOption() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Optional. Additional settings for Cloud Logging. It will only take effect
    * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
    * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The cloudLoggingOption. */ @java.lang.Override public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption getCloudLoggingOption() { - return cloudLoggingOption_ == null - ? com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance() - : cloudLoggingOption_; + return cloudLoggingOption_ == null ? com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance() : cloudLoggingOption_; } /** - * - * *
    * Optional. Additional settings for Cloud Logging. It will only take effect
    * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
    * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder - getCloudLoggingOptionOrBuilder() { - return cloudLoggingOption_ == null - ? com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance() - : cloudLoggingOption_; + public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder getCloudLoggingOptionOrBuilder() { + return cloudLoggingOption_ == null ? com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance() : cloudLoggingOption_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -976,9 +864,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (destination_ - != com.google.cloud.batch.v1.LogsPolicy.Destination.DESTINATION_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (destination_ != com.google.cloud.batch.v1.LogsPolicy.Destination.DESTINATION_UNSPECIFIED.getNumber()) { output.writeEnum(1, destination_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsPath_)) { @@ -996,15 +884,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (destination_ - != com.google.cloud.batch.v1.LogsPolicy.Destination.DESTINATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, destination_); + if (destination_ != com.google.cloud.batch.v1.LogsPolicy.Destination.DESTINATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, destination_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, logsPath_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCloudLoggingOption()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCloudLoggingOption()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1014,7 +903,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.batch.v1.LogsPolicy)) { return super.equals(obj); @@ -1022,10 +911,12 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.batch.v1.LogsPolicy other = (com.google.cloud.batch.v1.LogsPolicy) obj; if (destination_ != other.destination_) return false; - if (!getLogsPath().equals(other.getLogsPath())) return false; + if (!getLogsPath() + .equals(other.getLogsPath())) return false; if (hasCloudLoggingOption() != other.hasCloudLoggingOption()) return false; if (hasCloudLoggingOption()) { - if (!getCloudLoggingOption().equals(other.getCloudLoggingOption())) return false; + if (!getCloudLoggingOption() + .equals(other.getCloudLoggingOption())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1051,103 +942,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.LogsPolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.LogsPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LogsPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.LogsPolicy parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.batch.v1.LogsPolicy parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LogsPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.LogsPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.LogsPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.LogsPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.LogsPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.batch.v1.LogsPolicy 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.batch.v1.LogsPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.LogsPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.LogsPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.LogsPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
    * preserved.
@@ -1155,23 +1042,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.batch.v1.LogsPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.LogsPolicy)
       com.google.cloud.batch.v1.LogsPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_LogsPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_LogsPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_LogsPolicy_fieldAccessorTable
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_LogsPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.batch.v1.LogsPolicy.class,
-              com.google.cloud.batch.v1.LogsPolicy.Builder.class);
+              com.google.cloud.batch.v1.LogsPolicy.class, com.google.cloud.batch.v1.LogsPolicy.Builder.class);
     }
 
     // Construct using com.google.cloud.batch.v1.LogsPolicy.newBuilder()
@@ -1179,17 +1064,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCloudLoggingOptionFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1205,9 +1090,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.batch.v1.JobProto
-          .internal_static_google_cloud_batch_v1_LogsPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_LogsPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -1227,9 +1112,7 @@ public com.google.cloud.batch.v1.LogsPolicy build() {
     @java.lang.Override
     public com.google.cloud.batch.v1.LogsPolicy buildPartial() {
       com.google.cloud.batch.v1.LogsPolicy result = new com.google.cloud.batch.v1.LogsPolicy(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1244,10 +1127,9 @@ private void buildPartial0(com.google.cloud.batch.v1.LogsPolicy result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.cloudLoggingOption_ =
-            cloudLoggingOptionBuilder_ == null
-                ? cloudLoggingOption_
-                : cloudLoggingOptionBuilder_.build();
+        result.cloudLoggingOption_ = cloudLoggingOptionBuilder_ == null
+            ? cloudLoggingOption_
+            : cloudLoggingOptionBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -1257,39 +1139,38 @@ private void buildPartial0(com.google.cloud.batch.v1.LogsPolicy result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.batch.v1.LogsPolicy) {
-        return mergeFrom((com.google.cloud.batch.v1.LogsPolicy) other);
+        return mergeFrom((com.google.cloud.batch.v1.LogsPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1335,32 +1216,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                destination_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                logsPath_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(
-                    getCloudLoggingOptionFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              destination_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              logsPath_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getCloudLoggingOptionFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              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) {
@@ -1370,34 +1248,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int destination_ = 0;
     /**
-     *
-     *
      * 
      * Where logs should be saved.
      * 
* * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; - * * @return The enum numeric value on the wire for destination. */ - @java.lang.Override - public int getDestinationValue() { + @java.lang.Override public int getDestinationValue() { return destination_; } /** - * - * *
      * Where logs should be saved.
      * 
* * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; - * * @param value The enum numeric value on the wire for destination to set. * @return This builder for chaining. */ @@ -1408,33 +1278,24 @@ public Builder setDestinationValue(int value) { return this; } /** - * - * *
      * Where logs should be saved.
      * 
* * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; - * * @return The destination. */ @java.lang.Override public com.google.cloud.batch.v1.LogsPolicy.Destination getDestination() { - com.google.cloud.batch.v1.LogsPolicy.Destination result = - com.google.cloud.batch.v1.LogsPolicy.Destination.forNumber(destination_); - return result == null - ? com.google.cloud.batch.v1.LogsPolicy.Destination.UNRECOGNIZED - : result; + com.google.cloud.batch.v1.LogsPolicy.Destination result = com.google.cloud.batch.v1.LogsPolicy.Destination.forNumber(destination_); + return result == null ? com.google.cloud.batch.v1.LogsPolicy.Destination.UNRECOGNIZED : result; } /** - * - * *
      * Where logs should be saved.
      * 
* * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; - * * @param value The destination to set. * @return This builder for chaining. */ @@ -1448,14 +1309,11 @@ public Builder setDestination(com.google.cloud.batch.v1.LogsPolicy.Destination v return this; } /** - * - * *
      * Where logs should be saved.
      * 
* * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; - * * @return This builder for chaining. */ public Builder clearDestination() { @@ -1467,8 +1325,6 @@ public Builder clearDestination() { private java.lang.Object logsPath_ = ""; /** - * - * *
      * The path to which logs are saved when the destination = PATH. This can be a
      * local file path on the VM, or under the mount point of a Persistent Disk or
@@ -1476,13 +1332,13 @@ public Builder clearDestination() {
      * 
* * string logs_path = 2; - * * @return The logsPath. */ public java.lang.String getLogsPath() { java.lang.Object ref = logsPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logsPath_ = s; return s; @@ -1491,8 +1347,6 @@ public java.lang.String getLogsPath() { } } /** - * - * *
      * The path to which logs are saved when the destination = PATH. This can be a
      * local file path on the VM, or under the mount point of a Persistent Disk or
@@ -1500,14 +1354,15 @@ public java.lang.String getLogsPath() {
      * 
* * string logs_path = 2; - * * @return The bytes for logsPath. */ - public com.google.protobuf.ByteString getLogsPathBytes() { + public com.google.protobuf.ByteString + getLogsPathBytes() { java.lang.Object ref = logsPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logsPath_ = b; return b; } else { @@ -1515,8 +1370,6 @@ public com.google.protobuf.ByteString getLogsPathBytes() { } } /** - * - * *
      * The path to which logs are saved when the destination = PATH. This can be a
      * local file path on the VM, or under the mount point of a Persistent Disk or
@@ -1524,22 +1377,18 @@ public com.google.protobuf.ByteString getLogsPathBytes() {
      * 
* * string logs_path = 2; - * * @param value The logsPath to set. * @return This builder for chaining. */ - public Builder setLogsPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogsPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } logsPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The path to which logs are saved when the destination = PATH. This can be a
      * local file path on the VM, or under the mount point of a Persistent Disk or
@@ -1547,7 +1396,6 @@ public Builder setLogsPath(java.lang.String value) {
      * 
* * string logs_path = 2; - * * @return This builder for chaining. */ public Builder clearLogsPath() { @@ -1557,8 +1405,6 @@ public Builder clearLogsPath() { return this; } /** - * - * *
      * The path to which logs are saved when the destination = PATH. This can be a
      * local file path on the VM, or under the mount point of a Persistent Disk or
@@ -1566,14 +1412,12 @@ public Builder clearLogsPath() {
      * 
* * string logs_path = 2; - * * @param value The bytes for logsPath to set. * @return This builder for chaining. */ - public Builder setLogsPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogsPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logsPath_ = value; bitField0_ |= 0x00000002; @@ -1583,64 +1427,44 @@ public Builder setLogsPathBytes(com.google.protobuf.ByteString value) { private com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloudLoggingOption_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption, - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder, - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder> - cloudLoggingOptionBuilder_; + com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption, com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder, com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder> cloudLoggingOptionBuilder_; /** - * - * *
      * Optional. Additional settings for Cloud Logging. It will only take effect
      * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the cloudLoggingOption field is set. */ public boolean hasCloudLoggingOption() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Additional settings for Cloud Logging. It will only take effect
      * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The cloudLoggingOption. */ public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption getCloudLoggingOption() { if (cloudLoggingOptionBuilder_ == null) { - return cloudLoggingOption_ == null - ? com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance() - : cloudLoggingOption_; + return cloudLoggingOption_ == null ? com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance() : cloudLoggingOption_; } else { return cloudLoggingOptionBuilder_.getMessage(); } } /** - * - * *
      * Optional. Additional settings for Cloud Logging. It will only take effect
      * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCloudLoggingOption( - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption value) { + public Builder setCloudLoggingOption(com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption value) { if (cloudLoggingOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1654,16 +1478,12 @@ public Builder setCloudLoggingOption( return this; } /** - * - * *
      * Optional. Additional settings for Cloud Logging. It will only take effect
      * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCloudLoggingOption( com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder builderForValue) { @@ -1677,24 +1497,18 @@ public Builder setCloudLoggingOption( return this; } /** - * - * *
      * Optional. Additional settings for Cloud Logging. It will only take effect
      * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeCloudLoggingOption( - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption value) { + public Builder mergeCloudLoggingOption(com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption value) { if (cloudLoggingOptionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cloudLoggingOption_ != null - && cloudLoggingOption_ - != com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + cloudLoggingOption_ != null && + cloudLoggingOption_ != com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance()) { getCloudLoggingOptionBuilder().mergeFrom(value); } else { cloudLoggingOption_ = value; @@ -1709,16 +1523,12 @@ public Builder mergeCloudLoggingOption( return this; } /** - * - * *
      * Optional. Additional settings for Cloud Logging. It will only take effect
      * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCloudLoggingOption() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1731,76 +1541,58 @@ public Builder clearCloudLoggingOption() { return this; } /** - * - * *
      * Optional. Additional settings for Cloud Logging. It will only take effect
      * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder - getCloudLoggingOptionBuilder() { + public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder getCloudLoggingOptionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCloudLoggingOptionFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Additional settings for Cloud Logging. It will only take effect
      * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder - getCloudLoggingOptionOrBuilder() { + public com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder getCloudLoggingOptionOrBuilder() { if (cloudLoggingOptionBuilder_ != null) { return cloudLoggingOptionBuilder_.getMessageOrBuilder(); } else { - return cloudLoggingOption_ == null - ? com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance() - : cloudLoggingOption_; + return cloudLoggingOption_ == null ? + com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.getDefaultInstance() : cloudLoggingOption_; } } /** - * - * *
      * Optional. Additional settings for Cloud Logging. It will only take effect
      * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
      * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption, - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder, - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder> + com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption, com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder, com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder> getCloudLoggingOptionFieldBuilder() { if (cloudLoggingOptionBuilder_ == null) { - cloudLoggingOptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption, - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder, - com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder>( - getCloudLoggingOption(), getParentForChildren(), isClean()); + cloudLoggingOptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption, com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption.Builder, com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder>( + getCloudLoggingOption(), + getParentForChildren(), + isClean()); cloudLoggingOption_ = null; } return cloudLoggingOptionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1810,12 +1602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.LogsPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.LogsPolicy) private static final com.google.cloud.batch.v1.LogsPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.LogsPolicy(); } @@ -1824,27 +1616,27 @@ public static com.google.cloud.batch.v1.LogsPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogsPolicy 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 LogsPolicy 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; @@ -1859,4 +1651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.LogsPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java similarity index 65% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java index 4f406880cc03..401defad59fb 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface LogsPolicyOrBuilder - extends +public interface LogsPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.LogsPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Where logs should be saved.
    * 
* * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; - * * @return The enum numeric value on the wire for destination. */ int getDestinationValue(); /** - * - * *
    * Where logs should be saved.
    * 
* * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; - * * @return The destination. */ com.google.cloud.batch.v1.LogsPolicy.Destination getDestination(); /** - * - * *
    * The path to which logs are saved when the destination = PATH. This can be a
    * local file path on the VM, or under the mount point of a Persistent Disk or
@@ -59,13 +35,10 @@ public interface LogsPolicyOrBuilder
    * 
* * string logs_path = 2; - * * @return The logsPath. */ java.lang.String getLogsPath(); /** - * - * *
    * The path to which logs are saved when the destination = PATH. This can be a
    * local file path on the VM, or under the mount point of a Persistent Disk or
@@ -73,52 +46,38 @@ public interface LogsPolicyOrBuilder
    * 
* * string logs_path = 2; - * * @return The bytes for logsPath. */ - com.google.protobuf.ByteString getLogsPathBytes(); + com.google.protobuf.ByteString + getLogsPathBytes(); /** - * - * *
    * Optional. Additional settings for Cloud Logging. It will only take effect
    * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
    * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the cloudLoggingOption field is set. */ boolean hasCloudLoggingOption(); /** - * - * *
    * Optional. Additional settings for Cloud Logging. It will only take effect
    * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
    * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The cloudLoggingOption. */ com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOption getCloudLoggingOption(); /** - * - * *
    * Optional. Additional settings for Cloud Logging. It will only take effect
    * when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`.
    * 
* - * - * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.batch.v1.LogsPolicy.CloudLoggingOption cloud_logging_option = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.batch.v1.LogsPolicy.CloudLoggingOptionOrBuilder getCloudLoggingOptionOrBuilder(); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java similarity index 67% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java index 79f7e24b9615..8887b7e8a5f1 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/volume.proto @@ -20,24 +5,21 @@ package com.google.cloud.batch.v1; /** - * - * *
  * Represents an NFS volume.
  * 
* * Protobuf type {@code google.cloud.batch.v1.NFS} */ -public final class NFS extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NFS extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.NFS) NFSOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NFS.newBuilder() to construct. private NFS(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NFS() { server_ = ""; remotePath_ = ""; @@ -45,37 +27,33 @@ private NFS() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NFS(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.VolumeProto - .internal_static_google_cloud_batch_v1_NFS_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.VolumeProto.internal_static_google_cloud_batch_v1_NFS_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.VolumeProto - .internal_static_google_cloud_batch_v1_NFS_fieldAccessorTable + return com.google.cloud.batch.v1.VolumeProto.internal_static_google_cloud_batch_v1_NFS_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.batch.v1.NFS.class, com.google.cloud.batch.v1.NFS.Builder.class); } public static final int SERVER_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object server_ = ""; /** - * - * *
    * The IP address of the NFS.
    * 
* * string server = 1; - * * @return The server. */ @java.lang.Override @@ -84,29 +62,29 @@ public java.lang.String getServer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); server_ = s; return s; } } /** - * - * *
    * The IP address of the NFS.
    * 
* * string server = 1; - * * @return The bytes for server. */ @java.lang.Override - public com.google.protobuf.ByteString getServerBytes() { + public com.google.protobuf.ByteString + getServerBytes() { java.lang.Object ref = server_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); server_ = b; return b; } else { @@ -115,18 +93,14 @@ public com.google.protobuf.ByteString getServerBytes() { } public static final int REMOTE_PATH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object remotePath_ = ""; /** - * - * *
    * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; - * * @return The remotePath. */ @java.lang.Override @@ -135,29 +109,29 @@ public java.lang.String getRemotePath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); remotePath_ = s; return s; } } /** - * - * *
    * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; - * * @return The bytes for remotePath. */ @java.lang.Override - public com.google.protobuf.ByteString getRemotePathBytes() { + public com.google.protobuf.ByteString + getRemotePathBytes() { java.lang.Object ref = remotePath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); remotePath_ = b; return b; } else { @@ -166,7 +140,6 @@ public com.google.protobuf.ByteString getRemotePathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(server_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, server_); } @@ -208,15 +182,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.batch.v1.NFS)) { return super.equals(obj); } com.google.cloud.batch.v1.NFS other = (com.google.cloud.batch.v1.NFS) obj; - if (!getServer().equals(other.getServer())) return false; - if (!getRemotePath().equals(other.getRemotePath())) return false; + if (!getServer() + .equals(other.getServer())) return false; + if (!getRemotePath() + .equals(other.getRemotePath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,134 +213,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.NFS parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.NFS parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.NFS parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.batch.v1.NFS parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.batch.v1.NFS parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.NFS parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.NFS parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.NFS parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.NFS parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.NFS parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.batch.v1.NFS 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.batch.v1.NFS parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.batch.v1.NFS parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.cloud.batch.v1.NFS 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.batch.v1.NFS parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.NFS prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 an NFS volume.
    * 
* * Protobuf type {@code google.cloud.batch.v1.NFS} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.NFS) com.google.cloud.batch.v1.NFSOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.VolumeProto - .internal_static_google_cloud_batch_v1_NFS_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.VolumeProto.internal_static_google_cloud_batch_v1_NFS_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.VolumeProto - .internal_static_google_cloud_batch_v1_NFS_fieldAccessorTable + return com.google.cloud.batch.v1.VolumeProto.internal_static_google_cloud_batch_v1_NFS_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.batch.v1.NFS.class, com.google.cloud.batch.v1.NFS.Builder.class); } // Construct using com.google.cloud.batch.v1.NFS.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(); @@ -375,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.VolumeProto - .internal_static_google_cloud_batch_v1_NFS_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.VolumeProto.internal_static_google_cloud_batch_v1_NFS_descriptor; } @java.lang.Override @@ -397,9 +371,7 @@ public com.google.cloud.batch.v1.NFS build() { @java.lang.Override public com.google.cloud.batch.v1.NFS buildPartial() { com.google.cloud.batch.v1.NFS result = new com.google.cloud.batch.v1.NFS(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -418,39 +390,38 @@ private void buildPartial0(com.google.cloud.batch.v1.NFS result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.NFS) { - return mergeFrom((com.google.cloud.batch.v1.NFS) other); + return mergeFrom((com.google.cloud.batch.v1.NFS)other); } else { super.mergeFrom(other); return this; @@ -495,25 +466,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - server_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - remotePath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + server_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + remotePath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -523,25 +491,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object server_ = ""; /** - * - * *
      * The IP address of the NFS.
      * 
* * string server = 1; - * * @return The server. */ public java.lang.String getServer() { java.lang.Object ref = server_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); server_ = s; return s; @@ -550,21 +515,20 @@ public java.lang.String getServer() { } } /** - * - * *
      * The IP address of the NFS.
      * 
* * string server = 1; - * * @return The bytes for server. */ - public com.google.protobuf.ByteString getServerBytes() { + public com.google.protobuf.ByteString + getServerBytes() { java.lang.Object ref = server_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); server_ = b; return b; } else { @@ -572,35 +536,28 @@ public com.google.protobuf.ByteString getServerBytes() { } } /** - * - * *
      * The IP address of the NFS.
      * 
* * string server = 1; - * * @param value The server to set. * @return This builder for chaining. */ - public Builder setServer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServer( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } server_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The IP address of the NFS.
      * 
* * string server = 1; - * * @return This builder for chaining. */ public Builder clearServer() { @@ -610,21 +567,17 @@ public Builder clearServer() { return this; } /** - * - * *
      * The IP address of the NFS.
      * 
* * string server = 1; - * * @param value The bytes for server to set. * @return This builder for chaining. */ - public Builder setServerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); server_ = value; bitField0_ |= 0x00000001; @@ -634,20 +587,18 @@ public Builder setServerBytes(com.google.protobuf.ByteString value) { private java.lang.Object remotePath_ = ""; /** - * - * *
      * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; - * * @return The remotePath. */ public java.lang.String getRemotePath() { java.lang.Object ref = remotePath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); remotePath_ = s; return s; @@ -656,21 +607,20 @@ public java.lang.String getRemotePath() { } } /** - * - * *
      * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; - * * @return The bytes for remotePath. */ - public com.google.protobuf.ByteString getRemotePathBytes() { + public com.google.protobuf.ByteString + getRemotePathBytes() { java.lang.Object ref = remotePath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); remotePath_ = b; return b; } else { @@ -678,35 +628,28 @@ public com.google.protobuf.ByteString getRemotePathBytes() { } } /** - * - * *
      * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; - * * @param value The remotePath to set. * @return This builder for chaining. */ - public Builder setRemotePath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRemotePath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } remotePath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; - * * @return This builder for chaining. */ public Builder clearRemotePath() { @@ -716,30 +659,26 @@ public Builder clearRemotePath() { return this; } /** - * - * *
      * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; - * * @param value The bytes for remotePath to set. * @return This builder for chaining. */ - public Builder setRemotePathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRemotePathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); remotePath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -749,12 +688,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.NFS) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.NFS) private static final com.google.cloud.batch.v1.NFS DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.NFS(); } @@ -763,27 +702,27 @@ public static com.google.cloud.batch.v1.NFS getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NFS 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 NFS 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; @@ -798,4 +737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.NFS getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java similarity index 55% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java index 5217e87c9091..0e7091eac825 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java @@ -1,76 +1,50 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/volume.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface NFSOrBuilder - extends +public interface NFSOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.NFS) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The IP address of the NFS.
    * 
* * string server = 1; - * * @return The server. */ java.lang.String getServer(); /** - * - * *
    * The IP address of the NFS.
    * 
* * string server = 1; - * * @return The bytes for server. */ - com.google.protobuf.ByteString getServerBytes(); + com.google.protobuf.ByteString + getServerBytes(); /** - * - * *
    * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; - * * @return The remotePath. */ java.lang.String getRemotePath(); /** - * - * *
    * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; - * * @return The bytes for remotePath. */ - com.google.protobuf.ByteString getRemotePathBytes(); + com.google.protobuf.ByteString + getRemotePathBytes(); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java similarity index 71% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java index 6537b097bad1..7ef313a7515c 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto @@ -20,24 +5,21 @@ package com.google.cloud.batch.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.batch.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -47,38 +29,33 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.OperationMetadata.class, - com.google.cloud.batch.v1.OperationMetadata.Builder.class); + com.google.cloud.batch.v1.OperationMetadata.class, com.google.cloud.batch.v1.OperationMetadata.Builder.class); } private int bitField0_; public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -86,15 +63,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -102,14 +75,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -119,15 +89,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -135,15 +101,11 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -151,14 +113,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -166,18 +125,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -186,29 +141,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -217,18 +172,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -237,29 +188,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -268,18 +219,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -288,29 +235,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -321,8 +268,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -332,7 +277,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -341,18 +285,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -361,29 +301,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -392,7 +332,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,7 +343,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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCreateTime()); } @@ -436,10 +376,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -451,7 +393,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -464,27 +407,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.batch.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.batch.v1.OperationMetadata other = - (com.google.cloud.batch.v1.OperationMetadata) obj; + com.google.cloud.batch.v1.OperationMetadata other = (com.google.cloud.batch.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -511,7 +460,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -519,127 +469,120 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.batch.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.OperationMetadata) com.google.cloud.batch.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.OperationMetadata.class, - com.google.cloud.batch.v1.OperationMetadata.Builder.class); + com.google.cloud.batch.v1.OperationMetadata.class, com.google.cloud.batch.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.batch.v1.OperationMetadata.newBuilder() @@ -647,18 +590,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getEndTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -682,9 +625,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.BatchProto - .internal_static_google_cloud_batch_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.BatchProto.internal_static_google_cloud_batch_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -703,11 +646,8 @@ public com.google.cloud.batch.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.batch.v1.OperationMetadata buildPartial() { - com.google.cloud.batch.v1.OperationMetadata result = - new com.google.cloud.batch.v1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.OperationMetadata result = new com.google.cloud.batch.v1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -716,11 +656,15 @@ private void buildPartial0(com.google.cloud.batch.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -745,39 +689,38 @@ private void buildPartial0(com.google.cloud.batch.v1.OperationMetadata result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.batch.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.batch.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -841,55 +784,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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) { @@ -899,63 +838,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.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 time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -971,17 +890,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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(); } else { @@ -992,21 +908,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1021,15 +933,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1042,15 +950,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1058,48 +962,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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 time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; @@ -1107,35 +999,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1146,14 +1027,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1169,16 +1047,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1189,20 +1065,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1217,14 +1090,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1237,14 +1107,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1252,44 +1119,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.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> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1297,20 +1156,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1319,21 +1176,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1341,35 +1197,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1379,21 +1228,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1403,20 +1248,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1425,21 +1268,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1447,35 +1289,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1485,21 +1320,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1509,20 +1340,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1531,21 +1360,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1553,35 +1381,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1591,21 +1412,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1613,10 +1430,8 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1626,7 +1441,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1634,8 +1448,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1645,7 +1457,6 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ @@ -1657,8 +1468,6 @@ public Builder setRequestedCancellation(boolean value) { return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1668,7 +1477,6 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1680,20 +1488,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1702,21 +1508,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1724,35 +1529,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1762,30 +1560,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1795,12 +1589,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.OperationMetadata) private static final com.google.cloud.batch.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.OperationMetadata(); } @@ -1809,27 +1603,27 @@ public static com.google.cloud.batch.v1.OperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - 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 OperationMetadata 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; @@ -1844,4 +1638,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java similarity index 75% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java index 7ef80bff36f3..9c4bfc1bc0f2 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java @@ -1,183 +1,128 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.batch.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -187,33 +132,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java similarity index 73% rename from java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java rename to owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java index bea83c7a7f37..7a8304d2561b 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java +++ b/owl-bot-staging/java-batch/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto @@ -20,8 +5,6 @@ package com.google.cloud.batch.v1; /** - * - * *
  * Runnable describes instructions for executing a specific script or container
  * as part of a Task.
@@ -29,29 +12,29 @@
  *
  * Protobuf type {@code google.cloud.batch.v1.Runnable}
  */
-public final class Runnable extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Runnable extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.Runnable)
     RunnableOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Runnable.newBuilder() to construct.
   private Runnable(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Runnable() {
     displayName_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Runnable();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.batch.v1.TaskProto
-        .internal_static_google_cloud_batch_v1_Runnable_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -62,53 +45,43 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
       case 9:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.batch.v1.TaskProto
-        .internal_static_google_cloud_batch_v1_Runnable_fieldAccessorTable
+    return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.batch.v1.Runnable.class,
-            com.google.cloud.batch.v1.Runnable.Builder.class);
+            com.google.cloud.batch.v1.Runnable.class, com.google.cloud.batch.v1.Runnable.Builder.class);
   }
 
-  public interface ContainerOrBuilder
-      extends
+  public interface ContainerOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.Runnable.Container)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The URI to pull the container image from.
      * 
* * string image_uri = 1; - * * @return The imageUri. */ java.lang.String getImageUri(); /** - * - * *
      * The URI to pull the container image from.
      * 
* * string image_uri = 1; - * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString getImageUriBytes(); + com.google.protobuf.ByteString + getImageUriBytes(); /** - * - * *
      * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
      * (either in the container image or with the entrypoint field below) then
@@ -116,13 +89,11 @@ public interface ContainerOrBuilder
      * 
* * repeated string commands = 2; - * * @return A list containing the commands. */ - java.util.List getCommandsList(); + java.util.List + getCommandsList(); /** - * - * *
      * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
      * (either in the container image or with the entrypoint field below) then
@@ -130,13 +101,10 @@ public interface ContainerOrBuilder
      * 
* * repeated string commands = 2; - * * @return The count of commands. */ int getCommandsCount(); /** - * - * *
      * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
      * (either in the container image or with the entrypoint field below) then
@@ -144,14 +112,11 @@ public interface ContainerOrBuilder
      * 
* * repeated string commands = 2; - * * @param index The index of the element to return. * @return The commands at the given index. */ java.lang.String getCommands(int index); /** - * - * *
      * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
      * (either in the container image or with the entrypoint field below) then
@@ -159,40 +124,33 @@ public interface ContainerOrBuilder
      * 
* * repeated string commands = 2; - * * @param index The index of the value to return. * @return The bytes of the commands at the given index. */ - com.google.protobuf.ByteString getCommandsBytes(int index); + com.google.protobuf.ByteString + getCommandsBytes(int index); /** - * - * *
      * Overrides the `ENTRYPOINT` specified in the container.
      * 
* * string entrypoint = 3; - * * @return The entrypoint. */ java.lang.String getEntrypoint(); /** - * - * *
      * Overrides the `ENTRYPOINT` specified in the container.
      * 
* * string entrypoint = 3; - * * @return The bytes for entrypoint. */ - com.google.protobuf.ByteString getEntrypointBytes(); + com.google.protobuf.ByteString + getEntrypointBytes(); /** - * - * *
      * Volumes to mount (bind mount) from the host machine files or directories
      * into the container, formatted to match docker run's --volume option,
@@ -208,13 +166,11 @@ public interface ContainerOrBuilder
      * 
* * repeated string volumes = 7; - * * @return A list containing the volumes. */ - java.util.List getVolumesList(); + java.util.List + getVolumesList(); /** - * - * *
      * Volumes to mount (bind mount) from the host machine files or directories
      * into the container, formatted to match docker run's --volume option,
@@ -230,13 +186,10 @@ public interface ContainerOrBuilder
      * 
* * repeated string volumes = 7; - * * @return The count of volumes. */ int getVolumesCount(); /** - * - * *
      * Volumes to mount (bind mount) from the host machine files or directories
      * into the container, formatted to match docker run's --volume option,
@@ -252,14 +205,11 @@ public interface ContainerOrBuilder
      * 
* * repeated string volumes = 7; - * * @param index The index of the element to return. * @return The volumes at the given index. */ java.lang.String getVolumes(int index); /** - * - * *
      * Volumes to mount (bind mount) from the host machine files or directories
      * into the container, formatted to match docker run's --volume option,
@@ -275,42 +225,35 @@ public interface ContainerOrBuilder
      * 
* * repeated string volumes = 7; - * * @param index The index of the value to return. * @return The bytes of the volumes at the given index. */ - com.google.protobuf.ByteString getVolumesBytes(int index); + com.google.protobuf.ByteString + getVolumesBytes(int index); /** - * - * *
      * Arbitrary additional options to include in the "docker run" command when
      * running this container, e.g. "--network host".
      * 
* * string options = 8; - * * @return The options. */ java.lang.String getOptions(); /** - * - * *
      * Arbitrary additional options to include in the "docker run" command when
      * running this container, e.g. "--network host".
      * 
* * string options = 8; - * * @return The bytes for options. */ - com.google.protobuf.ByteString getOptionsBytes(); + com.google.protobuf.ByteString + getOptionsBytes(); /** - * - * *
      * If set to true, external network access to and from container will be
      * blocked, containers that are with block_external_network as true can
@@ -319,72 +262,109 @@ public interface ContainerOrBuilder
      * 
* * bool block_external_network = 9; - * * @return The blockExternalNetwork. */ boolean getBlockExternalNetwork(); /** - * - * *
-     * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
-     * username from the Secret Manager.
+     * Required if the container image is from a private Docker registry. The
+     * username to login to the Docker registry that contains the image.
+     *
+     * You can either specify the username directly by using plain text or
+     * specify an encrypted username by using a Secret Manager secret:
+     * `projects/*/secrets/*/versions/*`. However, using a secret is
+     * recommended for enhanced security.
+     *
+     * Caution: If you specify the username using plain text, you risk the
+     * username being exposed to any users who can view the job or its logs.
+     * To avoid this risk, specify a secret that contains the username instead.
+     *
+     * Learn more about [Secret
+     * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+     * Secret Manager with
+     * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
      * 
* * string username = 10; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
-     * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
-     * username from the Secret Manager.
+     * Required if the container image is from a private Docker registry. The
+     * username to login to the Docker registry that contains the image.
+     *
+     * You can either specify the username directly by using plain text or
+     * specify an encrypted username by using a Secret Manager secret:
+     * `projects/*/secrets/*/versions/*`. However, using a secret is
+     * recommended for enhanced security.
+     *
+     * Caution: If you specify the username using plain text, you risk the
+     * username being exposed to any users who can view the job or its logs.
+     * To avoid this risk, specify a secret that contains the username instead.
+     *
+     * Learn more about [Secret
+     * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+     * Secret Manager with
+     * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
      * 
* * string username = 10; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** + *
+     * Required if the container image is from a private Docker registry. The
+     * password to login to the Docker registry that contains the image.
      *
+     * For security, it is strongly recommended to specify an
+     * encrypted password by using a Secret Manager secret:
+     * `projects/*/secrets/*/versions/*`.
      *
-     * 
-     * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
-     * password from the Secret Manager;
+     * Warning: If you specify the password using plain text, you risk the
+     * password being exposed to any users who can view the job or its logs.
+     * To avoid this risk, specify a secret that contains the password instead.
+     *
+     * Learn more about [Secret
+     * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+     * Secret Manager with
+     * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
      * 
* * string password = 11; - * * @return The password. */ java.lang.String getPassword(); /** + *
+     * Required if the container image is from a private Docker registry. The
+     * password to login to the Docker registry that contains the image.
      *
+     * For security, it is strongly recommended to specify an
+     * encrypted password by using a Secret Manager secret:
+     * `projects/*/secrets/*/versions/*`.
      *
-     * 
-     * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
-     * password from the Secret Manager;
+     * Warning: If you specify the password using plain text, you risk the
+     * password being exposed to any users who can view the job or its logs.
+     * To avoid this risk, specify a secret that contains the password instead.
+     *
+     * Learn more about [Secret
+     * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+     * Secret Manager with
+     * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
      * 
* * string password = 11; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
      * Optional. If set to true, this container runnable uses Image streaming.
      *
@@ -406,35 +386,33 @@ public interface ContainerOrBuilder
      * 
* * bool enable_image_streaming = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableImageStreaming. */ boolean getEnableImageStreaming(); } /** - * - * *
    * Container runnable.
    * 
* * Protobuf type {@code google.cloud.batch.v1.Runnable.Container} */ - public static final class Container extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Container extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.Runnable.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() { imageUri_ = ""; - commands_ = com.google.protobuf.LazyStringArrayList.emptyList(); + commands_ = + com.google.protobuf.LazyStringArrayList.emptyList(); entrypoint_ = ""; - volumes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + volumes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); options_ = ""; username_ = ""; password_ = ""; @@ -442,38 +420,33 @@ private Container() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Container(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Runnable_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_Container_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Runnable_Container_fieldAccessorTable + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.Runnable.Container.class, - com.google.cloud.batch.v1.Runnable.Container.Builder.class); + com.google.cloud.batch.v1.Runnable.Container.class, com.google.cloud.batch.v1.Runnable.Container.Builder.class); } public static final int IMAGE_URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object imageUri_ = ""; /** - * - * *
      * The URI to pull the container image from.
      * 
* * string image_uri = 1; - * * @return The imageUri. */ @java.lang.Override @@ -482,29 +455,29 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** - * - * *
      * The URI to pull the container image from.
      * 
* * string image_uri = 1; - * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -513,13 +486,10 @@ public com.google.protobuf.ByteString getImageUriBytes() { } public static final int COMMANDS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList commands_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
      * (either in the container image or with the entrypoint field below) then
@@ -527,15 +497,13 @@ public com.google.protobuf.ByteString getImageUriBytes() {
      * 
* * repeated string commands = 2; - * * @return A list containing the commands. */ - public com.google.protobuf.ProtocolStringList getCommandsList() { + public com.google.protobuf.ProtocolStringList + getCommandsList() { return commands_; } /** - * - * *
      * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
      * (either in the container image or with the entrypoint field below) then
@@ -543,15 +511,12 @@ public com.google.protobuf.ProtocolStringList getCommandsList() {
      * 
* * repeated string commands = 2; - * * @return The count of commands. */ public int getCommandsCount() { return commands_.size(); } /** - * - * *
      * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
      * (either in the container image or with the entrypoint field below) then
@@ -559,7 +524,6 @@ public int getCommandsCount() {
      * 
* * repeated string commands = 2; - * * @param index The index of the element to return. * @return The commands at the given index. */ @@ -567,8 +531,6 @@ public java.lang.String getCommands(int index) { return commands_.get(index); } /** - * - * *
      * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
      * (either in the container image or with the entrypoint field below) then
@@ -576,27 +538,23 @@ public java.lang.String getCommands(int index) {
      * 
* * repeated string commands = 2; - * * @param index The index of the value to return. * @return The bytes of the commands at the given index. */ - public com.google.protobuf.ByteString getCommandsBytes(int index) { + public com.google.protobuf.ByteString + getCommandsBytes(int index) { return commands_.getByteString(index); } public static final int ENTRYPOINT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object entrypoint_ = ""; /** - * - * *
      * Overrides the `ENTRYPOINT` specified in the container.
      * 
* * string entrypoint = 3; - * * @return The entrypoint. */ @java.lang.Override @@ -605,29 +563,29 @@ public java.lang.String getEntrypoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entrypoint_ = s; return s; } } /** - * - * *
      * Overrides the `ENTRYPOINT` specified in the container.
      * 
* * string entrypoint = 3; - * * @return The bytes for entrypoint. */ @java.lang.Override - public com.google.protobuf.ByteString getEntrypointBytes() { + public com.google.protobuf.ByteString + getEntrypointBytes() { java.lang.Object ref = entrypoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entrypoint_ = b; return b; } else { @@ -636,13 +594,10 @@ public com.google.protobuf.ByteString getEntrypointBytes() { } public static final int VOLUMES_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList volumes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Volumes to mount (bind mount) from the host machine files or directories
      * into the container, formatted to match docker run's --volume option,
@@ -658,15 +613,13 @@ public com.google.protobuf.ByteString getEntrypointBytes() {
      * 
* * repeated string volumes = 7; - * * @return A list containing the volumes. */ - public com.google.protobuf.ProtocolStringList getVolumesList() { + public com.google.protobuf.ProtocolStringList + getVolumesList() { return volumes_; } /** - * - * *
      * Volumes to mount (bind mount) from the host machine files or directories
      * into the container, formatted to match docker run's --volume option,
@@ -682,15 +635,12 @@ public com.google.protobuf.ProtocolStringList getVolumesList() {
      * 
* * repeated string volumes = 7; - * * @return The count of volumes. */ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
      * Volumes to mount (bind mount) from the host machine files or directories
      * into the container, formatted to match docker run's --volume option,
@@ -706,7 +656,6 @@ public int getVolumesCount() {
      * 
* * repeated string volumes = 7; - * * @param index The index of the element to return. * @return The volumes at the given index. */ @@ -714,8 +663,6 @@ public java.lang.String getVolumes(int index) { return volumes_.get(index); } /** - * - * *
      * Volumes to mount (bind mount) from the host machine files or directories
      * into the container, formatted to match docker run's --volume option,
@@ -731,28 +678,24 @@ public java.lang.String getVolumes(int index) {
      * 
* * repeated string volumes = 7; - * * @param index The index of the value to return. * @return The bytes of the volumes at the given index. */ - public com.google.protobuf.ByteString getVolumesBytes(int index) { + public com.google.protobuf.ByteString + getVolumesBytes(int index) { return volumes_.getByteString(index); } public static final int OPTIONS_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object options_ = ""; /** - * - * *
      * Arbitrary additional options to include in the "docker run" command when
      * running this container, e.g. "--network host".
      * 
* * string options = 8; - * * @return The options. */ @java.lang.Override @@ -761,30 +704,30 @@ public java.lang.String getOptions() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); options_ = s; return s; } } /** - * - * *
      * Arbitrary additional options to include in the "docker run" command when
      * running this container, e.g. "--network host".
      * 
* * string options = 8; - * * @return The bytes for options. */ @java.lang.Override - public com.google.protobuf.ByteString getOptionsBytes() { + public com.google.protobuf.ByteString + getOptionsBytes() { java.lang.Object ref = options_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); options_ = b; return b; } else { @@ -795,8 +738,6 @@ public com.google.protobuf.ByteString getOptionsBytes() { public static final int BLOCK_EXTERNAL_NETWORK_FIELD_NUMBER = 9; private boolean blockExternalNetwork_ = false; /** - * - * *
      * If set to true, external network access to and from container will be
      * blocked, containers that are with block_external_network as true can
@@ -805,7 +746,6 @@ public com.google.protobuf.ByteString getOptionsBytes() {
      * 
* * bool block_external_network = 9; - * * @return The blockExternalNetwork. */ @java.lang.Override @@ -814,20 +754,29 @@ public boolean getBlockExternalNetwork() { } public static final int USERNAME_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
-     * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
-     * username from the Secret Manager.
+     * Required if the container image is from a private Docker registry. The
+     * username to login to the Docker registry that contains the image.
+     *
+     * You can either specify the username directly by using plain text or
+     * specify an encrypted username by using a Secret Manager secret:
+     * `projects/*/secrets/*/versions/*`. However, using a secret is
+     * recommended for enhanced security.
+     *
+     * Caution: If you specify the username using plain text, you risk the
+     * username being exposed to any users who can view the job or its logs.
+     * To avoid this risk, specify a secret that contains the username instead.
+     *
+     * Learn more about [Secret
+     * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+     * Secret Manager with
+     * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
      * 
* * string username = 10; - * * @return The username. */ @java.lang.Override @@ -836,31 +785,44 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
-     * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
-     * username from the Secret Manager.
+     * Required if the container image is from a private Docker registry. The
+     * username to login to the Docker registry that contains the image.
+     *
+     * You can either specify the username directly by using plain text or
+     * specify an encrypted username by using a Secret Manager secret:
+     * `projects/*/secrets/*/versions/*`. However, using a secret is
+     * recommended for enhanced security.
+     *
+     * Caution: If you specify the username using plain text, you risk the
+     * username being exposed to any users who can view the job or its logs.
+     * To avoid this risk, specify a secret that contains the username instead.
+     *
+     * Learn more about [Secret
+     * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+     * Secret Manager with
+     * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
      * 
* * string username = 10; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -869,20 +831,28 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** + *
+     * Required if the container image is from a private Docker registry. The
+     * password to login to the Docker registry that contains the image.
      *
+     * For security, it is strongly recommended to specify an
+     * encrypted password by using a Secret Manager secret:
+     * `projects/*/secrets/*/versions/*`.
      *
-     * 
-     * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
-     * password from the Secret Manager;
+     * Warning: If you specify the password using plain text, you risk the
+     * password being exposed to any users who can view the job or its logs.
+     * To avoid this risk, specify a secret that contains the password instead.
+     *
+     * Learn more about [Secret
+     * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+     * Secret Manager with
+     * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
      * 
* * string password = 11; - * * @return The password. */ @java.lang.Override @@ -891,31 +861,43 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + *
+     * Required if the container image is from a private Docker registry. The
+     * password to login to the Docker registry that contains the image.
      *
+     * For security, it is strongly recommended to specify an
+     * encrypted password by using a Secret Manager secret:
+     * `projects/*/secrets/*/versions/*`.
      *
-     * 
-     * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
-     * password from the Secret Manager;
+     * Warning: If you specify the password using plain text, you risk the
+     * password being exposed to any users who can view the job or its logs.
+     * To avoid this risk, specify a secret that contains the password instead.
+     *
+     * Learn more about [Secret
+     * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+     * Secret Manager with
+     * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
      * 
* * string password = 11; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -926,8 +908,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int ENABLE_IMAGE_STREAMING_FIELD_NUMBER = 12; private boolean enableImageStreaming_ = false; /** - * - * *
      * Optional. If set to true, this container runnable uses Image streaming.
      *
@@ -949,7 +929,6 @@ public com.google.protobuf.ByteString getPasswordBytes() {
      * 
* * bool enable_image_streaming = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableImageStreaming. */ @java.lang.Override @@ -958,7 +937,6 @@ public boolean getEnableImageStreaming() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -970,7 +948,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(imageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageUri_); } @@ -1033,7 +1012,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, options_); } if (blockExternalNetwork_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, blockExternalNetwork_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, blockExternalNetwork_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, username_); @@ -1042,7 +1022,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, password_); } if (enableImageStreaming_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, enableImageStreaming_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, enableImageStreaming_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1052,23 +1033,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.batch.v1.Runnable.Container)) { return super.equals(obj); } - com.google.cloud.batch.v1.Runnable.Container other = - (com.google.cloud.batch.v1.Runnable.Container) obj; - - if (!getImageUri().equals(other.getImageUri())) return false; - if (!getCommandsList().equals(other.getCommandsList())) return false; - if (!getEntrypoint().equals(other.getEntrypoint())) return false; - if (!getVolumesList().equals(other.getVolumesList())) return false; - if (!getOptions().equals(other.getOptions())) return false; - if (getBlockExternalNetwork() != other.getBlockExternalNetwork()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (getEnableImageStreaming() != other.getEnableImageStreaming()) return false; + com.google.cloud.batch.v1.Runnable.Container other = (com.google.cloud.batch.v1.Runnable.Container) obj; + + if (!getImageUri() + .equals(other.getImageUri())) return false; + if (!getCommandsList() + .equals(other.getCommandsList())) return false; + if (!getEntrypoint() + .equals(other.getEntrypoint())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) return false; + if (!getOptions() + .equals(other.getOptions())) return false; + if (getBlockExternalNetwork() + != other.getBlockExternalNetwork()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (getEnableImageStreaming() + != other.getEnableImageStreaming()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1095,106 +1084,104 @@ public int hashCode() { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); hash = (37 * hash) + BLOCK_EXTERNAL_NETWORK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBlockExternalNetwork()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBlockExternalNetwork()); hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + ENABLE_IMAGE_STREAMING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableImageStreaming()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableImageStreaming()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.batch.v1.Runnable.Container parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.Runnable.Container parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.Runnable.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.batch.v1.Runnable.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.Runnable.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.batch.v1.Runnable.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.Runnable.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.batch.v1.Runnable.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.batch.v1.Runnable.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.batch.v1.Runnable.Container parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.Runnable.Container parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.Runnable.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.batch.v1.Runnable.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.batch.v1.Runnable.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.batch.v1.Runnable.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 @@ -1204,49 +1191,49 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Container runnable.
      * 
* * Protobuf type {@code google.cloud.batch.v1.Runnable.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.batch.v1.Runnable.Container) com.google.cloud.batch.v1.Runnable.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Runnable_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_Container_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Runnable_Container_fieldAccessorTable + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.Runnable.Container.class, - com.google.cloud.batch.v1.Runnable.Container.Builder.class); + com.google.cloud.batch.v1.Runnable.Container.class, com.google.cloud.batch.v1.Runnable.Container.Builder.class); } // Construct using com.google.cloud.batch.v1.Runnable.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(); bitField0_ = 0; imageUri_ = ""; - commands_ = com.google.protobuf.LazyStringArrayList.emptyList(); + commands_ = + com.google.protobuf.LazyStringArrayList.emptyList(); entrypoint_ = ""; - volumes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + volumes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); options_ = ""; blockExternalNetwork_ = false; username_ = ""; @@ -1256,9 +1243,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Runnable_Container_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_Container_descriptor; } @java.lang.Override @@ -1277,11 +1264,8 @@ public com.google.cloud.batch.v1.Runnable.Container build() { @java.lang.Override public com.google.cloud.batch.v1.Runnable.Container buildPartial() { - com.google.cloud.batch.v1.Runnable.Container result = - new com.google.cloud.batch.v1.Runnable.Container(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.Runnable.Container result = new com.google.cloud.batch.v1.Runnable.Container(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1323,41 +1307,38 @@ private void buildPartial0(com.google.cloud.batch.v1.Runnable.Container result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.Runnable.Container) { - return mergeFrom((com.google.cloud.batch.v1.Runnable.Container) other); + return mergeFrom((com.google.cloud.batch.v1.Runnable.Container)other); } else { super.mergeFrom(other); return this; @@ -1443,69 +1424,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - imageUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCommandsIsMutable(); - commands_.add(s); - break; - } // case 18 - case 26: - { - entrypoint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureVolumesIsMutable(); - volumes_.add(s); - break; - } // case 58 - case 66: - { - options_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 72: - { - blockExternalNetwork_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 72 - case 82: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 82 - case 90: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 90 - case 96: - { - enableImageStreaming_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + imageUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCommandsIsMutable(); + commands_.add(s); + break; + } // case 18 + case 26: { + entrypoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureVolumesIsMutable(); + volumes_.add(s); + break; + } // case 58 + case 66: { + options_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 72: { + blockExternalNetwork_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 72 + case 82: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 82 + case 90: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 90 + case 96: { + enableImageStreaming_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 96 + 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) { @@ -1515,25 +1486,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object imageUri_ = ""; /** - * - * *
        * The URI to pull the container image from.
        * 
* * string image_uri = 1; - * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -1542,21 +1510,20 @@ public java.lang.String getImageUri() { } } /** - * - * *
        * The URI to pull the container image from.
        * 
* * string image_uri = 1; - * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -1564,35 +1531,28 @@ public com.google.protobuf.ByteString getImageUriBytes() { } } /** - * - * *
        * The URI to pull the container image from.
        * 
* * string image_uri = 1; - * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImageUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } imageUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The URI to pull the container image from.
        * 
* * string image_uri = 1; - * * @return This builder for chaining. */ public Builder clearImageUri() { @@ -1602,21 +1562,17 @@ public Builder clearImageUri() { return this; } /** - * - * *
        * The URI to pull the container image from.
        * 
* * string image_uri = 1; - * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImageUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); imageUri_ = value; bitField0_ |= 0x00000001; @@ -1626,7 +1582,6 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList commands_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureCommandsIsMutable() { if (!commands_.isModifiable()) { commands_ = new com.google.protobuf.LazyStringArrayList(commands_); @@ -1634,8 +1589,6 @@ private void ensureCommandsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1643,16 +1596,14 @@ private void ensureCommandsIsMutable() {
        * 
* * repeated string commands = 2; - * * @return A list containing the commands. */ - public com.google.protobuf.ProtocolStringList getCommandsList() { + public com.google.protobuf.ProtocolStringList + getCommandsList() { commands_.makeImmutable(); return commands_; } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1660,15 +1611,12 @@ public com.google.protobuf.ProtocolStringList getCommandsList() {
        * 
* * repeated string commands = 2; - * * @return The count of commands. */ public int getCommandsCount() { return commands_.size(); } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1676,7 +1624,6 @@ public int getCommandsCount() {
        * 
* * repeated string commands = 2; - * * @param index The index of the element to return. * @return The commands at the given index. */ @@ -1684,8 +1631,6 @@ public java.lang.String getCommands(int index) { return commands_.get(index); } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1693,16 +1638,14 @@ public java.lang.String getCommands(int index) {
        * 
* * repeated string commands = 2; - * * @param index The index of the value to return. * @return The bytes of the commands at the given index. */ - public com.google.protobuf.ByteString getCommandsBytes(int index) { + public com.google.protobuf.ByteString + getCommandsBytes(int index) { return commands_.getByteString(index); } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1710,15 +1653,13 @@ public com.google.protobuf.ByteString getCommandsBytes(int index) {
        * 
* * repeated string commands = 2; - * * @param index The index to set the value at. * @param value The commands to set. * @return This builder for chaining. */ - public Builder setCommands(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCommands( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCommandsIsMutable(); commands_.set(index, value); bitField0_ |= 0x00000002; @@ -1726,8 +1667,6 @@ public Builder setCommands(int index, java.lang.String value) { return this; } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1735,14 +1674,12 @@ public Builder setCommands(int index, java.lang.String value) {
        * 
* * repeated string commands = 2; - * * @param value The commands to add. * @return This builder for chaining. */ - public Builder addCommands(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCommands( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCommandsIsMutable(); commands_.add(value); bitField0_ |= 0x00000002; @@ -1750,8 +1687,6 @@ public Builder addCommands(java.lang.String value) { return this; } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1759,20 +1694,19 @@ public Builder addCommands(java.lang.String value) {
        * 
* * repeated string commands = 2; - * * @param values The commands to add. * @return This builder for chaining. */ - public Builder addAllCommands(java.lang.Iterable values) { + public Builder addAllCommands( + java.lang.Iterable values) { ensureCommandsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, commands_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, commands_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1780,19 +1714,16 @@ public Builder addAllCommands(java.lang.Iterable values) {
        * 
* * repeated string commands = 2; - * * @return This builder for chaining. */ public Builder clearCommands() { - commands_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + commands_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1800,14 +1731,12 @@ public Builder clearCommands() {
        * 
* * repeated string commands = 2; - * * @param value The bytes of the commands to add. * @return This builder for chaining. */ - public Builder addCommandsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCommandsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCommandsIsMutable(); commands_.add(value); @@ -1818,20 +1747,18 @@ public Builder addCommandsBytes(com.google.protobuf.ByteString value) { private java.lang.Object entrypoint_ = ""; /** - * - * *
        * Overrides the `ENTRYPOINT` specified in the container.
        * 
* * string entrypoint = 3; - * * @return The entrypoint. */ public java.lang.String getEntrypoint() { java.lang.Object ref = entrypoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entrypoint_ = s; return s; @@ -1840,21 +1767,20 @@ public java.lang.String getEntrypoint() { } } /** - * - * *
        * Overrides the `ENTRYPOINT` specified in the container.
        * 
* * string entrypoint = 3; - * * @return The bytes for entrypoint. */ - public com.google.protobuf.ByteString getEntrypointBytes() { + public com.google.protobuf.ByteString + getEntrypointBytes() { java.lang.Object ref = entrypoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entrypoint_ = b; return b; } else { @@ -1862,35 +1788,28 @@ public com.google.protobuf.ByteString getEntrypointBytes() { } } /** - * - * *
        * Overrides the `ENTRYPOINT` specified in the container.
        * 
* * string entrypoint = 3; - * * @param value The entrypoint to set. * @return This builder for chaining. */ - public Builder setEntrypoint(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntrypoint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entrypoint_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Overrides the `ENTRYPOINT` specified in the container.
        * 
* * string entrypoint = 3; - * * @return This builder for chaining. */ public Builder clearEntrypoint() { @@ -1900,21 +1819,17 @@ public Builder clearEntrypoint() { return this; } /** - * - * *
        * Overrides the `ENTRYPOINT` specified in the container.
        * 
* * string entrypoint = 3; - * * @param value The bytes for entrypoint to set. * @return This builder for chaining. */ - public Builder setEntrypointBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntrypointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entrypoint_ = value; bitField0_ |= 0x00000004; @@ -1924,7 +1839,6 @@ public Builder setEntrypointBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList volumes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureVolumesIsMutable() { if (!volumes_.isModifiable()) { volumes_ = new com.google.protobuf.LazyStringArrayList(volumes_); @@ -1932,8 +1846,6 @@ private void ensureVolumesIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -1949,16 +1861,14 @@ private void ensureVolumesIsMutable() {
        * 
* * repeated string volumes = 7; - * * @return A list containing the volumes. */ - public com.google.protobuf.ProtocolStringList getVolumesList() { + public com.google.protobuf.ProtocolStringList + getVolumesList() { volumes_.makeImmutable(); return volumes_; } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -1974,15 +1884,12 @@ public com.google.protobuf.ProtocolStringList getVolumesList() {
        * 
* * repeated string volumes = 7; - * * @return The count of volumes. */ public int getVolumesCount() { return volumes_.size(); } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -1998,7 +1905,6 @@ public int getVolumesCount() {
        * 
* * repeated string volumes = 7; - * * @param index The index of the element to return. * @return The volumes at the given index. */ @@ -2006,8 +1912,6 @@ public java.lang.String getVolumes(int index) { return volumes_.get(index); } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -2023,16 +1927,14 @@ public java.lang.String getVolumes(int index) {
        * 
* * repeated string volumes = 7; - * * @param index The index of the value to return. * @return The bytes of the volumes at the given index. */ - public com.google.protobuf.ByteString getVolumesBytes(int index) { + public com.google.protobuf.ByteString + getVolumesBytes(int index) { return volumes_.getByteString(index); } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -2048,15 +1950,13 @@ public com.google.protobuf.ByteString getVolumesBytes(int index) {
        * 
* * repeated string volumes = 7; - * * @param index The index to set the value at. * @param value The volumes to set. * @return This builder for chaining. */ - public Builder setVolumes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVolumes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.set(index, value); bitField0_ |= 0x00000008; @@ -2064,8 +1964,6 @@ public Builder setVolumes(int index, java.lang.String value) { return this; } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -2081,14 +1979,12 @@ public Builder setVolumes(int index, java.lang.String value) {
        * 
* * repeated string volumes = 7; - * * @param value The volumes to add. * @return This builder for chaining. */ - public Builder addVolumes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addVolumes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(value); bitField0_ |= 0x00000008; @@ -2096,8 +1992,6 @@ public Builder addVolumes(java.lang.String value) { return this; } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -2113,20 +2007,19 @@ public Builder addVolumes(java.lang.String value) {
        * 
* * repeated string volumes = 7; - * * @param values The volumes to add. * @return This builder for chaining. */ - public Builder addAllVolumes(java.lang.Iterable values) { + public Builder addAllVolumes( + java.lang.Iterable values) { ensureVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -2142,19 +2035,16 @@ public Builder addAllVolumes(java.lang.Iterable values) {
        * 
* * repeated string volumes = 7; - * * @return This builder for chaining. */ public Builder clearVolumes() { - volumes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + volumes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -2170,14 +2060,12 @@ public Builder clearVolumes() {
        * 
* * repeated string volumes = 7; - * * @param value The bytes of the volumes to add. * @return This builder for chaining. */ - public Builder addVolumesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addVolumesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureVolumesIsMutable(); volumes_.add(value); @@ -2188,21 +2076,19 @@ public Builder addVolumesBytes(com.google.protobuf.ByteString value) { private java.lang.Object options_ = ""; /** - * - * *
        * Arbitrary additional options to include in the "docker run" command when
        * running this container, e.g. "--network host".
        * 
* * string options = 8; - * * @return The options. */ public java.lang.String getOptions() { java.lang.Object ref = options_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); options_ = s; return s; @@ -2211,22 +2097,21 @@ public java.lang.String getOptions() { } } /** - * - * *
        * Arbitrary additional options to include in the "docker run" command when
        * running this container, e.g. "--network host".
        * 
* * string options = 8; - * * @return The bytes for options. */ - public com.google.protobuf.ByteString getOptionsBytes() { + public com.google.protobuf.ByteString + getOptionsBytes() { java.lang.Object ref = options_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); options_ = b; return b; } else { @@ -2234,37 +2119,30 @@ public com.google.protobuf.ByteString getOptionsBytes() { } } /** - * - * *
        * Arbitrary additional options to include in the "docker run" command when
        * running this container, e.g. "--network host".
        * 
* * string options = 8; - * * @param value The options to set. * @return This builder for chaining. */ - public Builder setOptions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOptions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } options_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * Arbitrary additional options to include in the "docker run" command when
        * running this container, e.g. "--network host".
        * 
* * string options = 8; - * * @return This builder for chaining. */ public Builder clearOptions() { @@ -2274,22 +2152,18 @@ public Builder clearOptions() { return this; } /** - * - * *
        * Arbitrary additional options to include in the "docker run" command when
        * running this container, e.g. "--network host".
        * 
* * string options = 8; - * * @param value The bytes for options to set. * @return This builder for chaining. */ - public Builder setOptionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); options_ = value; bitField0_ |= 0x00000010; @@ -2297,10 +2171,8 @@ public Builder setOptionsBytes(com.google.protobuf.ByteString value) { return this; } - private boolean blockExternalNetwork_; + private boolean blockExternalNetwork_ ; /** - * - * *
        * If set to true, external network access to and from container will be
        * blocked, containers that are with block_external_network as true can
@@ -2309,7 +2181,6 @@ public Builder setOptionsBytes(com.google.protobuf.ByteString value) {
        * 
* * bool block_external_network = 9; - * * @return The blockExternalNetwork. */ @java.lang.Override @@ -2317,8 +2188,6 @@ public boolean getBlockExternalNetwork() { return blockExternalNetwork_; } /** - * - * *
        * If set to true, external network access to and from container will be
        * blocked, containers that are with block_external_network as true can
@@ -2327,7 +2196,6 @@ public boolean getBlockExternalNetwork() {
        * 
* * bool block_external_network = 9; - * * @param value The blockExternalNetwork to set. * @return This builder for chaining. */ @@ -2339,8 +2207,6 @@ public Builder setBlockExternalNetwork(boolean value) { return this; } /** - * - * *
        * If set to true, external network access to and from container will be
        * blocked, containers that are with block_external_network as true can
@@ -2349,7 +2215,6 @@ public Builder setBlockExternalNetwork(boolean value) {
        * 
* * bool block_external_network = 9; - * * @return This builder for chaining. */ public Builder clearBlockExternalNetwork() { @@ -2361,22 +2226,33 @@ public Builder clearBlockExternalNetwork() { private java.lang.Object username_ = ""; /** - * - * *
-       * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
-       * username from the Secret Manager.
+       * Required if the container image is from a private Docker registry. The
+       * username to login to the Docker registry that contains the image.
+       *
+       * You can either specify the username directly by using plain text or
+       * specify an encrypted username by using a Secret Manager secret:
+       * `projects/*/secrets/*/versions/*`. However, using a secret is
+       * recommended for enhanced security.
+       *
+       * Caution: If you specify the username using plain text, you risk the
+       * username being exposed to any users who can view the job or its logs.
+       * To avoid this risk, specify a secret that contains the username instead.
+       *
+       * Learn more about [Secret
+       * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+       * Secret Manager with
+       * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
        * 
* * string username = 10; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2385,23 +2261,35 @@ public java.lang.String getUsername() { } } /** - * - * *
-       * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
-       * username from the Secret Manager.
+       * Required if the container image is from a private Docker registry. The
+       * username to login to the Docker registry that contains the image.
+       *
+       * You can either specify the username directly by using plain text or
+       * specify an encrypted username by using a Secret Manager secret:
+       * `projects/*/secrets/*/versions/*`. However, using a secret is
+       * recommended for enhanced security.
+       *
+       * Caution: If you specify the username using plain text, you risk the
+       * username being exposed to any users who can view the job or its logs.
+       * To avoid this risk, specify a secret that contains the username instead.
+       *
+       * Learn more about [Secret
+       * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+       * Secret Manager with
+       * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
        * 
* * string username = 10; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2409,39 +2297,58 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
-       * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
-       * username from the Secret Manager.
+       * Required if the container image is from a private Docker registry. The
+       * username to login to the Docker registry that contains the image.
+       *
+       * You can either specify the username directly by using plain text or
+       * specify an encrypted username by using a Secret Manager secret:
+       * `projects/*/secrets/*/versions/*`. However, using a secret is
+       * recommended for enhanced security.
+       *
+       * Caution: If you specify the username using plain text, you risk the
+       * username being exposed to any users who can view the job or its logs.
+       * To avoid this risk, specify a secret that contains the username instead.
+       *
+       * Learn more about [Secret
+       * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+       * Secret Manager with
+       * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
        * 
* * string username = 10; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
-       * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
-       * username from the Secret Manager.
+       * Required if the container image is from a private Docker registry. The
+       * username to login to the Docker registry that contains the image.
+       *
+       * You can either specify the username directly by using plain text or
+       * specify an encrypted username by using a Secret Manager secret:
+       * `projects/*/secrets/*/versions/*`. However, using a secret is
+       * recommended for enhanced security.
+       *
+       * Caution: If you specify the username using plain text, you risk the
+       * username being exposed to any users who can view the job or its logs.
+       * To avoid this risk, specify a secret that contains the username instead.
+       *
+       * Learn more about [Secret
+       * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+       * Secret Manager with
+       * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
        * 
* * string username = 10; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -2451,23 +2358,32 @@ public Builder clearUsername() { return this; } /** - * - * *
-       * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
-       * username from the Secret Manager.
+       * Required if the container image is from a private Docker registry. The
+       * username to login to the Docker registry that contains the image.
+       *
+       * You can either specify the username directly by using plain text or
+       * specify an encrypted username by using a Secret Manager secret:
+       * `projects/*/secrets/*/versions/*`. However, using a secret is
+       * recommended for enhanced security.
+       *
+       * Caution: If you specify the username using plain text, you risk the
+       * username being exposed to any users who can view the job or its logs.
+       * To avoid this risk, specify a secret that contains the username instead.
+       *
+       * Learn more about [Secret
+       * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+       * Secret Manager with
+       * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
        * 
* * string username = 10; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000040; @@ -2477,22 +2393,32 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** + *
+       * Required if the container image is from a private Docker registry. The
+       * password to login to the Docker registry that contains the image.
        *
+       * For security, it is strongly recommended to specify an
+       * encrypted password by using a Secret Manager secret:
+       * `projects/*/secrets/*/versions/*`.
        *
-       * 
-       * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
-       * password from the Secret Manager;
+       * Warning: If you specify the password using plain text, you risk the
+       * password being exposed to any users who can view the job or its logs.
+       * To avoid this risk, specify a secret that contains the password instead.
+       *
+       * Learn more about [Secret
+       * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+       * Secret Manager with
+       * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
        * 
* * string password = 11; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2501,23 +2427,34 @@ public java.lang.String getPassword() { } } /** + *
+       * Required if the container image is from a private Docker registry. The
+       * password to login to the Docker registry that contains the image.
        *
+       * For security, it is strongly recommended to specify an
+       * encrypted password by using a Secret Manager secret:
+       * `projects/*/secrets/*/versions/*`.
        *
-       * 
-       * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
-       * password from the Secret Manager;
+       * Warning: If you specify the password using plain text, you risk the
+       * password being exposed to any users who can view the job or its logs.
+       * To avoid this risk, specify a secret that contains the password instead.
+       *
+       * Learn more about [Secret
+       * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+       * Secret Manager with
+       * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
        * 
* * string password = 11; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2525,39 +2462,56 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** + *
+       * Required if the container image is from a private Docker registry. The
+       * password to login to the Docker registry that contains the image.
        *
+       * For security, it is strongly recommended to specify an
+       * encrypted password by using a Secret Manager secret:
+       * `projects/*/secrets/*/versions/*`.
        *
-       * 
-       * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
-       * password from the Secret Manager;
+       * Warning: If you specify the password using plain text, you risk the
+       * password being exposed to any users who can view the job or its logs.
+       * To avoid this risk, specify a secret that contains the password instead.
+       *
+       * Learn more about [Secret
+       * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+       * Secret Manager with
+       * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
        * 
* * string password = 11; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + *
+       * Required if the container image is from a private Docker registry. The
+       * password to login to the Docker registry that contains the image.
        *
+       * For security, it is strongly recommended to specify an
+       * encrypted password by using a Secret Manager secret:
+       * `projects/*/secrets/*/versions/*`.
        *
-       * 
-       * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
-       * password from the Secret Manager;
+       * Warning: If you specify the password using plain text, you risk the
+       * password being exposed to any users who can view the job or its logs.
+       * To avoid this risk, specify a secret that contains the password instead.
+       *
+       * Learn more about [Secret
+       * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+       * Secret Manager with
+       * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
        * 
* * string password = 11; - * * @return This builder for chaining. */ public Builder clearPassword() { @@ -2567,23 +2521,31 @@ public Builder clearPassword() { return this; } /** + *
+       * Required if the container image is from a private Docker registry. The
+       * password to login to the Docker registry that contains the image.
        *
+       * For security, it is strongly recommended to specify an
+       * encrypted password by using a Secret Manager secret:
+       * `projects/*/secrets/*/versions/*`.
        *
-       * 
-       * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
-       * password from the Secret Manager;
+       * Warning: If you specify the password using plain text, you risk the
+       * password being exposed to any users who can view the job or its logs.
+       * To avoid this risk, specify a secret that contains the password instead.
+       *
+       * Learn more about [Secret
+       * Manager](https://cloud.google.com/secret-manager/docs/) and [using
+       * Secret Manager with
+       * Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
        * 
* * string password = 11; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000080; @@ -2591,10 +2553,8 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { return this; } - private boolean enableImageStreaming_; + private boolean enableImageStreaming_ ; /** - * - * *
        * Optional. If set to true, this container runnable uses Image streaming.
        *
@@ -2616,7 +2576,6 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) {
        * 
* * bool enable_image_streaming = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableImageStreaming. */ @java.lang.Override @@ -2624,8 +2583,6 @@ public boolean getEnableImageStreaming() { return enableImageStreaming_; } /** - * - * *
        * Optional. If set to true, this container runnable uses Image streaming.
        *
@@ -2647,7 +2604,6 @@ public boolean getEnableImageStreaming() {
        * 
* * bool enable_image_streaming = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableImageStreaming to set. * @return This builder for chaining. */ @@ -2659,8 +2615,6 @@ public Builder setEnableImageStreaming(boolean value) { return this; } /** - * - * *
        * Optional. If set to true, this container runnable uses Image streaming.
        *
@@ -2682,7 +2636,6 @@ public Builder setEnableImageStreaming(boolean value) {
        * 
* * bool enable_image_streaming = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableImageStreaming() { @@ -2691,7 +2644,6 @@ public Builder clearEnableImageStreaming() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2704,12 +2656,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.Runnable.Container) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.Runnable.Container) private static final com.google.cloud.batch.v1.Runnable.Container DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.Runnable.Container(); } @@ -2718,28 +2670,27 @@ public static com.google.cloud.batch.v1.Runnable.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; @@ -2754,16 +2705,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.Runnable.Container getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ScriptOrBuilder - extends + public interface ScriptOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.batch.v1.Runnable.Script) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Script file path on the host VM.
      *
@@ -2772,18 +2721,15 @@ public interface ScriptOrBuilder
      * first line of the file.(For example, to execute the script using bash,
      * `#!/bin/bash` should be the first line of the file. To execute the
      * script using`Python3`, `#!/usr/bin/env python3` should be the first
-     * line of the file.) Otherwise, the file will by default be excuted by
+     * line of the file.) Otherwise, the file will by default be executed by
      * `/bin/sh`.
      * 
* * string path = 1; - * * @return Whether the path field is set. */ boolean hasPath(); /** - * - * *
      * Script file path on the host VM.
      *
@@ -2792,18 +2738,15 @@ public interface ScriptOrBuilder
      * first line of the file.(For example, to execute the script using bash,
      * `#!/bin/bash` should be the first line of the file. To execute the
      * script using`Python3`, `#!/usr/bin/env python3` should be the first
-     * line of the file.) Otherwise, the file will by default be excuted by
+     * line of the file.) Otherwise, the file will by default be executed by
      * `/bin/sh`.
      * 
* * string path = 1; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
      * Script file path on the host VM.
      *
@@ -2812,19 +2755,17 @@ public interface ScriptOrBuilder
      * first line of the file.(For example, to execute the script using bash,
      * `#!/bin/bash` should be the first line of the file. To execute the
      * script using`Python3`, `#!/usr/bin/env python3` should be the first
-     * line of the file.) Otherwise, the file will by default be excuted by
+     * line of the file.) Otherwise, the file will by default be executed by
      * `/bin/sh`.
      * 
* * string path = 1; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
      * Shell script text.
      *
@@ -2832,17 +2773,14 @@ public interface ScriptOrBuilder
      * beginning of the text.(For example, to execute the script using bash,
      * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
      * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-     * by default be excuted by `/bin/sh`.
+     * by default be executed by `/bin/sh`.
      * 
* * string text = 2; - * * @return Whether the text field is set. */ boolean hasText(); /** - * - * *
      * Shell script text.
      *
@@ -2850,17 +2788,14 @@ public interface ScriptOrBuilder
      * beginning of the text.(For example, to execute the script using bash,
      * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
      * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-     * by default be excuted by `/bin/sh`.
+     * by default be executed by `/bin/sh`.
      * 
* * string text = 2; - * * @return The text. */ java.lang.String getText(); /** - * - * *
      * Shell script text.
      *
@@ -2868,73 +2803,66 @@ public interface ScriptOrBuilder
      * beginning of the text.(For example, to execute the script using bash,
      * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
      * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-     * by default be excuted by `/bin/sh`.
+     * by default be executed by `/bin/sh`.
      * 
* * string text = 2; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); com.google.cloud.batch.v1.Runnable.Script.CommandCase getCommandCase(); } /** - * - * *
    * Script runnable.
    * 
* * Protobuf type {@code google.cloud.batch.v1.Runnable.Script} */ - public static final class Script extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Script extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.batch.v1.Runnable.Script) ScriptOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Script.newBuilder() to construct. private Script(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Script() {} + private Script() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Script(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Runnable_Script_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_Script_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Runnable_Script_fieldAccessorTable + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_Script_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.Runnable.Script.class, - com.google.cloud.batch.v1.Runnable.Script.Builder.class); + com.google.cloud.batch.v1.Runnable.Script.class, com.google.cloud.batch.v1.Runnable.Script.Builder.class); } private int commandCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object command_; - public enum CommandCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PATH(1), TEXT(2), COMMAND_NOT_SET(0); private final int value; - private CommandCase(int value) { this.value = value; } @@ -2950,30 +2878,25 @@ public static CommandCase valueOf(int value) { public static CommandCase forNumber(int value) { switch (value) { - case 1: - return PATH; - case 2: - return TEXT; - case 0: - return COMMAND_NOT_SET; - default: - return null; + case 1: return PATH; + case 2: return TEXT; + case 0: return COMMAND_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public CommandCase getCommandCase() { - return CommandCase.forNumber(commandCase_); + public CommandCase + getCommandCase() { + return CommandCase.forNumber( + commandCase_); } public static final int PATH_FIELD_NUMBER = 1; /** - * - * *
      * Script file path on the host VM.
      *
@@ -2982,20 +2905,17 @@ public CommandCase getCommandCase() {
      * first line of the file.(For example, to execute the script using bash,
      * `#!/bin/bash` should be the first line of the file. To execute the
      * script using`Python3`, `#!/usr/bin/env python3` should be the first
-     * line of the file.) Otherwise, the file will by default be excuted by
+     * line of the file.) Otherwise, the file will by default be executed by
      * `/bin/sh`.
      * 
* * string path = 1; - * * @return Whether the path field is set. */ public boolean hasPath() { return commandCase_ == 1; } /** - * - * *
      * Script file path on the host VM.
      *
@@ -3004,12 +2924,11 @@ public boolean hasPath() {
      * first line of the file.(For example, to execute the script using bash,
      * `#!/bin/bash` should be the first line of the file. To execute the
      * script using`Python3`, `#!/usr/bin/env python3` should be the first
-     * line of the file.) Otherwise, the file will by default be excuted by
+     * line of the file.) Otherwise, the file will by default be executed by
      * `/bin/sh`.
      * 
* * string path = 1; - * * @return The path. */ public java.lang.String getPath() { @@ -3020,7 +2939,8 @@ 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(); if (commandCase_ == 1) { command_ = s; @@ -3029,8 +2949,6 @@ public java.lang.String getPath() { } } /** - * - * *
      * Script file path on the host VM.
      *
@@ -3039,22 +2957,23 @@ public java.lang.String getPath() {
      * first line of the file.(For example, to execute the script using bash,
      * `#!/bin/bash` should be the first line of the file. To execute the
      * script using`Python3`, `#!/usr/bin/env python3` should be the first
-     * line of the file.) Otherwise, the file will by default be excuted by
+     * line of the file.) Otherwise, the file will by default be executed by
      * `/bin/sh`.
      * 
* * string path = 1; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = ""; if (commandCase_ == 1) { ref = command_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (commandCase_ == 1) { command_ = b; } @@ -3066,8 +2985,6 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int TEXT_FIELD_NUMBER = 2; /** - * - * *
      * Shell script text.
      *
@@ -3075,19 +2992,16 @@ public com.google.protobuf.ByteString getPathBytes() {
      * beginning of the text.(For example, to execute the script using bash,
      * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
      * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-     * by default be excuted by `/bin/sh`.
+     * by default be executed by `/bin/sh`.
      * 
* * string text = 2; - * * @return Whether the text field is set. */ public boolean hasText() { return commandCase_ == 2; } /** - * - * *
      * Shell script text.
      *
@@ -3095,11 +3009,10 @@ public boolean hasText() {
      * beginning of the text.(For example, to execute the script using bash,
      * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
      * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-     * by default be excuted by `/bin/sh`.
+     * by default be executed by `/bin/sh`.
      * 
* * string text = 2; - * * @return The text. */ public java.lang.String getText() { @@ -3110,7 +3023,8 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (commandCase_ == 2) { command_ = s; @@ -3119,8 +3033,6 @@ public java.lang.String getText() { } } /** - * - * *
      * Shell script text.
      *
@@ -3128,21 +3040,22 @@ public java.lang.String getText() {
      * beginning of the text.(For example, to execute the script using bash,
      * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
      * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-     * by default be excuted by `/bin/sh`.
+     * by default be executed by `/bin/sh`.
      * 
* * string text = 2; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = ""; if (commandCase_ == 2) { ref = command_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (commandCase_ == 2) { command_ = b; } @@ -3153,7 +3066,6 @@ public com.google.protobuf.ByteString getTextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3165,7 +3077,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 (commandCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, command_); } @@ -3195,21 +3108,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.batch.v1.Runnable.Script)) { return super.equals(obj); } - com.google.cloud.batch.v1.Runnable.Script other = - (com.google.cloud.batch.v1.Runnable.Script) obj; + com.google.cloud.batch.v1.Runnable.Script other = (com.google.cloud.batch.v1.Runnable.Script) obj; if (!getCommandCase().equals(other.getCommandCase())) return false; switch (commandCase_) { case 1: - if (!getPath().equals(other.getPath())) return false; + if (!getPath() + .equals(other.getPath())) return false; break; case 2: - if (!getText().equals(other.getText())) return false; + if (!getText() + .equals(other.getText())) return false; break; case 0: default: @@ -3242,94 +3156,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.batch.v1.Runnable.Script parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.batch.v1.Runnable.Script parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.Runnable.Script parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.Runnable.Script parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.Runnable.Script parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.Runnable.Script parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.batch.v1.Runnable.Script parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.batch.v1.Runnable.Script parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.Runnable.Script parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.Runnable.Script parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.batch.v1.Runnable.Script parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.batch.v1.Runnable.Script parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.batch.v1.Runnable.Script parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.batch.v1.Runnable.Script parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.batch.v1.Runnable.Script prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3339,41 +3249,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Script runnable.
      * 
* * Protobuf type {@code google.cloud.batch.v1.Runnable.Script} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.batch.v1.Runnable.Script) com.google.cloud.batch.v1.Runnable.ScriptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Runnable_Script_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_Script_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Runnable_Script_fieldAccessorTable + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_Script_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.batch.v1.Runnable.Script.class, - com.google.cloud.batch.v1.Runnable.Script.Builder.class); + com.google.cloud.batch.v1.Runnable.Script.class, com.google.cloud.batch.v1.Runnable.Script.Builder.class); } // Construct using com.google.cloud.batch.v1.Runnable.Script.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(); @@ -3384,9 +3292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.batch.v1.TaskProto - .internal_static_google_cloud_batch_v1_Runnable_Script_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.batch.v1.TaskProto.internal_static_google_cloud_batch_v1_Runnable_Script_descriptor; } @java.lang.Override @@ -3405,11 +3313,8 @@ public com.google.cloud.batch.v1.Runnable.Script build() { @java.lang.Override public com.google.cloud.batch.v1.Runnable.Script buildPartial() { - com.google.cloud.batch.v1.Runnable.Script result = - new com.google.cloud.batch.v1.Runnable.Script(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.batch.v1.Runnable.Script result = new com.google.cloud.batch.v1.Runnable.Script(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -3428,41 +3333,38 @@ private void buildPartialOneofs(com.google.cloud.batch.v1.Runnable.Script result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.batch.v1.Runnable.Script) { - return mergeFrom((com.google.cloud.batch.v1.Runnable.Script) other); + return mergeFrom((com.google.cloud.batch.v1.Runnable.Script)other); } else { super.mergeFrom(other); return this; @@ -3472,24 +3374,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.batch.v1.Runnable.Script other) { if (other == com.google.cloud.batch.v1.Runnable.Script.getDefaultInstance()) return this; switch (other.getCommandCase()) { - case PATH: - { - commandCase_ = 1; - command_ = other.command_; - onChanged(); - break; - } - case TEXT: - { - commandCase_ = 2; - command_ = other.command_; - onChanged(); - break; - } - case COMMAND_NOT_SET: - { - break; - } + case PATH: { + commandCase_ = 1; + command_ = other.command_; + onChanged(); + break; + } + case TEXT: { + commandCase_ = 2; + command_ = other.command_; + onChanged(); + break; + } + case COMMAND_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3517,27 +3416,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - commandCase_ = 1; - command_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - commandCase_ = 2; - command_ = s; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + commandCase_ = 1; + command_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + commandCase_ = 2; + command_ = s; + 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) { @@ -3547,12 +3443,12 @@ public Builder mergeFrom( } // finally return this; } - private int commandCase_ = 0; private java.lang.Object command_; - - public CommandCase getCommandCase() { - return CommandCase.forNumber(commandCase_); + public CommandCase + getCommandCase() { + return CommandCase.forNumber( + commandCase_); } public Builder clearCommand() { @@ -3565,8 +3461,6 @@ public Builder clearCommand() { private int bitField0_; /** - * - * *
        * Script file path on the host VM.
        *
@@ -3575,12 +3469,11 @@ public Builder clearCommand() {
        * first line of the file.(For example, to execute the script using bash,
        * `#!/bin/bash` should be the first line of the file. To execute the
        * script using`Python3`, `#!/usr/bin/env python3` should be the first
-       * line of the file.) Otherwise, the file will by default be excuted by
+       * line of the file.) Otherwise, the file will by default be executed by
        * `/bin/sh`.
        * 
* * string path = 1; - * * @return Whether the path field is set. */ @java.lang.Override @@ -3588,8 +3481,6 @@ public boolean hasPath() { return commandCase_ == 1; } /** - * - * *
        * Script file path on the host VM.
        *
@@ -3598,12 +3489,11 @@ public boolean hasPath() {
        * first line of the file.(For example, to execute the script using bash,
        * `#!/bin/bash` should be the first line of the file. To execute the
        * script using`Python3`, `#!/usr/bin/env python3` should be the first
-       * line of the file.) Otherwise, the file will by default be excuted by
+       * line of the file.) Otherwise, the file will by default be executed by
        * `/bin/sh`.
        * 
* * string path = 1; - * * @return The path. */ @java.lang.Override @@ -3613,7 +3503,8 @@ public java.lang.String getPath() { ref = command_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (commandCase_ == 1) { command_ = s; @@ -3624,8 +3515,6 @@ public java.lang.String getPath() { } } /** - * - * *
        * Script file path on the host VM.
        *
@@ -3634,23 +3523,24 @@ public java.lang.String getPath() {
        * first line of the file.(For example, to execute the script using bash,
        * `#!/bin/bash` should be the first line of the file. To execute the
        * script using`Python3`, `#!/usr/bin/env python3` should be the first
-       * line of the file.) Otherwise, the file will by default be excuted by
+       * line of the file.) Otherwise, the file will by default be executed by
        * `/bin/sh`.
        * 
* * 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 = ""; if (commandCase_ == 1) { ref = command_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (commandCase_ == 1) { command_ = b; } @@ -3660,8 +3550,6 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
        * Script file path on the host VM.
        *
@@ -3670,27 +3558,23 @@ public com.google.protobuf.ByteString getPathBytes() {
        * first line of the file.(For example, to execute the script using bash,
        * `#!/bin/bash` should be the first line of the file. To execute the
        * script using`Python3`, `#!/usr/bin/env python3` should be the first
-       * line of the file.) Otherwise, the file will by default be excuted by
+       * line of the file.) Otherwise, the file will by default be executed by
        * `/bin/sh`.
        * 
* * string path = 1; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } commandCase_ = 1; command_ = value; onChanged(); return this; } - /** - * - * + /** *
        * Script file path on the host VM.
        *
@@ -3699,12 +3583,11 @@ public Builder setPath(java.lang.String value) {
        * first line of the file.(For example, to execute the script using bash,
        * `#!/bin/bash` should be the first line of the file. To execute the
        * script using`Python3`, `#!/usr/bin/env python3` should be the first
-       * line of the file.) Otherwise, the file will by default be excuted by
+       * line of the file.) Otherwise, the file will by default be executed by
        * `/bin/sh`.
        * 
* * string path = 1; - * * @return This builder for chaining. */ public Builder clearPath() { @@ -3716,8 +3599,6 @@ public Builder clearPath() { return this; } /** - * - * *
        * Script file path on the host VM.
        *
@@ -3726,19 +3607,17 @@ public Builder clearPath() {
        * first line of the file.(For example, to execute the script using bash,
        * `#!/bin/bash` should be the first line of the file. To execute the
        * script using`Python3`, `#!/usr/bin/env python3` should be the first
-       * line of the file.) Otherwise, the file will by default be excuted by
+       * line of the file.) Otherwise, the file will by default be executed by
        * `/bin/sh`.
        * 
* * string path = 1; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); commandCase_ = 1; command_ = value; @@ -3747,8 +3626,6 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { } /** - * - * *
        * Shell script text.
        *
@@ -3756,11 +3633,10 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) {
        * beginning of the text.(For example, to execute the script using bash,
        * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
        * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-       * by default be excuted by `/bin/sh`.
+       * by default be executed by `/bin/sh`.
        * 
* * string text = 2; - * * @return Whether the text field is set. */ @java.lang.Override @@ -3768,8 +3644,6 @@ public boolean hasText() { return commandCase_ == 2; } /** - * - * *
        * Shell script text.
        *
@@ -3777,11 +3651,10 @@ public boolean hasText() {
        * beginning of the text.(For example, to execute the script using bash,
        * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
        * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-       * by default be excuted by `/bin/sh`.
+       * by default be executed by `/bin/sh`.
        * 
* * string text = 2; - * * @return The text. */ @java.lang.Override @@ -3791,7 +3664,8 @@ public java.lang.String getText() { ref = command_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (commandCase_ == 2) { command_ = s; @@ -3802,8 +3676,6 @@ public java.lang.String getText() { } } /** - * - * *
        * Shell script text.
        *
@@ -3811,22 +3683,23 @@ public java.lang.String getText() {
        * beginning of the text.(For example, to execute the script using bash,
        * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
        * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-       * by default be excuted by `/bin/sh`.
+       * by default be executed by `/bin/sh`.
        * 
* * string text = 2; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = ""; if (commandCase_ == 2) { ref = command_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (commandCase_ == 2) { command_ = b; } @@ -3836,8 +3709,6 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
        * Shell script text.
        *
@@ -3845,26 +3716,22 @@ public com.google.protobuf.ByteString getTextBytes() {
        * beginning of the text.(For example, to execute the script using bash,
        * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
        * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-       * by default be excuted by `/bin/sh`.
+       * by default be executed by `/bin/sh`.
        * 
* * string text = 2; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } commandCase_ = 2; command_ = value; onChanged(); return this; } /** - * - * *
        * Shell script text.
        *
@@ -3872,11 +3739,10 @@ public Builder setText(java.lang.String value) {
        * beginning of the text.(For example, to execute the script using bash,
        * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
        * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-       * by default be excuted by `/bin/sh`.
+       * by default be executed by `/bin/sh`.
        * 
* * string text = 2; - * * @return This builder for chaining. */ public Builder clearText() { @@ -3888,8 +3754,6 @@ public Builder clearText() { return this; } /** - * - * *
        * Shell script text.
        *
@@ -3897,25 +3761,22 @@ public Builder clearText() {
        * beginning of the text.(For example, to execute the script using bash,
        * `#!/bin/bash\n` should be added. To execute the script using`Python3`,
        * `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
-       * by default be excuted by `/bin/sh`.
+       * by default be executed by `/bin/sh`.
        * 
* * string text = 2; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); commandCase_ = 2; command_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3928,12 +3789,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.Runnable.Script) } // @@protoc_insertion_point(class_scope:google.cloud.batch.v1.Runnable.Script) private static final com.google.cloud.batch.v1.Runnable.Script DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.batch.v1.Runnable.Script(); } @@ -3942,28 +3803,27 @@ public static com.google.cloud.batch.v1.Runnable.Script getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser