From 9f15a531ad25f6fedd1e758a691cfdd46c19e4e3 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 22 Jun 2022 21:48:13 +0000 Subject: [PATCH 1/8] feat: add client library BUILD rules, API proto option, v1alpha service config file and service YAML file PiperOrigin-RevId: 456598021 Source-Link: https://github.com/googleapis/googleapis/commit/bf12acd0d54ea61ea15ffaa3078f3497f35d6751 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e0e994c3d7c01652ae59870da7b7ece1a9532c5b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTBlOTk0YzNkN2MwMTY1MmFlNTk4NzBkYTdiN2VjZTFhOTUzMmM1YiJ9 --- .../cloud/batch/v1/BatchServiceGrpc.java | 893 -- .../cloud/batch/v1/BatchServiceClient.java | 32 +- .../cloud/batch/v1/BatchServiceSettings.java | 7 +- .../google/cloud/batch/v1/gapic_metadata.json | 0 .../google/cloud/batch/v1/package-info.java | 4 +- .../cloud/batch/v1/stub/BatchServiceStub.java | 0 .../v1/stub/BatchServiceStubSettings.java | 6 +- .../stub/GrpcBatchServiceCallableFactory.java | 0 .../batch/v1/stub/GrpcBatchServiceStub.java | 1 + .../batch/v1/BatchServiceClientTest.java | 0 .../cloud/batch/v1/MockBatchService.java | 0 .../cloud/batch/v1/MockBatchServiceImpl.java | 0 .../google/cloud/location/MockLocations.java | 0 .../cloud/location/MockLocationsImpl.java | 0 .../java/com/google/iam/v1/MockIAMPolicy.java | 0 .../com/google/iam/v1/MockIAMPolicyImpl.java | 0 .../cloud/batch/v1/BatchServiceGrpc.java | 743 + .../cloud/batch/v1/AllocationPolicy.java | 5418 +++---- .../batch/v1/AllocationPolicyOrBuilder.java | 99 +- .../com/google/cloud/batch/v1/BatchProto.java | 227 + .../cloud/batch/v1/ComputeResource.java | 336 +- .../batch/v1/ComputeResourceOrBuilder.java | 27 +- .../cloud/batch/v1/CreateJobRequest.java | 589 +- .../batch/v1/CreateJobRequestOrBuilder.java | 65 +- .../cloud/batch/v1/DeleteJobRequest.java | 459 +- .../batch/v1/DeleteJobRequestOrBuilder.java | 45 +- .../google/cloud/batch/v1/Environment.java | 486 +- .../cloud/batch/v1/EnvironmentOrBuilder.java | 49 +- .../java/com/google/cloud/batch/v1/GCS.java | 288 +- .../google/cloud/batch/v1/GCSOrBuilder.java | 27 +- .../google/cloud/batch/v1/GetJobRequest.java | 326 +- .../batch/v1/GetJobRequestOrBuilder.java | 29 + .../google/cloud/batch/v1/GetTaskRequest.java | 326 +- .../batch/v1/GetTaskRequestOrBuilder.java | 29 + .../java/com/google/cloud/batch/v1/Job.java | 1735 +-- .../com/google/cloud/batch/v1/JobName.java | 0 .../cloud/batch/v1/JobNotification.java | 994 +- .../batch/v1/JobNotificationOrBuilder.java | 67 + .../google/cloud/batch/v1/JobOrBuilder.java | 216 +- .../com/google/cloud/batch/v1/JobProto.java | 388 + .../com/google/cloud/batch/v1/JobStatus.java | 2096 +-- .../cloud/batch/v1/JobStatusOrBuilder.java | 109 +- .../cloud/batch/v1/LifecyclePolicy.java | 797 +- .../batch/v1/LifecyclePolicyOrBuilder.java | 32 +- .../cloud/batch/v1/ListJobsRequest.java | 493 +- .../batch/v1/ListJobsRequestOrBuilder.java | 48 +- .../cloud/batch/v1/ListJobsResponse.java | 567 +- .../batch/v1/ListJobsResponseOrBuilder.java | 64 +- .../cloud/batch/v1/ListTasksRequest.java | 551 +- .../batch/v1/ListTasksRequestOrBuilder.java | 64 +- .../cloud/batch/v1/ListTasksResponse.java | 568 +- .../batch/v1/ListTasksResponseOrBuilder.java | 64 +- .../google/cloud/batch/v1/LocationName.java | 0 .../com/google/cloud/batch/v1/LogsPolicy.java | 442 +- .../cloud/batch/v1/LogsPolicyOrBuilder.java | 37 +- .../java/com/google/cloud/batch/v1/NFS.java | 367 +- .../google/cloud/batch/v1/NFSOrBuilder.java | 36 +- .../cloud/batch/v1/OperationMetadata.java | 842 +- .../batch/v1/OperationMetadataOrBuilder.java | 91 +- .../com/google/cloud/batch/v1/Runnable.java | 2416 ++- .../cloud/batch/v1/RunnableOrBuilder.java | 51 +- .../google/cloud/batch/v1/StatusEvent.java | 562 +- .../cloud/batch/v1/StatusEventOrBuilder.java | 52 +- .../java/com/google/cloud/batch/v1/Task.java | 385 +- .../google/cloud/batch/v1/TaskExecution.java | 256 +- .../batch/v1/TaskExecutionOrBuilder.java | 20 + .../com/google/cloud/batch/v1/TaskGroup.java | 797 +- .../google/cloud/batch/v1/TaskGroupName.java | 0 .../cloud/batch/v1/TaskGroupOrBuilder.java | 85 +- .../com/google/cloud/batch/v1/TaskName.java | 0 .../google/cloud/batch/v1/TaskOrBuilder.java | 35 +- .../com/google/cloud/batch/v1/TaskProto.java | 274 + .../com/google/cloud/batch/v1/TaskSpec.java | 1185 +- .../cloud/batch/v1/TaskSpecOrBuilder.java | 134 +- .../com/google/cloud/batch/v1/TaskStatus.java | 508 +- .../cloud/batch/v1/TaskStatusOrBuilder.java | 42 +- .../com/google/cloud/batch/v1/Volume.java | 769 +- .../cloud/batch/v1/VolumeOrBuilder.java | 73 +- .../google/cloud/batch/v1/VolumeProto.java | 80 + .../proto/google/cloud/batch/v1/batch.proto | 15 +- .../proto/google/cloud/batch/v1/job.proto | 65 +- .../proto/google/cloud/batch/v1/task.proto | 7 +- .../proto/google/cloud/batch/v1/volume.proto | 3 + .../batch/v1alpha/BatchServiceClient.java | 1028 ++ .../batch/v1alpha/BatchServiceSettings.java | 257 + .../cloud/batch/v1alpha/gapic_metadata.json | 36 + .../cloud/batch/v1alpha/package-info.java | 41 + .../batch/v1alpha/stub/BatchServiceStub.java | 95 + .../stub/BatchServiceStubSettings.java | 582 + .../stub/GrpcBatchServiceCallableFactory.java | 115 + .../v1alpha/stub/GrpcBatchServiceStub.java | 345 + .../batch/v1alpha/BatchServiceClientTest.java | 557 + .../cloud/batch/v1alpha/MockBatchService.java | 59 + .../batch/v1alpha/MockBatchServiceImpl.java | 182 + .../cloud/batch/v1alpha/BatchServiceGrpc.java | 743 + .../cloud/batch/v1alpha/AllocationPolicy.java | 12698 ++++++++++++++++ .../v1alpha/AllocationPolicyOrBuilder.java | 406 + .../cloud/batch/v1alpha/BatchProto.java | 231 + .../cloud/batch/v1alpha/ComputeResource.java | 757 + .../v1alpha/ComputeResourceOrBuilder.java | 50 + .../cloud/batch/v1alpha/CreateJobRequest.java | 1282 ++ .../v1alpha/CreateJobRequestOrBuilder.java | 130 + .../cloud/batch/v1alpha/DeleteJobRequest.java | 997 ++ .../v1alpha/DeleteJobRequestOrBuilder.java | 89 + .../cloud/batch/v1alpha/Environment.java | 2128 +++ .../batch/v1alpha/EnvironmentOrBuilder.java | 161 + .../com/google/cloud/batch/v1alpha/GCS.java | 602 + .../cloud/batch/v1alpha/GCSOrBuilder.java | 31 + .../cloud/batch/v1alpha/GetJobRequest.java | 595 + .../batch/v1alpha/GetJobRequestOrBuilder.java | 29 + .../cloud/batch/v1alpha/GetTaskRequest.java | 595 + .../v1alpha/GetTaskRequestOrBuilder.java | 29 + .../com/google/cloud/batch/v1alpha/Job.java | 4359 ++++++ .../cloud/batch/v1alpha/JobDependency.java | 1180 ++ .../batch/v1alpha/JobDependencyOrBuilder.java | 131 + .../google/cloud/batch/v1alpha/JobName.java | 216 + .../cloud/batch/v1alpha/JobNotification.java | 1877 +++ .../v1alpha/JobNotificationOrBuilder.java | 67 + .../cloud/batch/v1alpha/JobOrBuilder.java | 497 + .../google/cloud/batch/v1alpha/JobProto.java | 470 + .../google/cloud/batch/v1alpha/JobStatus.java | 3946 +++++ .../batch/v1alpha/JobStatusOrBuilder.java | 160 + .../cloud/batch/v1alpha/LifecyclePolicy.java | 1652 ++ .../v1alpha/LifecyclePolicyOrBuilder.java | 55 + .../cloud/batch/v1alpha/ListJobsRequest.java | 1007 ++ .../v1alpha/ListJobsRequestOrBuilder.java | 79 + .../cloud/batch/v1alpha/ListJobsResponse.java | 1282 ++ .../v1alpha/ListJobsResponseOrBuilder.java | 114 + .../cloud/batch/v1alpha/ListTasksRequest.java | 1035 ++ .../v1alpha/ListTasksRequestOrBuilder.java | 87 + .../batch/v1alpha/ListTasksResponse.java | 1282 ++ .../v1alpha/ListTasksResponseOrBuilder.java | 114 + .../cloud/batch/v1alpha/LocationName.java | 192 + .../cloud/batch/v1alpha/LogsPolicy.java | 880 ++ .../batch/v1alpha/LogsPolicyOrBuilder.java | 52 + .../com/google/cloud/batch/v1alpha/NFS.java | 761 + .../cloud/batch/v1alpha/NFSOrBuilder.java | 49 + .../batch/v1alpha/OperationMetadata.java | 1658 ++ .../v1alpha/OperationMetadataOrBuilder.java | 156 + .../com/google/cloud/batch/v1alpha/PD.java | 862 ++ .../cloud/batch/v1alpha/PDOrBuilder.java | 64 + .../google/cloud/batch/v1alpha/Runnable.java | 6142 ++++++++ .../batch/v1alpha/RunnableOrBuilder.java | 244 + .../cloud/batch/v1alpha/ServiceAccount.java | 862 ++ .../v1alpha/ServiceAccountOrBuilder.java | 76 + .../cloud/batch/v1alpha/StatusEvent.java | 1233 ++ .../batch/v1alpha/StatusEventOrBuilder.java | 103 + .../com/google/cloud/batch/v1alpha/Task.java | 852 ++ .../cloud/batch/v1alpha/TaskExecution.java | 515 + .../batch/v1alpha/TaskExecutionOrBuilder.java | 20 + .../google/cloud/batch/v1alpha/TaskGroup.java | 2799 ++++ .../cloud/batch/v1alpha/TaskGroupName.java | 257 + .../batch/v1alpha/TaskGroupOrBuilder.java | 333 + .../google/cloud/batch/v1alpha/TaskName.java | 298 + .../cloud/batch/v1alpha/TaskOrBuilder.java | 62 + .../google/cloud/batch/v1alpha/TaskProto.java | 324 + .../google/cloud/batch/v1alpha/TaskSpec.java | 3269 ++++ .../batch/v1alpha/TaskSpecOrBuilder.java | 378 + .../cloud/batch/v1alpha/TaskStatus.java | 1192 ++ .../batch/v1alpha/TaskStatusOrBuilder.java | 72 + .../google/cloud/batch/v1alpha/Volume.java | 2019 +++ .../cloud/batch/v1alpha/VolumeOrBuilder.java | 214 + .../cloud/batch/v1alpha/VolumeProto.java | 95 + .../google/cloud/batch/v1alpha/batch.proto | 272 + .../google/cloud/batch/v1alpha/job.proto | 539 + .../google/cloud/batch/v1alpha/task.proto | 322 + .../google/cloud/batch/v1alpha/volume.proto | 90 + .../com/google/cloud/batch/v1/BatchProto.java | 254 - .../batch/v1/GetJobRequestOrBuilder.java | 54 - .../batch/v1/GetTaskRequestOrBuilder.java | 54 - .../batch/v1/JobNotificationOrBuilder.java | 99 - .../com/google/cloud/batch/v1/JobProto.java | 439 - .../batch/v1/TaskExecutionOrBuilder.java | 39 - .../com/google/cloud/batch/v1/TaskProto.java | 320 - .../google/cloud/batch/v1/VolumeProto.java | 91 - 175 files changed, 83727 insertions(+), 18332 deletions(-) delete mode 100644 grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java (96%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java (96%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/main/java/com/google/cloud/batch/v1/gapic_metadata.json (100%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/main/java/com/google/cloud/batch/v1/package-info.java (89%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java (100%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java (98%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceCallableFactory.java (100%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java (99%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/test/java/com/google/cloud/batch/v1/BatchServiceClientTest.java (100%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/test/java/com/google/cloud/batch/v1/MockBatchService.java (100%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/test/java/com/google/cloud/batch/v1/MockBatchServiceImpl.java (100%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/test/java/com/google/cloud/location/MockLocations.java (100%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/test/java/com/google/cloud/location/MockLocationsImpl.java (100%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/test/java/com/google/iam/v1/MockIAMPolicy.java (100%) rename {google-cloud-batch => owl-bot-staging/v1/google-cloud-batch}/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java (72%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java (77%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/ComputeResource.java (69%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java (52%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java (74%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java (77%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java (75%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java (76%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/Environment.java (60%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java (51%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/GCS.java (70%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java (51%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/Job.java (67%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/JobName.java (100%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/JobNotification.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java (70%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/JobStatus.java (69%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java (62%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java (72%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java (70%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java (70%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java (58%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java (72%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java (66%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java (67%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java (51%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java (73%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java (66%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/LocationName.java (100%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java (69%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java (58%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/NFS.java (70%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java (55%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java (71%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/Runnable.java (75%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/RunnableOrBuilder.java (81%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/StatusEvent.java (71%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/StatusEventOrBuilder.java (71%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/Task.java (70%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/TaskExecution.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/TaskGroup.java (78%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/TaskGroupName.java (100%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/TaskGroupOrBuilder.java (82%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/TaskName.java (100%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/TaskOrBuilder.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskProto.java rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/TaskSpec.java (79%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/TaskSpecOrBuilder.java (86%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/TaskStatus.java (74%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/TaskStatusOrBuilder.java (68%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/Volume.java (74%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/java/com/google/cloud/batch/v1/VolumeOrBuilder.java (81%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeProto.java rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/proto/google/cloud/batch/v1/batch.proto (94%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/proto/google/cloud/batch/v1/job.proto (86%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/proto/google/cloud/batch/v1/task.proto (97%) rename {proto-google-cloud-batch-v1 => owl-bot-staging/v1/proto-google-cloud-batch-v1}/src/main/proto/google/cloud/batch/v1/volume.proto (93%) create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceSettings.java create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/gapic_metadata.json create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/package-info.java create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStub.java create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/GrpcBatchServiceCallableFactory.java create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/GrpcBatchServiceStub.java create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/test/java/com/google/cloud/batch/v1alpha/BatchServiceClientTest.java create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/test/java/com/google/cloud/batch/v1alpha/MockBatchService.java create mode 100644 owl-bot-staging/v1alpha/google-cloud-batch/src/test/java/com/google/cloud/batch/v1alpha/MockBatchServiceImpl.java create mode 100644 owl-bot-staging/v1alpha/grpc-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceGrpc.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ComputeResource.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ComputeResourceOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequest.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequestOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/DeleteJobRequest.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/DeleteJobRequestOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Environment.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/EnvironmentOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GCS.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GCSOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetJobRequest.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetJobRequestOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetTaskRequest.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GetTaskRequestOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Job.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobDependency.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobDependencyOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobName.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotification.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotificationOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobStatus.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobStatusOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LifecyclePolicy.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LifecyclePolicyOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListJobsRequest.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListJobsRequestOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListJobsResponse.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListJobsResponseOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListTasksRequest.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListTasksRequestOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListTasksResponse.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ListTasksResponseOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LocationName.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicy.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LogsPolicyOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFS.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFSOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/OperationMetadata.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/OperationMetadataOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PD.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PDOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Runnable.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/RunnableOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccount.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccountOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/StatusEvent.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/StatusEventOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Task.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskExecution.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskExecutionOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroup.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupName.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskName.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskProto.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpec.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpecOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskStatus.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskStatusOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Volume.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeProto.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/task.proto create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/volume.proto delete mode 100644 proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java delete mode 100644 proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java delete mode 100644 proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java delete mode 100644 proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java delete mode 100644 proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskProto.java delete mode 100644 proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeProto.java diff --git a/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java b/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java deleted file mode 100644 index 0f328f0..0000000 --- a/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java +++ /dev/null @@ -1,893 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.batch.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Google Cloud 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/v1/batch.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BatchServiceGrpc { - - private BatchServiceGrpc() {} - - public static final 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; - - @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; - 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(); - } - } - } - return getCreateJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1.GetJobRequest, com.google.cloud.batch.v1.Job> - 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; - 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(); - } - } - } - return getGetJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1.DeleteJobRequest, com.google.longrunning.Operation> - 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; - 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(); - } - } - } - return getDeleteJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1.ListJobsRequest, com.google.cloud.batch.v1.ListJobsResponse> - 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; - 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(); - } - } - } - return getListJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1.GetTaskRequest, com.google.cloud.batch.v1.Task> - 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; - 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(); - } - } - } - return getGetTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.batch.v1.ListTasksRequest, com.google.cloud.batch.v1.ListTasksResponse> - 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; - 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(); - } - } - } - 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 Cloud 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 { - - /** - * - * - *
-     * Create a Job.
-     * 
- */ - public 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.
-     * 
- */ - public void getJob( - com.google.cloud.batch.v1.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a Job.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void listTasks( - com.google.cloud.batch.v1.ListTasksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.CreateJobRequest, com.google.cloud.batch.v1.Job>( - this, METHODID_CREATE_JOB))) - .addMethod( - getGetJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.GetJobRequest, com.google.cloud.batch.v1.Job>( - this, METHODID_GET_JOB))) - .addMethod( - getDeleteJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.DeleteJobRequest, com.google.longrunning.Operation>( - this, METHODID_DELETE_JOB))) - .addMethod( - getListJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.ListJobsRequest, - com.google.cloud.batch.v1.ListJobsResponse>(this, METHODID_LIST_JOBS))) - .addMethod( - getGetTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.GetTaskRequest, com.google.cloud.batch.v1.Task>( - this, METHODID_GET_TASK))) - .addMethod( - getListTasksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.batch.v1.ListTasksRequest, - com.google.cloud.batch.v1.ListTasksResponse>(this, METHODID_LIST_TASKS))) - .build(); - } - } - - /** - * - * - *
-   * Google Cloud 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.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, - 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, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List all Jobs for a project.
-     * 
- */ - 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, - 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, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * Google Cloud 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.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.
-     * 
- */ - public com.google.cloud.batch.v1.Job getJob(com.google.cloud.batch.v1.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.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List all Jobs for a project.
-     * 
- */ - 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) { - 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) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTasksMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Google Cloud 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.v1.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.v1.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.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List all Jobs for a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.batch.v1.ListJobsResponse> - 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) { - 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) { - 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 BatchServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BatchServiceImplBase 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.v1.CreateJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JOB: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_JOBS: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TASKS: - serviceImpl.listTasks( - (com.google.cloud.batch.v1.ListTasksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class 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.v1.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 String methodName; - - BatchServiceMethodDescriptorSupplier(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/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java similarity index 96% rename from google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java rename to owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java index d88b6e9..de2d8dd 100644 --- a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java @@ -39,8 +39,8 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: Google Cloud Batch Service. The service manages user submitted batch jobs - * and allocates Google Compute Engine VM instances to run the jobs. + * Service Description: Google Batch Service. The service manages user submitted batch jobs and + * allocates Google Compute Engine VM instances to run the jobs. * *

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

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -183,8 +183,8 @@ public final OperationsClient getOperationsClient() { * } * } * - * @param parent Required. The parent resource name where the Job will be created. Format: - * projects/{project}/locations/{location} + * @param parent Required. The parent resource name where the Job will be created. Pattern: + * "projects/{project}/locations/{location}" * @param job Required. The Job to create. * @param jobId ID used to uniquely identify the Job within its parent scope. This field should * contain at most 63 characters. Only alphanumeric characters or '-' are accepted. The '-' @@ -221,8 +221,8 @@ public final Job createJob(LocationName parent, Job job, String jobId) { * } * } * - * @param parent Required. The parent resource name where the Job will be created. Format: - * projects/{project}/locations/{location} + * @param parent Required. The parent resource name where the Job will be created. Pattern: + * "projects/{project}/locations/{location}" * @param job Required. The Job to create. * @param jobId ID used to uniquely identify the Job within its parent scope. This field should * contain at most 63 characters. Only alphanumeric characters or '-' are accepted. The '-' @@ -495,7 +495,7 @@ public final UnaryCallable deleteJobCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List all Jobs for a project. + * List all Jobs for a project within a region. * *

Sample code: * @@ -520,7 +520,7 @@ public final ListJobsPagedResponse listJobs(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List all Jobs for a project. + * List all Jobs for a project within a region. * *

Sample code: * @@ -550,7 +550,7 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List all Jobs for a project. + * List all Jobs for a project within a region. * *

Sample code: * @@ -579,7 +579,7 @@ public final UnaryCallable listJobsPaged // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List all Jobs for a project. + * List all Jobs for a project within a region. * *

Sample code: * @@ -731,7 +731,8 @@ public final UnaryCallable getTaskCallable() { * } * } * - * @param parent Required. Path of the TaskGroup from which Tasks are being requested. + * @param parent Required. Name of a TaskGroup from which Tasks are being requested. Pattern: + * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTasksPagedResponse listTasks(TaskGroupName parent) { @@ -758,7 +759,8 @@ public final ListTasksPagedResponse listTasks(TaskGroupName parent) { * } * } * - * @param parent Required. Path of the TaskGroup from which Tasks are being requested. + * @param parent Required. Name of a TaskGroup from which Tasks are being requested. Pattern: + * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTasksPagedResponse listTasks(String parent) { diff --git a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java similarity index 96% rename from google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java rename to owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java index c59f366..ab90198 100644 --- a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.batch.v1.stub.BatchServiceStubSettings; @@ -45,9 +46,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/gapic_metadata.json similarity index 100% rename from google-cloud-batch/src/main/java/com/google/cloud/batch/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/gapic_metadata.json diff --git a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java similarity index 89% rename from google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java index 5cb6b88..e675510 100644 --- a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java +++ b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/package-info.java @@ -21,8 +21,8 @@ * *

======================= BatchServiceClient ======================= * - *

Service Description: Google Cloud Batch Service. The service manages user submitted batch jobs - * and allocates Google Compute Engine VM instances to run the jobs. + *

Service Description: Google Batch Service. The service manages user submitted batch jobs and + * allocates Google Compute Engine VM instances to run the jobs. * *

Sample for BatchServiceClient: * diff --git a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java similarity index 100% rename from google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java rename to owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java diff --git a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java similarity index 98% rename from google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java index be72d6b..1f2efb7 100644 --- a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java @@ -74,9 +74,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceCallableFactory.java similarity index 100% rename from google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceCallableFactory.java diff --git a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java similarity index 99% rename from google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java rename to owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java index 0ac056a..0e9aee8 100644 --- a/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/GrpcBatchServiceStub.java @@ -44,6 +44,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientTest.java b/owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientTest.java similarity index 100% rename from google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/BatchServiceClientTest.java diff --git a/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchService.java b/owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchService.java similarity index 100% rename from google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchService.java rename to owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchService.java diff --git a/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchServiceImpl.java b/owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchServiceImpl.java similarity index 100% rename from google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchServiceImpl.java rename to owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/cloud/batch/v1/MockBatchServiceImpl.java diff --git a/google-cloud-batch/src/test/java/com/google/cloud/location/MockLocations.java b/owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/cloud/location/MockLocations.java similarity index 100% rename from google-cloud-batch/src/test/java/com/google/cloud/location/MockLocations.java rename to owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/cloud/location/MockLocations.java diff --git a/google-cloud-batch/src/test/java/com/google/cloud/location/MockLocationsImpl.java b/owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/cloud/location/MockLocationsImpl.java similarity index 100% rename from google-cloud-batch/src/test/java/com/google/cloud/location/MockLocationsImpl.java rename to owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/cloud/location/MockLocationsImpl.java diff --git a/google-cloud-batch/src/test/java/com/google/iam/v1/MockIAMPolicy.java b/owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/iam/v1/MockIAMPolicy.java similarity index 100% rename from google-cloud-batch/src/test/java/com/google/iam/v1/MockIAMPolicy.java rename to owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/iam/v1/MockIAMPolicy.java diff --git a/google-cloud-batch/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java b/owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java similarity index 100% rename from google-cloud-batch/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java rename to owl-bot-staging/v1/google-cloud-batch/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java new file mode 100644 index 0000000..de09a28 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchServiceGrpc.java @@ -0,0 +1,743 @@ +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
+ * Engine VM instances to run the jobs.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/batch/v1/batch.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BatchServiceGrpc { + + private BatchServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.batch.v1.BatchService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateJob", + requestType = com.google.cloud.batch.v1.CreateJobRequest.class, + responseType = com.google.cloud.batch.v1.Job.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + 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(); + } + } + } + return getCreateJobMethod; + } + + 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 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(); + } + } + } + return getGetJobMethod; + } + + 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 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(); + } + } + } + return getDeleteJobMethod; + } + + 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 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(); + } + } + } + return getListJobsMethod; + } + + 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 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(); + } + } + } + return getGetTaskMethod; + } + + 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 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(); + } + } + } + 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 static abstract class BatchServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Create a Job.
+     * 
+ */ + public 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.
+     * 
+ */ + public void getJob(com.google.cloud.batch.v1.GetJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); + } + + /** + *
+     * Delete a Job.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void listTasks(com.google.cloud.batch.v1.ListTasksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.CreateJobRequest, + com.google.cloud.batch.v1.Job>( + this, METHODID_CREATE_JOB))) + .addMethod( + getGetJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.GetJobRequest, + com.google.cloud.batch.v1.Job>( + this, METHODID_GET_JOB))) + .addMethod( + getDeleteJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.DeleteJobRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_JOB))) + .addMethod( + getListJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.ListJobsRequest, + com.google.cloud.batch.v1.ListJobsResponse>( + this, METHODID_LIST_JOBS))) + .addMethod( + getGetTaskMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.GetTaskRequest, + com.google.cloud.batch.v1.Task>( + this, METHODID_GET_TASK))) + .addMethod( + getListTasksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.batch.v1.ListTasksRequest, + com.google.cloud.batch.v1.ListTasksResponse>( + this, METHODID_LIST_TASKS))) + .build(); + } + } + + /** + *
+   * 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.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, + 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, + 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, + 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, + 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, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * 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.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.
+     * 
+ */ + public com.google.cloud.batch.v1.Job getJob(com.google.cloud.batch.v1.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.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) { + 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) { + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTasksMethod(), getCallOptions(), request); + } + } + + /** + *
+   * 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.v1.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.v1.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.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 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) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); + } + + /** + *
+     * List Tasks associated with a job.
+     * 
+ */ + 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); + } + } + + 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 BatchServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BatchServiceImplBase 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.v1.CreateJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_JOB: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_JOBS: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TASKS: + serviceImpl.listTasks((com.google.cloud.batch.v1.ListTasksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class 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.v1.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 String methodName; + + BatchServiceMethodDescriptorSupplier(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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java similarity index 72% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java index 0928bfd..485af53 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto 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.
@@ -28,31 +11,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();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AllocationPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AllocationPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,74 +55,61 @@ private AllocationPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder subBuilder = null;
-              if (location_ != null) {
-                subBuilder = location_.toBuilder();
-              }
-              location_ =
-                  input.readMessage(
-                      com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(location_);
-                location_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder subBuilder = null;
+            if (location_ != null) {
+              subBuilder = location_.toBuilder();
             }
-          case 50:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            location_ = input.readMessage(com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(location_);
+              location_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder subBuilder = null;
-              if (network_ != null) {
-                subBuilder = network_.toBuilder();
-              }
-              network_ =
-                  input.readMessage(
-                      com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(network_);
-                network_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 50: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 66:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                instances_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              instances_.add(
-                  input.readMessage(
-                      com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.parser(),
-                      extensionRegistry));
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 58: {
+            com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder subBuilder = null;
+            if (network_ != null) {
+              subBuilder = network_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            network_ = input.readMessage(com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(network_);
+              network_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          case 66: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              instances_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
+            }
+            instances_.add(
+                input.readMessage(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -147,7 +117,8 @@ private AllocationPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         instances_ = java.util.Collections.unmodifiableList(instances_);
@@ -156,46 +127,41 @@ private AllocationPolicy(
       makeExtensionsImmutable();
     }
   }
-
-  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"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       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.
      * 
@@ -204,8 +170,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ PROVISIONING_MODEL_UNSPECIFIED(0), /** - * - * *
      * Standard VM.
      * 
@@ -214,8 +178,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ STANDARD(1), /** - * - * *
      * SPOT VM.
      * 
@@ -224,8 +186,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ SPOT(2), /** - * - * *
      * Preemptible VM (PVM).
      * Above SPOT VM is the preferable model for preemptible VM instances: the
@@ -241,8 +201,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified.
      * 
@@ -251,8 +209,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ public static final int PROVISIONING_MODEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Standard VM.
      * 
@@ -261,8 +217,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ public static final int STANDARD_VALUE = 1; /** - * - * *
      * SPOT VM.
      * 
@@ -271,8 +225,6 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum */ public static final int SPOT_VALUE = 2; /** - * - * *
      * Preemptible VM (PVM).
      * Above SPOT VM is the preferable model for preemptible VM instances: the
@@ -285,6 +237,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(
@@ -309,16 +262,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;
       }
     }
 
@@ -326,28 +274,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);
     }
 
@@ -356,7 +304,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;
@@ -373,105 +322,99 @@ 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,
-     * for example, zones/us-central1-a, regions/us-west1.
-     * First location in the list should be a region.
+     * First location in the list must be a region.
+     * for example,
+     * ["regions/us-central1"] allow VMs in region us-central1,
+     * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+     * us-central1-a.
      * 
* * 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,
-     * for example, zones/us-central1-a, regions/us-west1.
-     * First location in the list should be a region.
+     * First location in the list must be a region.
+     * for example,
+     * ["regions/us-central1"] allow VMs in region us-central1,
+     * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+     * us-central1-a.
      * 
* * repeated string allowed_locations = 1; - * * @return The count of allowedLocations. */ int getAllowedLocationsCount(); /** - * - * *
      * A list of allowed location names represented by internal URLs,
-     * for example, zones/us-central1-a, regions/us-west1.
-     * First location in the list should be a region.
+     * First location in the list must be a region.
+     * for example,
+     * ["regions/us-central1"] allow VMs in region us-central1,
+     * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+     * us-central1-a.
      * 
* * 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,
-     * for example, zones/us-central1-a, regions/us-west1.
-     * First location in the list should be a region.
+     * First location in the list must be a region.
+     * for example,
+     * ["regions/us-central1"] allow VMs in region us-central1,
+     * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+     * us-central1-a.
      * 
* * 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); } /** - * - * - *
-   * Be consistent with LocationPolicy in
-   * //cloud/cluster/api/mixer_instances.proto.
-   * 
- * * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.LocationPolicy} */ - public static final class LocationPolicy extends com.google.protobuf.GeneratedMessageV3 - implements + 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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LocationPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LocationPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -491,23 +434,22 @@ private LocationPolicy( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - allowedLocations_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + allowedLocations_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -515,7 +457,8 @@ private LocationPolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedLocations_ = allowedLocations_.getUnmodifiableView(); @@ -524,67 +467,65 @@ private LocationPolicy( makeExtensionsImmutable(); } } - - 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; private com.google.protobuf.LazyStringList allowedLocations_; /** - * - * *
      * A list of allowed location names represented by internal URLs,
-     * for example, zones/us-central1-a, regions/us-west1.
-     * First location in the list should be a region.
+     * First location in the list must be a region.
+     * for example,
+     * ["regions/us-central1"] allow VMs in region us-central1,
+     * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+     * us-central1-a.
      * 
* * 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,
-     * for example, zones/us-central1-a, regions/us-west1.
-     * First location in the list should be a region.
+     * First location in the list must be a region.
+     * for example,
+     * ["regions/us-central1"] allow VMs in region us-central1,
+     * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+     * us-central1-a.
      * 
* * 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,
-     * for example, zones/us-central1-a, regions/us-west1.
-     * First location in the list should be a region.
+     * First location in the list must be a region.
+     * for example,
+     * ["regions/us-central1"] allow VMs in region us-central1,
+     * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+     * us-central1-a.
      * 
* * repeated string allowed_locations = 1; - * * @param index The index of the element to return. * @return The allowedLocations at the given index. */ @@ -592,25 +533,25 @@ public java.lang.String getAllowedLocations(int index) { return allowedLocations_.get(index); } /** - * - * *
      * A list of allowed location names represented by internal URLs,
-     * for example, zones/us-central1-a, regions/us-west1.
-     * First location in the list should be a region.
+     * First location in the list must be a region.
+     * for example,
+     * ["regions/us-central1"] allow VMs in region us-central1,
+     * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+     * us-central1-a.
      * 
* * 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; @@ -622,7 +563,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)); } @@ -651,15 +593,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -681,94 +623,87 @@ 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 @@ -778,33 +713,23 @@ protected Builder newBuilderForType( return builder; } /** - * - * - *
-     * Be consistent with LocationPolicy in
-     * //cloud/cluster/api/mixer_instances.proto.
-     * 
- * * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.LocationPolicy} */ - public static final class Builder - extends com.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.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() @@ -812,15 +737,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -830,9 +756,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_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 @@ -851,8 +777,7 @@ 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); + com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy result = new com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { allowedLocations_ = allowedLocations_.getUnmodifiableView(); @@ -867,41 +792,38 @@ public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -909,8 +831,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_; @@ -940,8 +861,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -950,61 +870,59 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList allowedLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowedLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedLocationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { allowedLocations_ = new com.google.protobuf.LazyStringArrayList(allowedLocations_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * A list of allowed location names represented by internal URLs,
-       * for example, zones/us-central1-a, regions/us-west1.
-       * First location in the list should be a region.
+       * First location in the list must be a region.
+       * for example,
+       * ["regions/us-central1"] allow VMs in region us-central1,
+       * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+       * us-central1-a.
        * 
* * 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_.getUnmodifiableView(); } /** - * - * *
        * A list of allowed location names represented by internal URLs,
-       * for example, zones/us-central1-a, regions/us-west1.
-       * First location in the list should be a region.
+       * First location in the list must be a region.
+       * for example,
+       * ["regions/us-central1"] allow VMs in region us-central1,
+       * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+       * us-central1-a.
        * 
* * 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,
-       * for example, zones/us-central1-a, regions/us-west1.
-       * First location in the list should be a region.
+       * First location in the list must be a region.
+       * for example,
+       * ["regions/us-central1"] allow VMs in region us-central1,
+       * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+       * us-central1-a.
        * 
* * repeated string allowed_locations = 1; - * * @param index The index of the element to return. * @return The allowedLocations at the given index. */ @@ -1012,100 +930,105 @@ public java.lang.String getAllowedLocations(int index) { return allowedLocations_.get(index); } /** - * - * *
        * A list of allowed location names represented by internal URLs,
-       * for example, zones/us-central1-a, regions/us-west1.
-       * First location in the list should be a region.
+       * First location in the list must be a region.
+       * for example,
+       * ["regions/us-central1"] allow VMs in region us-central1,
+       * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+       * us-central1-a.
        * 
* * 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,
-       * for example, zones/us-central1-a, regions/us-west1.
-       * First location in the list should be a region.
+       * First location in the list must be a region.
+       * for example,
+       * ["regions/us-central1"] allow VMs in region us-central1,
+       * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+       * us-central1-a.
        * 
* * 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) { + public Builder setAllowedLocations( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedLocationsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedLocationsIsMutable(); allowedLocations_.set(index, value); onChanged(); return this; } /** - * - * *
        * A list of allowed location names represented by internal URLs,
-       * for example, zones/us-central1-a, regions/us-west1.
-       * First location in the list should be a region.
+       * First location in the list must be a region.
+       * for example,
+       * ["regions/us-central1"] allow VMs in region us-central1,
+       * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+       * us-central1-a.
        * 
* * repeated string allowed_locations = 1; - * * @param value The allowedLocations to add. * @return This builder for chaining. */ - public Builder addAllowedLocations(java.lang.String value) { + public Builder addAllowedLocations( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedLocationsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedLocationsIsMutable(); allowedLocations_.add(value); onChanged(); return this; } /** - * - * *
        * A list of allowed location names represented by internal URLs,
-       * for example, zones/us-central1-a, regions/us-west1.
-       * First location in the list should be a region.
+       * First location in the list must be a region.
+       * for example,
+       * ["regions/us-central1"] allow VMs in region us-central1,
+       * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+       * us-central1-a.
        * 
* * 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_); onChanged(); return this; } /** - * - * *
        * A list of allowed location names represented by internal URLs,
-       * for example, zones/us-central1-a, regions/us-west1.
-       * First location in the list should be a region.
+       * First location in the list must be a region.
+       * for example,
+       * ["regions/us-central1"] allow VMs in region us-central1,
+       * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+       * us-central1-a.
        * 
* * repeated string allowed_locations = 1; - * * @return This builder for chaining. */ public Builder clearAllowedLocations() { @@ -1115,30 +1038,30 @@ public Builder clearAllowedLocations() { return this; } /** - * - * *
        * A list of allowed location names represented by internal URLs,
-       * for example, zones/us-central1-a, regions/us-west1.
-       * First location in the list should be a region.
+       * First location in the list must be a region.
+       * for example,
+       * ["regions/us-central1"] allow VMs in region us-central1,
+       * ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
+       * us-central1-a.
        * 
* * 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) { + public Builder addAllowedLocationsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedLocationsIsMutable(); allowedLocations_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1151,12 +1074,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(); } @@ -1165,16 +1088,16 @@ 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 { - return new LocationPolicy(input, extensionRegistry); - } - }; + 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 { + return new LocationPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1189,124 +1112,100 @@ 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 { /** - * - * *
      * Name of a public or custom image used as the data source.
      * 
* * string image = 4; - * * @return Whether the image field is set. */ boolean hasImage(); /** - * - * *
      * Name of a public or custom image used as the data source.
      * 
* * string image = 4; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
      * Name of a public or custom image used as the data source.
      * 
* * 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.
      * 
* * string snapshot = 5; - * * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** - * - * *
      * Name of a snapshot used as the data source.
      * 
* * string snapshot = 5; - * * @return The snapshot. */ java.lang.String getSnapshot(); /** - * - * *
      * Name of a snapshot used as the data source.
      * 
* * 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, "pd-ssd", "pd-standard", "pd-balanced".
      * 
* * string type = 1; - * * @return The type. */ java.lang.String getType(); /** - * - * *
      * Disk type as shown in `gcloud compute disk-types list`
      * For example, "pd-ssd", "pd-standard", "pd-balanced".
      * 
* * string type = 1; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
      * Disk size in GB.
      * This field is ignored if `data_source` is `disk` or `image`.
      * 
* * int64 size_gb = 2; - * * @return The sizeGb. */ long getSizeGb(); @@ -1314,39 +1213,37 @@ public interface DiskOrBuilder public com.google.cloud.batch.v1.AllocationPolicy.Disk.DataSourceCase getDataSourceCase(); } /** - * - * *
    * A new persistent disk.
    * 
* * 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_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Disk(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Disk( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1365,39 +1262,36 @@ private Disk( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 16: - { - sizeGb_ = input.readInt64(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - dataSourceCase_ = 4; - dataSource_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - dataSourceCase_ = 5; - dataSource_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = s; + break; + } + case 16: { + + sizeGb_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + dataSourceCase_ = 4; + dataSource_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + dataSourceCase_ = 5; + dataSource_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1405,40 +1299,35 @@ private Disk( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; 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; } @@ -1454,50 +1343,41 @@ 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; /** - * - * *
      * Name of a public or custom image used as the data source.
      * 
* * string image = 4; - * * @return Whether the image field is set. */ public boolean hasImage() { return dataSourceCase_ == 4; } /** - * - * *
      * Name of a public or custom image used as the data source.
      * 
* * string image = 4; - * * @return The image. */ public java.lang.String getImage() { @@ -1508,7 +1388,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; @@ -1517,24 +1398,23 @@ public java.lang.String getImage() { } } /** - * - * *
      * Name of a public or custom image used as the data source.
      * 
* * 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; } @@ -1546,28 +1426,22 @@ public com.google.protobuf.ByteString getImageBytes() { public static final int SNAPSHOT_FIELD_NUMBER = 5; /** - * - * *
      * Name of a snapshot used as the data source.
      * 
* * 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.
      * 
* * string snapshot = 5; - * * @return The snapshot. */ public java.lang.String getSnapshot() { @@ -1578,7 +1452,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; @@ -1587,24 +1462,23 @@ public java.lang.String getSnapshot() { } } /** - * - * *
      * Name of a snapshot used as the data source.
      * 
* * 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; } @@ -1617,15 +1491,12 @@ public com.google.protobuf.ByteString getSnapshotBytes() { public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** - * - * *
      * Disk type as shown in `gcloud compute disk-types list`
      * For example, "pd-ssd", "pd-standard", "pd-balanced".
      * 
* * string type = 1; - * * @return The type. */ @java.lang.Override @@ -1634,30 +1505,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; } } /** - * - * *
      * Disk type as shown in `gcloud compute disk-types list`
      * For example, "pd-ssd", "pd-standard", "pd-balanced".
      * 
* * 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 { @@ -1668,15 +1539,12 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int SIZE_GB_FIELD_NUMBER = 2; private long sizeGb_; /** - * - * *
      * Disk size in GB.
      * This field is ignored if `data_source` is `disk` or `image`.
      * 
* * int64 size_gb = 2; - * * @return The sizeGb. */ @java.lang.Override @@ -1685,7 +1553,6 @@ public long getSizeGb() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1697,7 +1564,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_); } @@ -1723,7 +1591,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_); @@ -1739,23 +1608,26 @@ public int getSerializedSize() { @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 (!getType() + .equals(other.getType())) return false; + if (getSizeGb() + != other.getSizeGb()) 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: @@ -1774,7 +1646,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()); switch (dataSourceCase_) { case 4: hash = (37 * hash) + IMAGE_FIELD_NUMBER; @@ -1793,93 +1666,87 @@ 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 @@ -1889,32 +1756,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A new persistent disk.
      * 
* * 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() @@ -1922,15 +1784,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1944,9 +1807,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 @@ -1965,8 +1828,7 @@ 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); + com.google.cloud.batch.v1.AllocationPolicy.Disk result = new com.google.cloud.batch.v1.AllocationPolicy.Disk(this); if (dataSourceCase_ == 4) { result.dataSource_ = dataSource_; } @@ -1984,41 +1846,38 @@ public com.google.cloud.batch.v1.AllocationPolicy.Disk buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -2026,8 +1885,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_; onChanged(); @@ -2036,24 +1894,21 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.Disk other) setSizeGb(other.getSizeGb()); } 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.unknownFields); onChanged(); @@ -2074,8 +1929,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.AllocationPolicy.Disk) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.AllocationPolicy.Disk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2084,12 +1938,12 @@ public Builder mergeFrom( } 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() { @@ -2099,15 +1953,13 @@ public Builder clearDataSource() { return this; } + /** - * - * *
        * Name of a public or custom image used as the data source.
        * 
* * string image = 4; - * * @return Whether the image field is set. */ @java.lang.Override @@ -2115,14 +1967,11 @@ public boolean hasImage() { return dataSourceCase_ == 4; } /** - * - * *
        * Name of a public or custom image used as the data source.
        * 
* * string image = 4; - * * @return The image. */ @java.lang.Override @@ -2132,7 +1981,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; @@ -2143,25 +1993,24 @@ public java.lang.String getImage() { } } /** - * - * *
        * Name of a public or custom image used as the data source.
        * 
* * 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; } @@ -2171,35 +2020,30 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
        * Name of a public or custom image used as the data source.
        * 
* * string image = 4; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { + public Builder setImage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - dataSourceCase_ = 4; + throw new NullPointerException(); + } + dataSourceCase_ = 4; dataSource_ = value; onChanged(); return this; } /** - * - * *
        * Name of a public or custom image used as the data source.
        * 
* * string image = 4; - * * @return This builder for chaining. */ public Builder clearImage() { @@ -2211,22 +2055,20 @@ public Builder clearImage() { return this; } /** - * - * *
        * Name of a public or custom image used as the data source.
        * 
* * string image = 4; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { + public Builder setImageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); dataSourceCase_ = 4; dataSource_ = value; onChanged(); @@ -2234,14 +2076,11 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) { } /** - * - * *
        * Name of a snapshot used as the data source.
        * 
* * string snapshot = 5; - * * @return Whether the snapshot field is set. */ @java.lang.Override @@ -2249,14 +2088,11 @@ public boolean hasSnapshot() { return dataSourceCase_ == 5; } /** - * - * *
        * Name of a snapshot used as the data source.
        * 
* * string snapshot = 5; - * * @return The snapshot. */ @java.lang.Override @@ -2266,7 +2102,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; @@ -2277,25 +2114,24 @@ public java.lang.String getSnapshot() { } } /** - * - * *
        * Name of a snapshot used as the data source.
        * 
* * 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; } @@ -2305,35 +2141,30 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } } /** - * - * *
        * Name of a snapshot used as the data source.
        * 
* * string snapshot = 5; - * * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot(java.lang.String value) { + public Builder setSnapshot( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - dataSourceCase_ = 5; + throw new NullPointerException(); + } + dataSourceCase_ = 5; dataSource_ = value; onChanged(); return this; } /** - * - * *
        * Name of a snapshot used as the data source.
        * 
* * string snapshot = 5; - * * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -2345,22 +2176,20 @@ public Builder clearSnapshot() { return this; } /** - * - * *
        * Name of a snapshot used as the data source.
        * 
* * string snapshot = 5; - * * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); dataSourceCase_ = 5; dataSource_ = value; onChanged(); @@ -2369,21 +2198,19 @@ 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, "pd-ssd", "pd-standard", "pd-balanced".
        * 
* * 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; @@ -2392,22 +2219,21 @@ public java.lang.String getType() { } } /** - * - * *
        * Disk type as shown in `gcloud compute disk-types list`
        * For example, "pd-ssd", "pd-standard", "pd-balanced".
        * 
* * 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 { @@ -2415,80 +2241,70 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
        * Disk type as shown in `gcloud compute disk-types list`
        * For example, "pd-ssd", "pd-standard", "pd-balanced".
        * 
* * string type = 1; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** - * - * *
        * Disk type as shown in `gcloud compute disk-types list`
        * For example, "pd-ssd", "pd-standard", "pd-balanced".
        * 
* * string type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** - * - * *
        * Disk type as shown in `gcloud compute disk-types list`
        * For example, "pd-ssd", "pd-standard", "pd-balanced".
        * 
* * string type = 1; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private long sizeGb_; + private long sizeGb_ ; /** - * - * *
        * Disk size in GB.
        * This field is ignored if `data_source` is `disk` or `image`.
        * 
* * int64 size_gb = 2; - * * @return The sizeGb. */ @java.lang.Override @@ -2496,43 +2312,36 @@ public long getSizeGb() { return sizeGb_; } /** - * - * *
        * Disk size in GB.
        * This field is ignored if `data_source` is `disk` or `image`.
        * 
* * int64 size_gb = 2; - * * @param value The sizeGb to set. * @return This builder for chaining. */ public Builder setSizeGb(long value) { - + sizeGb_ = value; onChanged(); return this; } /** - * - * *
        * Disk size in GB.
        * This field is ignored if `data_source` is `disk` or `image`.
        * 
* * int64 size_gb = 2; - * * @return This builder for chaining. */ public Builder clearSizeGb() { - + sizeGb_ = 0L; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2545,12 +2354,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(); } @@ -2559,16 +2368,16 @@ 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 { - return new Disk(input, extensionRegistry); - } - }; + 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 { + return new Disk(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2583,128 +2392,113 @@ 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.
      * If not specified, this is default to the disk name.
      * 
* * string device_name = 3; - * * @return The deviceName. */ java.lang.String getDeviceName(); /** - * - * *
      * Device name that the guest operating system will see.
      * If not specified, this is default to the disk name.
      * 
* * string device_name = 3; - * * @return The bytes for deviceName. */ - com.google.protobuf.ByteString getDeviceNameBytes(); + com.google.protobuf.ByteString + getDeviceNameBytes(); public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.AttachedCase getAttachedCase(); } /** - * - * *
    * A new or an existing persistent disk attached to a VM instance.
    * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AttachedDisk( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2723,45 +2517,39 @@ private AttachedDisk( case 0: done = true; break; - case 10: - { - com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder subBuilder = null; - if (attachedCase_ == 1) { - subBuilder = - ((com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_).toBuilder(); - } - attached_ = - input.readMessage( - com.google.cloud.batch.v1.AllocationPolicy.Disk.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_); - attached_ = subBuilder.buildPartial(); - } - attachedCase_ = 1; - break; + case 10: { + com.google.cloud.batch.v1.AllocationPolicy.Disk.Builder subBuilder = null; + if (attachedCase_ == 1) { + subBuilder = ((com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_).toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - attachedCase_ = 2; - attached_ = s; - break; + attached_ = + input.readMessage(com.google.cloud.batch.v1.AllocationPolicy.Disk.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.Disk) attached_); + attached_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + attachedCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + attachedCase_ = 2; + attached_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - deviceName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + deviceName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2769,40 +2557,35 @@ private AttachedDisk( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; 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; } @@ -2818,30 +2601,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 @@ -2850,49 +2629,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() { @@ -2903,7 +2677,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; @@ -2912,24 +2687,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; } @@ -2942,15 +2716,12 @@ public com.google.protobuf.ByteString getExistingDiskBytes() { public static final int DEVICE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object deviceName_; /** - * - * *
      * Device name that the guest operating system will see.
      * If not specified, this is default to the disk name.
      * 
* * string device_name = 3; - * * @return The deviceName. */ @java.lang.Override @@ -2959,30 +2730,30 @@ 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.
      * If not specified, this is default to the disk name.
      * 
* * 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 { @@ -2991,7 +2762,6 @@ public com.google.protobuf.ByteString getDeviceNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3003,7 +2773,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_); } @@ -3023,9 +2794,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_); @@ -3041,22 +2811,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: @@ -3092,94 +2864,87 @@ 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 @@ -3189,32 +2954,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A new or an existing persistent disk attached to a VM instance.
      * 
* * 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() @@ -3222,15 +2982,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3242,9 +3003,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 @@ -3263,8 +3024,7 @@ 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); + com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk result = new com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk(this); if (attachedCase_ == 1) { if (newDiskBuilder_ == null) { result.attached_ = attached_; @@ -3285,41 +3045,38 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -3327,29 +3084,25 @@ 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_; 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.unknownFields); onChanged(); @@ -3370,8 +3123,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3380,12 +3132,12 @@ public Builder mergeFrom( } 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() { @@ -3395,14 +3147,11 @@ public Builder clearAttached() { return this; } + 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 @@ -3411,7 +3160,6 @@ public boolean hasNewDisk() { } /** * .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1; - * * @return The newDisk. */ @java.lang.Override @@ -3428,7 +3176,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) { @@ -3442,7 +3192,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) { @@ -3454,17 +3206,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; } @@ -3479,7 +3229,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) { @@ -3496,11 +3248,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)) { @@ -3512,41 +3268,34 @@ 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()); attached_ = null; } attachedCase_ = 1; - onChanged(); - ; + onChanged();; return newDiskBuilder_; } /** - * - * *
        * Name of an existing PD.
        * 
* * string existing_disk = 2; - * * @return Whether the existingDisk field is set. */ @java.lang.Override @@ -3554,14 +3303,11 @@ public boolean hasExistingDisk() { return attachedCase_ == 2; } /** - * - * *
        * Name of an existing PD.
        * 
* * string existing_disk = 2; - * * @return The existingDisk. */ @java.lang.Override @@ -3571,7 +3317,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; @@ -3582,25 +3329,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; } @@ -3610,35 +3356,30 @@ 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) { + public Builder setExistingDisk( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - attachedCase_ = 2; + 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() { @@ -3650,22 +3391,20 @@ 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) { + public Builder setExistingDiskBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); attachedCase_ = 2; attached_ = value; onChanged(); @@ -3674,21 +3413,19 @@ public Builder setExistingDiskBytes(com.google.protobuf.ByteString value) { private java.lang.Object deviceName_ = ""; /** - * - * *
        * Device name that the guest operating system will see.
        * If not specified, this is default to the disk name.
        * 
* * 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; @@ -3697,22 +3434,21 @@ public java.lang.String getDeviceName() { } } /** - * - * *
        * Device name that the guest operating system will see.
        * If not specified, this is default to the disk name.
        * 
* * 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 { @@ -3720,69 +3456,61 @@ public com.google.protobuf.ByteString getDeviceNameBytes() { } } /** - * - * *
        * Device name that the guest operating system will see.
        * If not specified, this is default to the disk name.
        * 
* * string device_name = 3; - * * @param value The deviceName to set. * @return This builder for chaining. */ - public Builder setDeviceName(java.lang.String value) { + public Builder setDeviceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deviceName_ = value; onChanged(); return this; } /** - * - * *
        * Device name that the guest operating system will see.
        * If not specified, this is default to the disk name.
        * 
* * string device_name = 3; - * * @return This builder for chaining. */ public Builder clearDeviceName() { - + deviceName_ = getDefaultInstance().getDeviceName(); onChanged(); return this; } /** - * - * *
        * Device name that the guest operating system will see.
        * If not specified, this is default to the disk name.
        * 
* * 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) { + public Builder setDeviceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deviceName_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3795,12 +3523,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(); } @@ -3809,16 +3537,16 @@ 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 { - return new AttachedDisk(input, extensionRegistry); - } - }; + 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 { + return new AttachedDisk(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3833,87 +3561,77 @@ 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(); } /** - * - * *
    * Accelerator describes Compute Engine accelerators to be attached to VMs.
    * 
* * 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_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Accelerator(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Accelerator( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3932,25 +3650,24 @@ private Accelerator( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 16: - { - count_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = s; + break; + } + case 16: { + + count_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3958,40 +3675,35 @@ private Accelerator( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; 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 @@ -4000,30 +3712,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 { @@ -4034,14 +3746,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** - * - * *
      * The number of accelerators of this type.
      * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -4050,7 +3759,6 @@ public long getCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4062,7 +3770,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_); } @@ -4082,7 +3791,8 @@ 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4092,16 +3802,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.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 (!getType() + .equals(other.getType())) return false; + if (getCount() + != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4116,101 +3827,95 @@ 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } 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 @@ -4220,32 +3925,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Accelerator describes Compute Engine accelerators to be attached to VMs.
      * 
* * 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() @@ -4253,15 +3953,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4273,9 +3974,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 @@ -4294,8 +3995,7 @@ 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); + com.google.cloud.batch.v1.AllocationPolicy.Accelerator result = new com.google.cloud.batch.v1.AllocationPolicy.Accelerator(this); result.type_ = type_; result.count_ = count_; onBuilt(); @@ -4306,41 +4006,38 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -4348,8 +4045,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_; onChanged(); @@ -4376,8 +4072,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.AllocationPolicy.Accelerator) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.AllocationPolicy.Accelerator) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4389,21 +4084,19 @@ public Builder mergeFrom( 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; @@ -4412,22 +4105,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 { @@ -4435,79 +4127,69 @@ 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) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; 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() { - + type_ = getDefaultInstance().getType(); onChanged(); 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) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } - private long count_; + private long count_ ; /** - * - * *
        * The number of accelerators of this type.
        * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -4515,41 +4197,34 @@ 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. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** - * - * *
        * The number of accelerators of this type.
        * 
* * int64 count = 2; - * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4562,12 +4237,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(); } @@ -4576,16 +4251,16 @@ 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 { - return new Accelerator(input, extensionRegistry); - } - }; + 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 { + return new Accelerator(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4600,140 +4275,120 @@ 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
      * `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
+     * Not yet implemented.
      * 
* * string min_cpu_platform = 3; - * * @return The minCpuPlatform. */ java.lang.String getMinCpuPlatform(); /** - * - * *
      * The minimum CPU platform.
      * See
      * `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
+     * Not yet implemented.
      * 
* * 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.
+     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ - java.util.List getAcceleratorsList(); + java.util.List + getAcceleratorsList(); /** - * - * *
      * The accelerators attached to each VM instance.
+     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ com.google.cloud.batch.v1.AllocationPolicy.Accelerator getAccelerators(int index); /** - * - * *
      * The accelerators attached to each VM instance.
+     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ int getAcceleratorsCount(); /** - * - * *
      * The accelerators attached to each VM instance.
+     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ - java.util.List + java.util.List getAcceleratorsOrBuilderList(); /** - * - * *
      * The accelerators attached to each VM instance.
+     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -4742,8 +4397,6 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO int index); /** - * - * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
      * New disks will be deleted when the attached VM is deleted.
@@ -4751,10 +4404,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 attached VM is deleted.
@@ -4764,8 +4416,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 attached VM is deleted.
@@ -4775,8 +4425,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 attached VM is deleted.
@@ -4784,11 +4432,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 attached VM is deleted.
@@ -4796,11 +4442,10 @@ 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);
   }
   /**
-   *
-   *
    * 
    * InstancePolicy describes an instance type and resources attached to each VM
    * created by this InstancePolicy.
@@ -4808,16 +4453,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_ = "";
@@ -4828,15 +4472,16 @@ private InstancePolicy() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new InstancePolicy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private InstancePolicy(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -4856,62 +4501,49 @@ private InstancePolicy(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                machineType_ = s;
-                break;
-              }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              machineType_ = s;
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                minCpuPlatform_ = s;
-                break;
-              }
-            case 32:
-              {
-                int rawValue = input.readEnum();
+              minCpuPlatform_ = s;
+              break;
+            }
+            case 32: {
+              int rawValue = input.readEnum();
 
-                provisioningModel_ = rawValue;
-                break;
-              }
-            case 42:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  accelerators_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.batch.v1.AllocationPolicy.Accelerator>();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                accelerators_.add(
-                    input.readMessage(
-                        com.google.cloud.batch.v1.AllocationPolicy.Accelerator.parser(),
-                        extensionRegistry));
-                break;
+              provisioningModel_ = rawValue;
+              break;
+            }
+            case 42: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                accelerators_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 50:
-              {
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  disks_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk>();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                disks_.add(
-                    input.readMessage(
-                        com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.parser(),
-                        extensionRegistry));
-                break;
+              accelerators_.add(
+                  input.readMessage(com.google.cloud.batch.v1.AllocationPolicy.Accelerator.parser(), extensionRegistry));
+              break;
+            }
+            case 50: {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                disks_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              disks_.add(
+                  input.readMessage(com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.parser(), extensionRegistry));
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4919,7 +4551,8 @@ private InstancePolicy(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           accelerators_ = java.util.Collections.unmodifiableList(accelerators_);
@@ -4931,33 +4564,27 @@ private InstancePolicy(
         makeExtensionsImmutable();
       }
     }
-
-    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);
     }
 
     public static final int MACHINE_TYPE_FIELD_NUMBER = 2;
     private volatile java.lang.Object machineType_;
     /**
-     *
-     *
      * 
      * The Compute Engine machine type.
      * 
* * string machine_type = 2; - * * @return The machineType. */ @java.lang.Override @@ -4966,29 +4593,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 { @@ -4999,16 +4626,14 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 3; private volatile java.lang.Object minCpuPlatform_; /** - * - * *
      * The minimum CPU platform.
      * See
      * `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
+     * Not yet implemented.
      * 
* * string min_cpu_platform = 3; - * * @return The minCpuPlatform. */ @java.lang.Override @@ -5017,31 +4642,32 @@ 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
      * `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
+     * Not yet implemented.
      * 
* * 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 { @@ -5052,78 +4678,61 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { public static final int PROVISIONING_MODEL_FIELD_NUMBER = 4; private int provisioningModel_; /** - * - * *
      * 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() { + @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvisioningModel() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.valueOf(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.valueOf(provisioningModel_); + return result == null ? com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.UNRECOGNIZED : result; } public static final int ACCELERATORS_FIELD_NUMBER = 5; private java.util.List accelerators_; /** - * - * *
      * The accelerators attached to each VM instance.
+     * Not yet implemented.
      * 
* * 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.
+     * Not yet implemented.
      * 
* * 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.
+     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5133,10 +4742,9 @@ public int getAcceleratorsCount() { return accelerators_.size(); } /** - * - * *
      * The accelerators attached to each VM instance.
+     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5146,10 +4754,9 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator getAccelerators(in return accelerators_.get(index); } /** - * - * *
      * The accelerators attached to each VM instance.
+     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5163,8 +4770,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAccele public static final int DISKS_FIELD_NUMBER = 6; 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 attached VM is deleted.
@@ -5177,8 +4782,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 attached VM is deleted.
@@ -5187,14 +4790,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 attached VM is deleted.
@@ -5207,8 +4807,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 attached VM is deleted.
@@ -5221,8 +4819,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 attached VM is deleted.
@@ -5237,7 +4833,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisks
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -5249,17 +4844,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++) {
@@ -5283,17 +4876,17 @@ 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));
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -5303,19 +4896,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.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 (!getDisksList().equals(other.getDisksList())) return false;
+      if (!getAcceleratorsList()
+          .equals(other.getAcceleratorsList())) return false;
+      if (!getDisksList()
+          .equals(other.getDisksList())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -5347,94 +4943,87 @@ 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
@@ -5444,8 +5033,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * InstancePolicy describes an instance type and resources attached to each VM
      * created by this InstancePolicy.
@@ -5453,24 +5040,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()
@@ -5478,18 +5062,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) {
           getAcceleratorsFieldBuilder();
           getDisksFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5515,9 +5099,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
@@ -5536,8 +5120,7 @@ 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);
         int from_bitField0_ = bitField0_;
         result.machineType_ = machineType_;
         result.minCpuPlatform_ = minCpuPlatform_;
@@ -5568,41 +5151,38 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy buildPartial()
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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;
@@ -5610,8 +5190,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_;
           onChanged();
@@ -5641,10 +5220,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.InstancePoli
               acceleratorsBuilder_ = null;
               accelerators_ = other.accelerators_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              acceleratorsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getAcceleratorsFieldBuilder()
-                      : null;
+              acceleratorsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getAcceleratorsFieldBuilder() : null;
             } else {
               acceleratorsBuilder_.addAllMessages(other.accelerators_);
             }
@@ -5668,10 +5246,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.InstancePoli
               disksBuilder_ = null;
               disks_ = other.disks_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              disksBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getDisksFieldBuilder()
-                      : null;
+              disksBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getDisksFieldBuilder() : null;
             } else {
               disksBuilder_.addAllMessages(other.disks_);
             }
@@ -5696,8 +5273,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -5706,25 +5282,22 @@ public Builder mergeFrom(
         }
         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; @@ -5733,21 +5306,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 { @@ -5755,61 +5327,54 @@ 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) { + public Builder setMachineType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 2; - * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); 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) { + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; @@ -5817,22 +5382,21 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object minCpuPlatform_ = ""; /** - * - * *
        * The minimum CPU platform.
        * See
        * `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
+       * Not yet implemented.
        * 
* * 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; @@ -5841,23 +5405,23 @@ public java.lang.String getMinCpuPlatform() { } } /** - * - * *
        * The minimum CPU platform.
        * See
        * `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
+       * Not yet implemented.
        * 
* * 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 { @@ -5865,67 +5429,63 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { } } /** - * - * *
        * The minimum CPU platform.
        * See
        * `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
+       * Not yet implemented.
        * 
* * string min_cpu_platform = 3; - * * @param value The minCpuPlatform to set. * @return This builder for chaining. */ - public Builder setMinCpuPlatform(java.lang.String value) { + public Builder setMinCpuPlatform( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + minCpuPlatform_ = value; onChanged(); return this; } /** - * - * *
        * The minimum CPU platform.
        * See
        * `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
+       * Not yet implemented.
        * 
* * string min_cpu_platform = 3; - * * @return This builder for chaining. */ public Builder clearMinCpuPlatform() { - + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); onChanged(); return this; } /** - * - * *
        * The minimum CPU platform.
        * See
        * `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
+       * Not yet implemented.
        * 
* * 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) { + public Builder setMinCpuPlatformBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + minCpuPlatform_ = value; onChanged(); return this; @@ -5933,133 +5493,99 @@ 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. */ public Builder setProvisioningModelValue(int value) { - + provisioningModel_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.valueOf( - 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.valueOf(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(); } - + provisioningModel_ = value.getNumber(); onChanged(); 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() { - + provisioningModel_ = 0; onChanged(); return this; } private java.util.List accelerators_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAcceleratorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - accelerators_ = - new java.util.ArrayList( - accelerators_); + accelerators_ = new java.util.ArrayList(accelerators_); bitField0_ |= 0x00000001; - } + } } 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.
+       * Not yet implemented.
        * 
* * 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 { @@ -6067,10 +5593,9 @@ private void ensureAcceleratorsIsMutable() { } } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6083,10 +5608,9 @@ public int getAcceleratorsCount() { } } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6099,10 +5623,9 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator getAccelerators(in } } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6122,17 +5645,15 @@ public Builder setAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * 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()); @@ -6143,10 +5664,9 @@ public Builder setAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6165,10 +5685,9 @@ public Builder addAccelerators(com.google.cloud.batch.v1.AllocationPolicy.Accele return this; } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6188,10 +5707,9 @@ public Builder addAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6208,17 +5726,15 @@ public Builder addAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * 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()); @@ -6229,20 +5745,19 @@ public Builder addAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * 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); @@ -6250,10 +5765,9 @@ public Builder addAllAccelerators( return this; } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6269,10 +5783,9 @@ public Builder clearAccelerators() { return this; } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6288,10 +5801,9 @@ public Builder removeAccelerators(int index) { return this; } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6301,34 +5813,30 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder getAcceler return getAcceleratorsFieldBuilder().getBuilder(index); } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * 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.
+       * Not yet implemented.
        * 
* * 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 { @@ -6336,60 +5844,48 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder getAcceler } } /** - * - * *
        * The accelerators attached to each VM instance.
+       * Not yet implemented.
        * 
* * 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.
+       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; */ 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.
+       * Not yet implemented.
        * 
* * 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_ & 0x00000001) != 0), getParentForChildren(), @@ -6400,26 +5896,18 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder addAcceler } private java.util.List disks_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDisksIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - disks_ = - new java.util.ArrayList( - disks_); + disks_ = new java.util.ArrayList(disks_); bitField0_ |= 0x00000002; - } + } } 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 attached VM is deleted.
@@ -6427,8 +5915,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 {
@@ -6436,8 +5923,6 @@ private void ensureDisksIsMutable() {
         }
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the attached VM is deleted.
@@ -6453,8 +5938,6 @@ public int getDisksCount() {
         }
       }
       /**
-       *
-       *
        * 
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
        * New disks will be deleted when the attached VM is deleted.
@@ -6470,8 +5953,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 attached VM is deleted.
@@ -6494,8 +5975,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 attached VM is deleted.
@@ -6504,8 +5983,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());
@@ -6516,8 +5994,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 attached VM is deleted.
@@ -6539,8 +6015,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 attached VM is deleted.
@@ -6563,8 +6037,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 attached VM is deleted.
@@ -6584,8 +6056,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 attached VM is deleted.
@@ -6594,8 +6064,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());
@@ -6606,8 +6075,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 attached VM is deleted.
@@ -6616,11 +6083,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);
@@ -6628,8 +6095,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 attached VM is deleted.
@@ -6648,8 +6113,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 attached VM is deleted.
@@ -6668,8 +6131,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 attached VM is deleted.
@@ -6682,8 +6143,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 attached VM is deleted.
@@ -6694,14 +6153,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 attached VM is deleted.
@@ -6709,9 +6165,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 {
@@ -6719,8 +6174,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 attached VM is deleted.
@@ -6729,13 +6182,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 attached VM is deleted.
@@ -6745,14 +6195,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 attached VM is deleted.
@@ -6760,28 +6206,24 @@ 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_ & 0x00000002) != 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_ & 0x00000002) != 0),
+                  getParentForChildren(),
+                  isClean());
           disks_ = null;
         }
         return disksBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -6794,12 +6236,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();
     }
@@ -6808,16 +6250,16 @@ 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 {
-            return new InstancePolicy(input, extensionRegistry);
-          }
-        };
+    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 {
+        return new InstancePolicy(input, extensionRegistry);
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -6832,40 +6274,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.
      * 
@@ -6875,8 +6309,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
@@ -6884,13 +6316,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
@@ -6898,13 +6327,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
@@ -6912,46 +6338,44 @@ public interface InstancePolicyOrTemplateOrBuilder
      * 
* * string instance_template = 2; - * * @return The bytes for instanceTemplate. */ - com.google.protobuf.ByteString getInstanceTemplateBytes(); + com.google.protobuf.ByteString + getInstanceTemplateBytes(); - public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.PolicyTemplateCase - getPolicyTemplateCase(); + public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.PolicyTemplateCase getPolicyTemplateCase(); } /** - * - * *
    * Either an InstancePolicy or an instance template.
    * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InstancePolicyOrTemplate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6970,40 +6394,33 @@ private InstancePolicyOrTemplate( case 0: done = true; break; - case 10: - { - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder subBuilder = null; - if (policyTemplateCase_ == 1) { - subBuilder = - ((com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_) - .toBuilder(); - } - policyTemplate_ = - input.readMessage( - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_); - policyTemplate_ = subBuilder.buildPartial(); - } - policyTemplateCase_ = 1; - break; + case 10: { + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder subBuilder = null; + if (policyTemplateCase_ == 1) { + subBuilder = ((com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_).toBuilder(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - policyTemplateCase_ = 2; - policyTemplate_ = s; - break; + policyTemplate_ = + input.readMessage(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy) policyTemplate_); + policyTemplate_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + policyTemplateCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + policyTemplateCase_ = 2; + policyTemplate_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7011,40 +6428,35 @@ private InstancePolicyOrTemplate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; 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; } @@ -7060,36 +6472,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 @@ -7097,26 +6503,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.
      * 
@@ -7126,15 +6527,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
@@ -7142,15 +6541,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
@@ -7158,7 +6554,6 @@ public boolean hasInstanceTemplate() {
      * 
* * string instance_template = 2; - * * @return The instanceTemplate. */ public java.lang.String getInstanceTemplate() { @@ -7169,7 +6564,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; @@ -7178,8 +6574,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
@@ -7187,17 +6581,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; } @@ -7208,7 +6603,6 @@ public com.google.protobuf.ByteString getInstanceTemplateBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7220,10 +6614,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_); @@ -7238,9 +6632,8 @@ 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_); @@ -7253,21 +6646,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.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 (!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: @@ -7301,95 +6695,87 @@ 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 @@ -7399,49 +6785,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Either an InstancePolicy or an instance template.
      * 
* * 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() + // Construct using com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -7451,16 +6832,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 @@ -7474,8 +6853,7 @@ 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); + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate result = new com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate(this); if (policyTemplateCase_ == 1) { if (policyBuilder_ == null) { result.policyTemplate_ = policyTemplate_; @@ -7495,70 +6873,60 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; 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.unknownFields); onChanged(); @@ -7579,9 +6947,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7590,12 +6956,12 @@ public Builder mergeFrom( } 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() { @@ -7605,20 +6971,15 @@ public Builder clearPolicyTemplate() { return this; } + 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 @@ -7626,14 +6987,11 @@ public boolean hasPolicy() { return policyTemplateCase_ == 1; } /** - * - * *
        * InstancePolicy.
        * 
* * .google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1; - * * @return The policy. */ @java.lang.Override @@ -7651,8 +7009,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy getPolicy() { } } /** - * - * *
        * InstancePolicy.
        * 
@@ -7673,8 +7029,6 @@ public Builder setPolicy(com.google.cloud.batch.v1.AllocationPolicy.InstancePoli return this; } /** - * - * *
        * InstancePolicy.
        * 
@@ -7693,8 +7047,6 @@ public Builder setPolicy( return this; } /** - * - * *
        * InstancePolicy.
        * 
@@ -7703,15 +7055,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; } @@ -7727,8 +7074,6 @@ public Builder mergePolicy(com.google.cloud.batch.v1.AllocationPolicy.InstancePo return this; } /** - * - * *
        * InstancePolicy.
        * 
@@ -7752,8 +7097,6 @@ public Builder clearPolicy() { return this; } /** - * - * *
        * InstancePolicy.
        * 
@@ -7764,8 +7107,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder getPoli return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
        * InstancePolicy.
        * 
@@ -7773,8 +7114,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 { @@ -7785,8 +7125,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.InstancePolicy.Builder getPoli } } /** - * - * *
        * InstancePolicy.
        * 
@@ -7794,34 +7132,25 @@ 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()); policyTemplate_ = null; } policyTemplateCase_ = 1; - onChanged(); - ; + onChanged();; return policyBuilder_; } /** - * - * *
        * Name of an instance template used to create VMs.
        * Named the field as 'instance_template' instead of 'template' to avoid
@@ -7829,7 +7158,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 @@ -7837,8 +7165,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
@@ -7846,7 +7172,6 @@ public boolean hasInstanceTemplate() {
        * 
* * string instance_template = 2; - * * @return The instanceTemplate. */ @java.lang.Override @@ -7856,7 +7181,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; @@ -7867,8 +7193,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
@@ -7876,18 +7200,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; } @@ -7897,8 +7222,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
@@ -7906,22 +7229,20 @@ 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) { + public Builder setInstanceTemplate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - policyTemplateCase_ = 2; + 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
@@ -7929,7 +7250,6 @@ public Builder setInstanceTemplate(java.lang.String value) {
        * 
* * string instance_template = 2; - * * @return This builder for chaining. */ public Builder clearInstanceTemplate() { @@ -7941,8 +7261,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
@@ -7950,21 +7268,20 @@ 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) { + public Builder setInstanceTemplateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); policyTemplateCase_ = 2; policyTemplate_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7977,32 +7294,30 @@ 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 { - return new InstancePolicyOrTemplate(input, extensionRegistry); - } - }; + 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 { + return new InstancePolicyOrTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8014,70 +7329,57 @@ 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 the network resource.
      * 
* * string network = 1; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
      * The URL of the network resource.
      * 
* * string network = 1; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
      * The URL of the Subnetwork resource.
      * 
* * string subnetwork = 2; - * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** - * - * *
      * The URL of the Subnetwork resource.
      * 
* * 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
@@ -8089,30 +7391,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_ = ""; @@ -8120,15 +7418,16 @@ private NetworkInterface() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NetworkInterface(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NetworkInterface( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8147,32 +7446,30 @@ private NetworkInterface( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - network_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + network_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - subnetwork_ = s; - break; - } - case 24: - { - noExternalIpAddress_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subnetwork_ = s; + break; + } + case 24: { + + noExternalIpAddress_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8180,39 +7477,34 @@ private NetworkInterface( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; private volatile java.lang.Object network_; /** - * - * *
      * The URL of the network resource.
      * 
* * string network = 1; - * * @return The network. */ @java.lang.Override @@ -8221,29 +7513,29 @@ 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 the network resource.
      * 
* * 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 { @@ -8254,14 +7546,11 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int SUBNETWORK_FIELD_NUMBER = 2; private volatile java.lang.Object subnetwork_; /** - * - * *
      * The URL of the Subnetwork resource.
      * 
* * string subnetwork = 2; - * * @return The subnetwork. */ @java.lang.Override @@ -8270,29 +7559,29 @@ 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 the Subnetwork resource.
      * 
* * 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 { @@ -8303,8 +7592,6 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { public static final int NO_EXTERNAL_IP_ADDRESS_FIELD_NUMBER = 3; 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
@@ -8316,7 +7603,6 @@ public com.google.protobuf.ByteString getSubnetworkBytes() {
      * 
* * bool no_external_ip_address = 3; - * * @return The noExternalIpAddress. */ @java.lang.Override @@ -8325,7 +7611,6 @@ public boolean getNoExternalIpAddress() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8337,7 +7622,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_); } @@ -8363,7 +7649,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8373,17 +7660,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -8400,101 +7689,95 @@ 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) + unknownFields.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 @@ -8504,32 +7787,27 @@ 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() @@ -8537,15 +7815,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -8559,14 +7838,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(); } @@ -8581,8 +7859,7 @@ 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); + com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface result = new com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface(this); result.network_ = network_; result.subnetwork_ = subnetwork_; result.noExternalIpAddress_ = noExternalIpAddress_; @@ -8594,41 +7871,38 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -8636,9 +7910,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_; onChanged(); @@ -8669,9 +7941,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8683,20 +7953,18 @@ public Builder mergeFrom( private java.lang.Object network_ = ""; /** - * - * *
        * The URL of the network resource.
        * 
* * 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; @@ -8705,21 +7973,20 @@ public java.lang.String getNetwork() { } } /** - * - * *
        * The URL of the network resource.
        * 
* * 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 { @@ -8727,61 +7994,54 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
        * The URL of the network resource.
        * 
* * string network = 1; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
        * The URL of the network resource.
        * 
* * string network = 1; - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
        * The URL of the network resource.
        * 
* * string network = 1; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -8789,20 +8049,18 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object subnetwork_ = ""; /** - * - * *
        * The URL of the Subnetwork resource.
        * 
* * 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; @@ -8811,21 +8069,20 @@ public java.lang.String getSubnetwork() { } } /** - * - * *
        * The URL of the Subnetwork resource.
        * 
* * 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 { @@ -8833,70 +8090,61 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { } } /** - * - * *
        * The URL of the Subnetwork resource.
        * 
* * string subnetwork = 2; - * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork(java.lang.String value) { + public Builder setSubnetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnetwork_ = value; onChanged(); return this; } /** - * - * *
        * The URL of the Subnetwork resource.
        * 
* * string subnetwork = 2; - * * @return This builder for chaining. */ public Builder clearSubnetwork() { - + subnetwork_ = getDefaultInstance().getSubnetwork(); onChanged(); return this; } /** - * - * *
        * The URL of the Subnetwork resource.
        * 
* * string subnetwork = 2; - * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnetwork_ = value; onChanged(); 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
@@ -8908,7 +8156,6 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) {
        * 
* * bool no_external_ip_address = 3; - * * @return The noExternalIpAddress. */ @java.lang.Override @@ -8916,8 +8163,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
@@ -8929,19 +8174,16 @@ public boolean getNoExternalIpAddress() {
        * 
* * bool no_external_ip_address = 3; - * * @param value The noExternalIpAddress to set. * @return This builder for chaining. */ public Builder setNoExternalIpAddress(boolean value) { - + noExternalIpAddress_ = value; onChanged(); 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
@@ -8953,16 +8195,14 @@ public Builder setNoExternalIpAddress(boolean value) {
        * 
* * bool no_external_ip_address = 3; - * * @return This builder for chaining. */ public Builder clearNoExternalIpAddress() { - + noExternalIpAddress_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8975,13 +8215,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(); } @@ -8990,16 +8229,16 @@ 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 { - return new NetworkInterface(input, extensionRegistry); - } - }; + 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 { + return new NetworkInterface(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9014,111 +8253,89 @@ 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NetworkPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -9138,27 +8355,22 @@ private NetworkPolicy( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networkInterfaces_ = - new java.util.ArrayList< - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface>(); - mutable_bitField0_ |= 0x00000001; - } - networkInterfaces_.add( - input.readMessage( - com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networkInterfaces_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + networkInterfaces_.add( + input.readMessage(com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9166,7 +8378,8 @@ private NetworkPolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { networkInterfaces_ = java.util.Collections.unmodifiableList(networkInterfaces_); @@ -9175,108 +8388,80 @@ private NetworkPolicy( makeExtensionsImmutable(); } } - - 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; - 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; @@ -9288,7 +8473,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)); } @@ -9302,8 +8488,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -9313,15 +8499,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -9343,94 +8529,87 @@ 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 @@ -9440,32 +8619,27 @@ 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() @@ -9473,17 +8647,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) { getNetworkInterfacesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -9497,9 +8671,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 @@ -9518,8 +8692,7 @@ 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); int from_bitField0_ = bitField0_; if (networkInterfacesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -9538,41 +8711,38 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -9580,8 +8750,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()) { @@ -9600,10 +8769,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_); } @@ -9628,8 +8796,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -9638,40 +8805,28 @@ public Builder mergeFrom( } 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 { @@ -9679,15 +8834,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) { @@ -9697,18 +8848,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 { @@ -9716,15 +8862,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) { @@ -9741,19 +8883,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()); @@ -9764,18 +8901,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(); @@ -9789,15 +8921,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) { @@ -9814,15 +8942,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) { @@ -9836,19 +8960,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()); @@ -9858,23 +8977,19 @@ 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); @@ -9882,15 +8997,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) { @@ -9903,15 +9014,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) { @@ -9924,53 +9031,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 { @@ -9978,67 +9071,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(), @@ -10047,7 +9118,6 @@ public Builder removeNetworkInterfaces(int index) { } return networkInterfacesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10060,12 +9130,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(); } @@ -10074,16 +9144,16 @@ 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 { - return new NetworkPolicy(input, extensionRegistry); - } - }; + 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 { + return new NetworkPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10098,19 +9168,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } 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 @@ -10118,25 +9186,18 @@ public boolean hasLocation() { return location_ != null; } /** - * - * *
    * 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.
    * 
@@ -10149,107 +9210,89 @@ public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicyOrBuilder getLoc } public static final int INSTANCES_FIELD_NUMBER = 8; - 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 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, + ""); } - - 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_; } @@ -10258,8 +9301,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -10272,22 +9313,22 @@ 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.
@@ -10301,12 +9342,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -10320,16 +9360,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -10343,11 +9383,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * 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();
     }
@@ -10357,14 +9398,11 @@ 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.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; - * * @return Whether the network field is set. */ @java.lang.Override @@ -10372,25 +9410,18 @@ public boolean hasNetwork() { return network_ != null; } /** - * - * *
    * The network policy.
    * 
* * .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.
    * 
@@ -10403,7 +9434,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicyOrBuilder getNetw } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10415,12 +9445,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 (location_ != null) { 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 (network_ != null) { output.writeMessage(7, getNetwork()); } @@ -10437,23 +9472,26 @@ public int getSerializedSize() { size = 0; if (location_ != null) { - 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 (network_ != null) { - 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)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -10463,23 +9501,26 @@ public int getSerializedSize() { @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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -10513,104 +9554,97 @@ 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.
@@ -10618,43 +9652,43 @@ 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"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         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.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         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()
@@ -10662,17 +9696,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) {
         getInstancesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -10699,9 +9733,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_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
@@ -10720,8 +9754,7 @@ 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);
       int from_bitField0_ = bitField0_;
       if (locationBuilder_ == null) {
         result.location_ = location_;
@@ -10752,39 +9785,38 @@ public com.google.cloud.batch.v1.AllocationPolicy buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.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;
@@ -10814,16 +9846,16 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy other) {
             instancesBuilder_ = null;
             instances_ = other.instances_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            instancesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getInstancesFieldBuilder()
-                    : null;
+            instancesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getInstancesFieldBuilder() : null;
           } else {
             instancesBuilder_.addAllMessages(other.instances_);
           }
         }
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (other.hasNetwork()) {
         mergeNetwork(other.getNetwork());
       }
@@ -10855,52 +9887,38 @@ public Builder mergeFrom(
       }
       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 locationBuilder_ != null || location_ != null; } /** - * - * *
      * 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.
      * 
@@ -10921,8 +9939,6 @@ public Builder setLocation(com.google.cloud.batch.v1.AllocationPolicy.LocationPo return this; } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
@@ -10941,8 +9957,6 @@ public Builder setLocation( return this; } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
@@ -10953,9 +9967,7 @@ public Builder mergeLocation(com.google.cloud.batch.v1.AllocationPolicy.Location if (locationBuilder_ == null) { if (location_ != null) { location_ = - com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.newBuilder(location_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } @@ -10967,8 +9979,6 @@ public Builder mergeLocation(com.google.cloud.batch.v1.AllocationPolicy.Location return this; } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
@@ -10987,8 +9997,6 @@ public Builder clearLocation() { return this; } /** - * - * *
      * Location where compute resources should be allocated for the Job.
      * 
@@ -10996,32 +10004,26 @@ public Builder clearLocation() { * .google.cloud.batch.v1.AllocationPolicy.LocationPolicy location = 1; */ public com.google.cloud.batch.v1.AllocationPolicy.LocationPolicy.Builder getLocationBuilder() { - + onChanged(); 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.
      * 
@@ -11029,54 +10031,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_ & 0x00000001) != 0)) { - instances_ = - new java.util.ArrayList< - com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate>(instances_); + instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } 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 { @@ -11084,16 +10072,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) { @@ -11103,19 +10087,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 { @@ -11123,16 +10102,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) { @@ -11149,21 +10124,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()); @@ -11174,19 +10143,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(); @@ -11200,16 +10164,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) { @@ -11226,20 +10186,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()); @@ -11250,21 +10205,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()); @@ -11275,24 +10224,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); @@ -11300,16 +10244,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) { @@ -11322,16 +10262,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) { @@ -11344,56 +10280,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 { @@ -11401,94 +10323,73 @@ 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_ & 0x00000001) != 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_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); instances_ = null; } return instancesBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -11500,8 +10401,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -11514,22 +10413,22 @@ 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.
@@ -11543,12 +10442,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -11562,17 +10460,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -11586,11 +10483,12 @@ public java.lang.String getLabelsOrDefault(
      * 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();
       }
@@ -11598,12 +10496,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -11616,21 +10513,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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -11643,20 +10542,19 @@ 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");
-      }
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels applied to all VM instances and other resources
      * created by AllocationPolicy.
@@ -11669,54 +10567,44 @@ 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);
       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.
      * 
* * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; - * * @return Whether the network field is set. */ public boolean hasNetwork() { return networkBuilder_ != null || network_ != null; } /** - * - * *
      * The network policy.
      * 
* * .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.
      * 
@@ -11737,8 +10625,6 @@ public Builder setNetwork(com.google.cloud.batch.v1.AllocationPolicy.NetworkPoli return this; } /** - * - * *
      * The network policy.
      * 
@@ -11757,8 +10643,6 @@ public Builder setNetwork( return this; } /** - * - * *
      * The network policy.
      * 
@@ -11769,9 +10653,7 @@ public Builder mergeNetwork(com.google.cloud.batch.v1.AllocationPolicy.NetworkPo if (networkBuilder_ == null) { if (network_ != null) { network_ = - com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.newBuilder(network_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.newBuilder(network_).mergeFrom(value).buildPartial(); } else { network_ = value; } @@ -11783,8 +10665,6 @@ public Builder mergeNetwork(com.google.cloud.batch.v1.AllocationPolicy.NetworkPo return this; } /** - * - * *
      * The network policy.
      * 
@@ -11803,8 +10683,6 @@ public Builder clearNetwork() { return this; } /** - * - * *
      * The network policy.
      * 
@@ -11812,13 +10690,11 @@ public Builder clearNetwork() { * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; */ public com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy.Builder getNetworkBuilder() { - + onChanged(); return getNetworkFieldBuilder().getBuilder(); } /** - * - * *
      * The network policy.
      * 
@@ -11829,14 +10705,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.
      * 
@@ -11844,24 +10717,21 @@ 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -11871,12 +10741,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(); } @@ -11885,16 +10755,16 @@ 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 { - return new AllocationPolicy(input, extensionRegistry); - } - }; + 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 { + return new AllocationPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11909,4 +10779,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.AllocationPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java similarity index 77% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java index b1604e1..d44110b 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicyOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto 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.
    * 
@@ -59,73 +35,55 @@ 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); /** - * - * *
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -140,8 +98,6 @@ public interface AllocationPolicyOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Labels applied to all VM instances and other resources
    * created by AllocationPolicy.
@@ -154,13 +110,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.
@@ -173,10 +131,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.
@@ -191,13 +148,11 @@ public interface AllocationPolicyOrBuilder
    */
 
   /* 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.
@@ -210,35 +165,29 @@ 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.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; - * * @return Whether the network field is set. */ boolean hasNetwork(); /** - * - * *
    * The network policy.
    * 
* * .google.cloud.batch.v1.AllocationPolicy.NetworkPolicy network = 7; - * * @return The network. */ com.google.cloud.batch.v1.AllocationPolicy.NetworkPolicy getNetwork(); /** - * - * *
    * The network policy.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java new file mode 100644 index 0000000..d1f529f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/BatchProto.java @@ -0,0 +1,227 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/batch/v1/batch.proto + +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\031google/api/r" + + "esource.proto\032\037google/cloud/batch/v1/job" + + ".proto\032 google/cloud/batch/v1/task.proto" + + "\032#google/longrunning/operations.proto\032\037g" + + "oogle/protobuf/timestamp.proto\"\233\001\n\020Creat" + + "eJobRequest\0220\n\006parent\030\001 \001(\tB \340A\002\372A\032\022\030bat" + + "ch.googleapis.com/Job\022\016\n\006job_id\030\002 \001(\t\022,\n" + + "\003job\030\003 \001(\0132\032.google.cloud.batch.v1.JobB\003" + + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"?\n\rGetJobRe" + + "quest\022.\n\004name\030\001 \001(\tB \340A\002\372A\032\n\030batch.googl" + + "eapis.com/Job\"N\n\020DeleteJobRequest\022\014\n\004nam" + + "e\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\"X\n\017ListJobsRequest\022\016\n\006pare" + + "nt\030\001 \001(\t\022\016\n\006filter\030\004 \001(\t\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"j\n\020ListJobsRespo" + + "nse\022(\n\004jobs\030\001 \003(\0132\032.google.cloud.batch.v" + + "1.Job\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"\201\001\n\020ListTasksRequest\0226\n\006pare" + + "nt\030\001 \001(\tB&\340A\002\372A \n\036batch.googleapis.com/T" + + "askGroup\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\021ListTasksResp" + + "onse\022*\n\005tasks\030\001 \003(\0132\033.google.cloud.batch" + + ".v1.Task\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" + + "eachable\030\003 \003(\t\"A\n\016GetTaskRequest\022/\n\004name" + + "\030\001 \001(\tB!\340A\002\372A\033\n\031batch.googleapis.com/Tas" + + "k\"\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.Timest" + + "ampB\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\013ap" + + "i_version\030\007 \001(\tB\003\340A\0032\266\010\n\014BatchService\022\233\001" + + "\n\tCreateJob\022\'.google.cloud.batch.v1.Crea" + + "teJobRequest\032\032.google.cloud.batch.v1.Job" + + "\"I\202\323\344\223\002/\"(/v1/{parent=projects/*/locatio" + + "ns/*}/jobs:\003job\332A\021parent,job,job_id\022\203\001\n\006" + + "GetJob\022$.google.cloud.batch.v1.GetJobReq" + + "uest\032\032.google.cloud.batch.v1.Job\"7\202\323\344\223\002*" + + "\022(/v1/{name=projects/*/locations/*/jobs/" + + "*}\332A\004name\022\317\001\n\tDeleteJob\022\'.google.cloud.b" + + "atch.v1.DeleteJobRequest\032\035.google.longru" + + "nning.Operation\"z\202\323\344\223\002**(/v1/{name=proje" + + "cts/*/locations/*/jobs/*}\332A\004name\312A@\n\025goo" + + "gle.protobuf.Empty\022\'google.cloud.batch.v" + + "1.OperationMetadata\022\226\001\n\010ListJobs\022&.googl" + + "e.cloud.batch.v1.ListJobsRequest\032\'.googl" + + "e.cloud.batch.v1.ListJobsResponse\"9\202\323\344\223\002" + + "*\022(/v1/{parent=projects/*/locations/*}/j" + + "obs\332A\006parent\022\233\001\n\007GetTask\022%.google.cloud." + + "batch.v1.GetTaskRequest\032\033.google.cloud.b" + + "atch.v1.Task\"L\202\323\344\223\002?\022=/v1/{name=projects" + + "/*/locations/*/jobs/*/taskGroups/*/tasks" + + "/*}\332A\004name\022\256\001\n\tListTasks\022\'.google.cloud." + + "batch.v1.ListTasksRequest\032(.google.cloud" + + ".batch.v1.ListTasksResponse\"N\202\323\344\223\002?\022=/v1" + + "/{parent=projects/*/locations/*/jobs/*/t" + + "askGroups/*}/tasks\332A\006parent\032H\312A\024batch.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\266\001\n\031com.google.clo" + + "ud.batch.v1B\nBatchProtoP\001Z:google.golang" + + ".org/genproto/googleapis/cloud/batch/v1;" + + "batch\242\002\003GCB\252\002\025Google.Cloud.Batch.V1\312\002\025Go" + + "ogle\\Cloud\\Batch\\V1\352\002\030Google::Cloud::Bat" + + "ch::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.batch.v1.JobProto.getDescriptor(), + com.google.cloud.batch.v1.TaskProto.getDescriptor(), + com.google.longrunning.OperationsProto.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", "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.ResourceProto.getDescriptor(); + com.google.cloud.batch.v1.JobProto.getDescriptor(); + com.google.cloud.batch.v1.TaskProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java similarity index 69% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java index bceb0e9..d53c11c 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResource.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto package com.google.cloud.batch.v1; /** - * - * *
  * Compute resource requirements
  * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ComputeResource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,28 +52,28 @@ private ComputeResource( case 0: done = true; break; - case 8: - { - cpuMilli_ = input.readInt64(); - break; - } - case 16: - { - memoryMib_ = input.readInt64(); - break; - } - case 32: - { - bootDiskMib_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + cpuMilli_ = input.readInt64(); + break; + } + case 16: { + + memoryMib_ = input.readInt64(); + break; + } + case 32: { + + bootDiskMib_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,39 +81,34 @@ private ComputeResource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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_; /** - * - * *
    * The milliCPU count.
    * 
* * int64 cpu_milli = 1; - * * @return The cpuMilli. */ @java.lang.Override @@ -140,14 +119,11 @@ public long getCpuMilli() { public static final int MEMORY_MIB_FIELD_NUMBER = 2; private long memoryMib_; /** - * - * *
    * Memory in MiB.
    * 
* * int64 memory_mib = 2; - * * @return The memoryMib. */ @java.lang.Override @@ -158,14 +134,11 @@ public long getMemoryMib() { public static final int BOOT_DISK_MIB_FIELD_NUMBER = 4; private long bootDiskMib_; /** - * - * *
    * Extra boot disk size in MiB for each task.
    * 
* * int64 boot_disk_mib = 4; - * * @return The bootDiskMib. */ @java.lang.Override @@ -174,7 +147,6 @@ public long getBootDiskMib() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +158,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_); } @@ -206,13 +179,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -222,17 +198,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -245,137 +223,131 @@ 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) + unknownFields.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
    * 
* * 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() @@ -383,15 +355,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +378,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 @@ -426,8 +399,7 @@ 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); + com.google.cloud.batch.v1.ComputeResource result = new com.google.cloud.batch.v1.ComputeResource(this); result.cpuMilli_ = cpuMilli_; result.memoryMib_ = memoryMib_; result.bootDiskMib_ = bootDiskMib_; @@ -439,39 +411,38 @@ public com.google.cloud.batch.v1.ComputeResource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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; @@ -518,16 +489,13 @@ public Builder mergeFrom( return this; } - private long cpuMilli_; + private long cpuMilli_ ; /** - * - * *
      * The milliCPU count.
      * 
* * int64 cpu_milli = 1; - * * @return The cpuMilli. */ @java.lang.Override @@ -535,51 +503,42 @@ public long getCpuMilli() { return cpuMilli_; } /** - * - * *
      * The milliCPU count.
      * 
* * int64 cpu_milli = 1; - * * @param value The cpuMilli to set. * @return This builder for chaining. */ public Builder setCpuMilli(long value) { - + cpuMilli_ = value; onChanged(); return this; } /** - * - * *
      * The milliCPU count.
      * 
* * int64 cpu_milli = 1; - * * @return This builder for chaining. */ public Builder clearCpuMilli() { - + cpuMilli_ = 0L; onChanged(); return this; } - private long memoryMib_; + private long memoryMib_ ; /** - * - * *
      * Memory in MiB.
      * 
* * int64 memory_mib = 2; - * * @return The memoryMib. */ @java.lang.Override @@ -587,51 +546,42 @@ public long getMemoryMib() { return memoryMib_; } /** - * - * *
      * Memory in MiB.
      * 
* * int64 memory_mib = 2; - * * @param value The memoryMib to set. * @return This builder for chaining. */ public Builder setMemoryMib(long value) { - + memoryMib_ = value; onChanged(); return this; } /** - * - * *
      * Memory in MiB.
      * 
* * int64 memory_mib = 2; - * * @return This builder for chaining. */ public Builder clearMemoryMib() { - + memoryMib_ = 0L; onChanged(); 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 @@ -639,43 +589,37 @@ 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. */ public Builder setBootDiskMib(long value) { - + bootDiskMib_ = value; onChanged(); return this; } /** - * - * *
      * Extra boot disk size in MiB for each task.
      * 
* * int64 boot_disk_mib = 4; - * * @return This builder for chaining. */ public Builder clearBootDiskMib() { - + bootDiskMib_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -685,12 +629,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(); } @@ -699,16 +643,16 @@ 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 { - return new ComputeResource(input, extensionRegistry); - } - }; + 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 { + return new ComputeResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,4 +667,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.ComputeResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java similarity index 52% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java index aa9e6c6..6468bc3 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ComputeResourceOrBuilder.java @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto 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.
    * 
* * int64 cpu_milli = 1; - * * @return The cpuMilli. */ long getCpuMilli(); /** - * - * *
    * Memory in MiB.
    * 
* * 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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java similarity index 74% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java index 41baffc..08bf15e 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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_ = ""; @@ -45,15 +27,16 @@ private CreateJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,48 +55,44 @@ private CreateJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - jobId_ = s; - break; + jobId_ = s; + break; + } + case 26: { + com.google.cloud.batch.v1.Job.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); } - case 26: - { - com.google.cloud.batch.v1.Job.Builder subBuilder = null; - if (job_ != null) { - subBuilder = job_.toBuilder(); - } - job_ = input.readMessage(com.google.cloud.batch.v1.Job.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(job_); - job_ = subBuilder.buildPartial(); - } - - break; + job_ = input.readMessage(com.google.cloud.batch.v1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,42 +100,35 @@ private CreateJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name where the Job will be created.
-   * Format: projects/{project}/locations/{location}
+   * 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 @@ -165,32 +137,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.
-   * Format: projects/{project}/locations/{location}
+   * 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 { @@ -201,8 +171,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int JOB_ID_FIELD_NUMBER = 2; 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.
@@ -214,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string job_id = 2; - * * @return The jobId. */ @java.lang.Override @@ -223,15 +190,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.
@@ -243,15 +209,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 { @@ -262,14 +229,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 @@ -277,14 +241,11 @@ public boolean hasJob() { return job_ != null; } /** - * - * *
    * Required. The Job to create.
    * 
* * .google.cloud.batch.v1.Job job = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The job. */ @java.lang.Override @@ -292,8 +253,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.
    * 
@@ -308,8 +267,6 @@ public com.google.cloud.batch.v1.JobOrBuilder getJobOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; 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 ignore
@@ -325,7 +282,6 @@ public com.google.cloud.batch.v1.JobOrBuilder getJobOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -334,15 +290,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 ignore
@@ -358,15 +313,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 { @@ -375,7 +331,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -387,7 +342,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -416,7 +372,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); } if (job_ != null) { - 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_); @@ -429,21 +386,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -470,127 +430,118 @@ 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() @@ -598,15 +549,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -626,9 +578,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 @@ -647,8 +599,7 @@ 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); + com.google.cloud.batch.v1.CreateJobRequest result = new com.google.cloud.batch.v1.CreateJobRequest(this); result.parent_ = parent_; result.jobId_ = jobId_; if (jobBuilder_ == null) { @@ -665,39 +616,38 @@ public com.google.cloud.batch.v1.CreateJobRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -752,23 +702,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name where the Job will be created.
-     * Format: projects/{project}/locations/{location}
+     * 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; @@ -777,24 +723,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name where the Job will be created.
-     * Format: projects/{project}/locations/{location}
+     * 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 { @@ -802,70 +745,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name where the Job will be created.
-     * Format: projects/{project}/locations/{location}
+     * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the Job will be created.
-     * Format: projects/{project}/locations/{location}
+     * 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the Job will be created.
-     * Format: projects/{project}/locations/{location}
+     * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -873,8 +803,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.
@@ -886,13 +814,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; @@ -901,8 +829,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.
@@ -914,14 +840,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 { @@ -929,8 +856,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.
@@ -942,22 +867,20 @@ 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) { + public Builder setJobId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** - * - * *
      * ID used to uniquely identify the Job within its parent scope.
      * This field should contain at most 63 characters.
@@ -969,18 +892,15 @@ public Builder setJobId(java.lang.String value) {
      * 
* * string job_id = 2; - * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** - * - * *
      * ID used to uniquely identify the Job within its parent scope.
      * This field should contain at most 63 characters.
@@ -992,16 +912,16 @@ 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) { + public Builder setJobIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; @@ -1009,33 +929,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 jobBuilder_ != null || job_ != null; } /** - * - * *
      * 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() { @@ -1046,8 +957,6 @@ public com.google.cloud.batch.v1.Job getJob() { } } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1068,15 +977,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(); onChanged(); @@ -1087,8 +995,6 @@ public Builder setJob(com.google.cloud.batch.v1.Job.Builder builderForValue) { return this; } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1098,7 +1004,8 @@ 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 (job_ != null) { - job_ = com.google.cloud.batch.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); + job_ = + com.google.cloud.batch.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); } else { job_ = value; } @@ -1110,8 +1017,6 @@ public Builder mergeJob(com.google.cloud.batch.v1.Job value) { return this; } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1130,8 +1035,6 @@ public Builder clearJob() { return this; } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1139,13 +1042,11 @@ public Builder clearJob() { * .google.cloud.batch.v1.Job job = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.batch.v1.Job.Builder getJobBuilder() { - + onChanged(); return getJobFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Job to create.
      * 
@@ -1156,12 +1057,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.
      * 
@@ -1169,17 +1069,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_; @@ -1187,8 +1084,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 ignore
@@ -1204,13 +1099,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; @@ -1219,8 +1114,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 ignore
@@ -1236,14 +1129,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 { @@ -1251,8 +1145,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 ignore
@@ -1268,22 +1160,20 @@ 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) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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 ignore
@@ -1299,18 +1189,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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 ignore
@@ -1326,23 +1213,23 @@ 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) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1352,12 +1239,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(); } @@ -1366,16 +1253,16 @@ 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 { - return new CreateJobRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1390,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.CreateJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java similarity index 77% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java index a50e9db..2459791 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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.
-   * Format: projects/{project}/locations/{location}
+   * 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.
-   * Format: projects/{project}/locations/{location}
+   * 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.
@@ -68,13 +41,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.
@@ -86,38 +56,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.
    * 
@@ -127,8 +89,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 ignore
@@ -144,13 +104,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 ignore
@@ -166,8 +123,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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java similarity index 75% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java index 2836af2..45d6f8a 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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_ = ""; @@ -45,15 +27,16 @@ private DeleteJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private DeleteJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - reason_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + reason_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,39 +87,34 @@ private DeleteJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; private volatile java.lang.Object name_; /** - * - * *
    * Job name.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -148,29 +123,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 { @@ -181,14 +156,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REASON_FIELD_NUMBER = 2; 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 @@ -197,29 +169,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 { @@ -230,8 +202,6 @@ public com.google.protobuf.ByteString getReasonBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 4; 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 ignore
@@ -247,7 +217,6 @@ public com.google.protobuf.ByteString getReasonBytes() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -256,15 +225,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 ignore
@@ -280,15 +248,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 { @@ -297,7 +266,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +277,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -345,17 +314,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -378,127 +349,118 @@ 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() @@ -506,15 +468,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -528,9 +491,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 @@ -549,8 +512,7 @@ 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); + com.google.cloud.batch.v1.DeleteJobRequest result = new com.google.cloud.batch.v1.DeleteJobRequest(this); result.name_ = name_; result.reason_ = reason_; result.requestId_ = requestId_; @@ -562,39 +524,38 @@ public com.google.cloud.batch.v1.DeleteJobRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -646,20 +607,18 @@ public Builder mergeFrom( 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; @@ -668,21 +627,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 { @@ -690,61 +648,54 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Job name.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -752,20 +703,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; @@ -774,21 +723,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 { @@ -796,61 +744,54 @@ 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) { + public Builder setReason( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reason_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Reason for this deletion.
      * 
* * string reason = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReason() { - + reason_ = getDefaultInstance().getReason(); onChanged(); 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) { + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reason_ = value; onChanged(); return this; @@ -858,8 +799,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 ignore
@@ -875,13 +814,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; @@ -890,8 +829,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 ignore
@@ -907,14 +844,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 { @@ -922,8 +860,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 ignore
@@ -939,22 +875,20 @@ 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) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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 ignore
@@ -970,18 +904,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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 ignore
@@ -997,23 +928,23 @@ 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) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1023,12 +954,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(); } @@ -1037,16 +968,16 @@ 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 { - return new DeleteJobRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1061,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.DeleteJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java index 7167434..e0d19fd 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/DeleteJobRequestOrBuilder.java @@ -1,81 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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 ignore
@@ -91,13 +63,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 ignore
@@ -113,8 +82,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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java similarity index 60% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java index abb2bb3..64510c6 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Environment.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto package com.google.cloud.batch.v1; /** - * - * *
  * An Environment describes a collection of environment variables to set when
  * executing Tasks.
@@ -28,29 +11,30 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Environment(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,28 +54,26 @@ private Environment(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                variables_ =
-                    com.google.protobuf.MapField.newMapField(
-                        VariablesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry variables__ =
-                  input.readMessage(
-                      VariablesDefaultEntryHolder.defaultEntry.getParserForType(),
-                      extensionRegistry);
-              variables_.getMutableMap().put(variables__.getKey(), variables__.getValue());
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              variables_ = com.google.protobuf.MapField.newMapField(
+                  VariablesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            variables__ = input.readMessage(
+                VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            variables_.getMutableMap().put(
+                variables__.getKey(), variables__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -99,57 +81,57 @@ private Environment(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.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"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 1:
         return internalGetVariables();
       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 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,
-            "");
-  }
-
-  private com.google.protobuf.MapField variables_;
-
-  private com.google.protobuf.MapField internalGetVariables() {
+    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,
+                "");
+  }
+  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_;
   }
@@ -158,30 +140,28 @@ public int getVariablesCount() {
     return internalGetVariables().getMap().size();
   }
   /**
-   *
-   *
    * 
    * A map of environment variable names to values.
    * 
* * 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.
    * 
@@ -189,12 +169,11 @@ public java.util.Map getVariables() { * map<string, string> variables = 1; */ @java.lang.Override + public java.util.Map getVariablesMap() { return internalGetVariables().getMap(); } /** - * - * *
    * A map of environment variable names to values.
    * 
@@ -202,17 +181,16 @@ public java.util.Map getVariablesMap() { * map<string, string> variables = 1; */ @java.lang.Override + public java.lang.String getVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetVariables().getMap(); + java.lang.String key, + 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.
    * 
@@ -220,11 +198,12 @@ public java.lang.String getVariablesOrDefault( * 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(); } @@ -232,7 +211,6 @@ public java.lang.String getVariablesOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,9 +222,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, internalGetVariables(), VariablesDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetVariables(), + VariablesDefaultEntryHolder.defaultEntry, + 1); unknownFields.writeTo(output); } @@ -256,15 +239,15 @@ 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 + : 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__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -274,14 +257,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.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 (!internalGetVariables().equals( + other.internalGetVariables())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -302,103 +286,97 @@ 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.
@@ -406,43 +384,43 @@ 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"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetVariables();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMutableVariables();
         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()
@@ -450,15 +428,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -467,9 +446,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
@@ -488,8 +467,7 @@ 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);
+      com.google.cloud.batch.v1.Environment result = new com.google.cloud.batch.v1.Environment(this);
       int from_bitField0_ = bitField0_;
       result.variables_ = internalGetVariables();
       result.variables_.makeImmutable();
@@ -501,39 +479,38 @@ public com.google.cloud.batch.v1.Environment buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.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;
@@ -542,7 +519,8 @@ 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());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -571,26 +549,24 @@ public Builder mergeFrom(
       }
       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() {
+    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() {
-      onChanged();
-      ;
+    internalGetMutableVariables() {
+      onChanged();;
       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();
@@ -602,30 +578,28 @@ public int getVariablesCount() {
       return internalGetVariables().getMap().size();
     }
     /**
-     *
-     *
      * 
      * A map of environment variable names to values.
      * 
* * 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.
      * 
@@ -633,12 +607,11 @@ public java.util.Map getVariables() { * map<string, string> variables = 1; */ @java.lang.Override + public java.util.Map getVariablesMap() { return internalGetVariables().getMap(); } /** - * - * *
      * A map of environment variable names to values.
      * 
@@ -646,17 +619,16 @@ public java.util.Map getVariablesMap() { * map<string, string> variables = 1; */ @java.lang.Override + public java.lang.String getVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetVariables().getMap(); + java.lang.String key, + 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.
      * 
@@ -664,11 +636,12 @@ public java.lang.String getVariablesOrDefault( * 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(); } @@ -676,66 +649,69 @@ public java.lang.String getVariablesOrThrow(java.lang.String key) { } public Builder clearVariables() { - 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() { 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"); - } + 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"); - } + throw new NullPointerException("map value"); +} - internalGetMutableVariables().getMutableMap().put(key, value); + internalGetMutableVariables().getMutableMap() + .put(key, value); 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); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -745,12 +721,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(); } @@ -759,16 +735,16 @@ 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 { - return new Environment(input, extensionRegistry); - } - }; + 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 { + return new Environment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -783,4 +759,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.Environment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java similarity index 51% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java index 0f6e250..6a4abda 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/EnvironmentOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto 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.
    * 
@@ -34,31 +16,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,18 +48,18 @@ public interface EnvironmentOrBuilder */ /* 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); } diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java similarity index 70% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java index a0d67cf..a8ffafa 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/volume.proto package com.google.cloud.batch.v1; /** - * - * *
  * Represents a Google Cloud Storage volume source config.
  * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GCS( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GCS( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - remotePath_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + remotePath_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,23 +73,22 @@ private GCS( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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); } @@ -115,15 +96,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int REMOTE_PATH_FIELD_NUMBER = 1; 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 @@ -132,30 +110,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 { @@ -164,7 +142,6 @@ public com.google.protobuf.ByteString getRemotePathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remotePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remotePath_); } @@ -200,14 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -226,123 +205,116 @@ 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 source config.
    * 
* * 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); } @@ -352,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +343,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 @@ -401,39 +374,38 @@ public com.google.cloud.batch.v1.GCS buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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; @@ -477,21 +449,19 @@ public Builder mergeFrom( 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; @@ -500,22 +470,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 { @@ -523,71 +492,64 @@ 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) { + public Builder setRemotePath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + remotePath_ = value; 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() { - + remotePath_ = getDefaultInstance().getRemotePath(); 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; - * * @param value The bytes for remotePath to set. * @return This builder for chaining. */ - public Builder setRemotePathBytes(com.google.protobuf.ByteString value) { + public Builder setRemotePathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + remotePath_ = 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); } @@ -597,12 +559,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(); } @@ -611,16 +573,16 @@ 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 { - return new GCS(input, extensionRegistry); - } - }; + 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 { + return new GCS(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.GCS getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java similarity index 51% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java index 83d7646..54538f8 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCSOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/volume.proto 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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java similarity index 65% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java index 1e8d84a..dd78461 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetJobRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private GetJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; 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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. 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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,14 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +203,118 @@ 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() @@ -357,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +341,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 @@ -396,8 +362,7 @@ 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); + com.google.cloud.batch.v1.GetJobRequest result = new com.google.cloud.batch.v1.GetJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +372,38 @@ public com.google.cloud.batch.v1.GetJobRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -483,22 +447,18 @@ public Builder mergeFrom( 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; @@ -507,23 +467,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 { @@ -531,74 +488,61 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,12 +552,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(); } @@ -622,16 +566,16 @@ 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 { - return new GetJobRequest(input, extensionRegistry); - } - }; + 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 { + return new GetJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.GetJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java new file mode 100644 index 0000000..f4d926d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetJobRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/batch/v1/batch.proto + +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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java similarity index 65% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java index 4e8e219..a0b39ca 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetTaskRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetTaskRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private GetTaskRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; 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 @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. 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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,14 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +203,118 @@ 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() @@ -357,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +341,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 @@ -396,8 +362,7 @@ 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); + com.google.cloud.batch.v1.GetTaskRequest result = new com.google.cloud.batch.v1.GetTaskRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +372,38 @@ public com.google.cloud.batch.v1.GetTaskRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -483,22 +447,18 @@ public Builder mergeFrom( 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; @@ -507,23 +467,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 { @@ -531,74 +488,61 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,12 +552,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(); } @@ -622,16 +566,16 @@ 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 { - return new GetTaskRequest(input, extensionRegistry); - } - }; + 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 { + return new GetTaskRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.GetTaskRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java new file mode 100644 index 0000000..f529f25 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GetTaskRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/batch/v1/batch.proto + +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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java similarity index 67% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java index facf6a2..c2c048c 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Job.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto 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_ = ""; @@ -46,15 +28,16 @@ private Job() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Job(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Job( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,146 +57,126 @@ private Job( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + uid_ = s; + break; + } + case 24: { + + priority_ = input.readInt64(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + taskGroups_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + taskGroups_.add( + input.readMessage(com.google.cloud.batch.v1.TaskGroup.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.cloud.batch.v1.AllocationPolicy.Builder subBuilder = null; + if (allocationPolicy_ != null) { + subBuilder = allocationPolicy_.toBuilder(); + } + allocationPolicy_ = input.readMessage(com.google.cloud.batch.v1.AllocationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allocationPolicy_); + allocationPolicy_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - uid_ = s; - break; + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 24: - { - priority_ = input.readInt64(); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 74: { + com.google.cloud.batch.v1.JobStatus.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - taskGroups_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - taskGroups_.add( - input.readMessage( - com.google.cloud.batch.v1.TaskGroup.parser(), extensionRegistry)); - break; + status_ = input.readMessage(com.google.cloud.batch.v1.JobStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); } - case 58: - { - com.google.cloud.batch.v1.AllocationPolicy.Builder subBuilder = null; - if (allocationPolicy_ != null) { - subBuilder = allocationPolicy_.toBuilder(); - } - allocationPolicy_ = - input.readMessage( - com.google.cloud.batch.v1.AllocationPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allocationPolicy_); - allocationPolicy_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 90: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 74: - { - com.google.cloud.batch.v1.JobStatus.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.batch.v1.JobStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 98: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 98: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 106: { + com.google.cloud.batch.v1.LogsPolicy.Builder subBuilder = null; + if (logsPolicy_ != null) { + subBuilder = logsPolicy_.toBuilder(); } - case 106: - { - com.google.cloud.batch.v1.LogsPolicy.Builder subBuilder = null; - if (logsPolicy_ != null) { - subBuilder = logsPolicy_.toBuilder(); - } - logsPolicy_ = - input.readMessage( - com.google.cloud.batch.v1.LogsPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(logsPolicy_); - logsPolicy_ = subBuilder.buildPartial(); - } - - break; + logsPolicy_ = input.readMessage(com.google.cloud.batch.v1.LogsPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(logsPolicy_); + logsPolicy_ = subBuilder.buildPartial(); } - case 114: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - notifications_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - notifications_.add( - input.readMessage( - com.google.cloud.batch.v1.JobNotification.parser(), extensionRegistry)); - break; + + break; + } + case 114: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + notifications_.add( + input.readMessage(com.google.cloud.batch.v1.JobNotification.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -221,7 +184,8 @@ private Job( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { taskGroups_ = java.util.Collections.unmodifiableList(taskGroups_); @@ -233,27 +197,27 @@ private Job( makeExtensionsImmutable(); } } - - 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; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.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); } @@ -261,16 +225,12 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * Job name.
-   * It must have the format of "projects/*/locations/*/jobs/*".
-   * For example: "projects/123456/locations/us-west1/jobs/job01".
+   * Output only. Job name.
+   * For example: "projects/123456/locations/us-central1/jobs/job01".
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The name. */ @java.lang.Override @@ -279,31 +239,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; } } /** - * - * *
-   * Job name.
-   * It must have the format of "projects/*/locations/*/jobs/*".
-   * For example: "projects/123456/locations/us-west1/jobs/job01".
+   * Output only. Job name.
+   * For example: "projects/123456/locations/us-central1/jobs/job01".
    * 
* - * string name = 1; - * + * 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 { @@ -314,14 +273,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UID_FIELD_NUMBER = 2; 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 @@ -330,29 +286,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 { @@ -363,16 +319,14 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int PRIORITY_FIELD_NUMBER = 3; private long priority_; /** - * - * *
    * Priority of the Job.
    * The valid value range is [0, 100).
-   * A job with higher priority value will be scheduled to run earlier.
+   * A job with higher priority value is more likely to run earlier if all other
+   * requirements are satisfied.
    * 
* * int64 priority = 3; - * * @return The priority. */ @java.lang.Override @@ -383,93 +337,71 @@ public long getPriority() { public static final int TASK_GROUPS_FIELD_NUMBER = 4; 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 @@ -477,25 +409,18 @@ public boolean hasAllocationPolicy() { return allocationPolicy_ != null; } /** - * - * *
    * 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.
    * 
@@ -508,23 +433,24 @@ public com.google.cloud.batch.v1.AllocationPolicyOrBuilder getAllocationPolicyOr } 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, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.batch.v1.JobProto.internal_static_google_cloud_batch_v1_Job_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -533,8 +459,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -550,22 +474,22 @@ 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,
@@ -582,12 +506,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -604,16 +527,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -630,11 +553,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -644,15 +568,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 @@ -660,15 +580,11 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
    * 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 @@ -676,14 +592,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() { @@ -693,14 +606,11 @@ public com.google.cloud.batch.v1.JobStatusOrBuilder getStatusOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp createTime_; /** - * - * *
-   * When the Job was created.
+   * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -708,14 +618,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
-   * When the Job was created.
+   * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -723,13 +630,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
-   * When the Job was created.
+   * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -739,14 +644,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
-   * The last time the Job was updated.
+   * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -754,14 +656,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
-   * The last time the Job was updated.
+   * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -769,13 +668,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
-   * The last time the Job was updated.
+   * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -785,14 +682,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 @@ -800,25 +694,18 @@ public boolean hasLogsPolicy() { return logsPolicy_ != null; } /** - * - * *
    * 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.
    * 
@@ -833,8 +720,6 @@ public com.google.cloud.batch.v1.LogsPolicyOrBuilder getLogsPolicyOrBuilder() { public static final int NOTIFICATIONS_FIELD_NUMBER = 14; private java.util.List notifications_; /** - * - * *
    * Notification configurations.
    * 
@@ -846,8 +731,6 @@ public java.util.List getNotification return notifications_; } /** - * - * *
    * Notification configurations.
    * 
@@ -855,13 +738,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.
    * 
@@ -873,8 +754,6 @@ public int getNotificationsCount() { return notifications_.size(); } /** - * - * *
    * Notification configurations.
    * 
@@ -886,8 +765,6 @@ public com.google.cloud.batch.v1.JobNotification getNotifications(int index) { return notifications_.get(index); } /** - * - * *
    * Notification configurations.
    * 
@@ -895,12 +772,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; @@ -912,7 +789,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_); } @@ -928,8 +806,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (allocationPolicy_ != null) { 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 (status_ != null) { output.writeMessage(9, getStatus()); } @@ -961,38 +843,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 (allocationPolicy_ != null) { - 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 (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getStatus()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getUpdateTime()); } if (logsPolicy_ != null) { - 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1002,39 +892,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1051,7 +952,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(); @@ -1089,143 +991,138 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.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); } @@ -1235,18 +1132,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) { getTaskGroupsFieldBuilder(); getNotificationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1303,9 +1200,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 @@ -1382,39 +1279,38 @@ public com.google.cloud.batch.v1.Job buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -1452,10 +1348,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.Job other) { taskGroupsBuilder_ = null; taskGroups_ = other.taskGroups_; bitField0_ = (bitField0_ & ~0x00000001); - taskGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTaskGroupsFieldBuilder() - : null; + taskGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaskGroupsFieldBuilder() : null; } else { taskGroupsBuilder_.addAllMessages(other.taskGroups_); } @@ -1464,7 +1359,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()); if (other.hasStatus()) { mergeStatus(other.getStatus()); } @@ -1495,10 +1391,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.Job other) { notificationsBuilder_ = null; notifications_ = other.notifications_; bitField0_ = (bitField0_ & ~0x00000004); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNotificationsFieldBuilder() - : null; + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; } else { notificationsBuilder_.addAllMessages(other.notifications_); } @@ -1532,27 +1427,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
-     * Job name.
-     * It must have the format of "projects/*/locations/*/jobs/*".
-     * For example: "projects/123456/locations/us-west1/jobs/job01".
+     * Output only. Job name.
+     * For example: "projects/123456/locations/us-central1/jobs/job01".
      * 
* - * string name = 1; - * + * 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; @@ -1561,23 +1452,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * Job name.
-     * It must have the format of "projects/*/locations/*/jobs/*".
-     * For example: "projects/123456/locations/us-west1/jobs/job01".
+     * Output only. Job name.
+     * For example: "projects/123456/locations/us-central1/jobs/job01".
      * 
* - * string name = 1; - * + * 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 { @@ -1585,67 +1474,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Job name.
-     * It must have the format of "projects/*/locations/*/jobs/*".
-     * For example: "projects/123456/locations/us-west1/jobs/job01".
+     * Output only. Job name.
+     * For example: "projects/123456/locations/us-central1/jobs/job01".
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
-     * Job name.
-     * It must have the format of "projects/*/locations/*/jobs/*".
-     * For example: "projects/123456/locations/us-west1/jobs/job01".
+     * Output only. Job name.
+     * For example: "projects/123456/locations/us-central1/jobs/job01".
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * Job name.
-     * It must have the format of "projects/*/locations/*/jobs/*".
-     * For example: "projects/123456/locations/us-west1/jobs/job01".
+     * Output only. Job name.
+     * For example: "projects/123456/locations/us-central1/jobs/job01".
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1653,20 +1532,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; @@ -1675,21 +1552,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 { @@ -1697,78 +1573,69 @@ 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) { + public Builder setUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; 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() { - + uid_ = getDefaultInstance().getUid(); 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]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; } - private long priority_; + private long priority_ ; /** - * - * *
      * Priority of the Job.
      * The valid value range is [0, 100).
-     * A job with higher priority value will be scheduled to run earlier.
+     * A job with higher priority value is more likely to run earlier if all other
+     * requirements are satisfied.
      * 
* * int64 priority = 3; - * * @return The priority. */ @java.lang.Override @@ -1776,71 +1643,59 @@ public long getPriority() { return priority_; } /** - * - * *
      * Priority of the Job.
      * The valid value range is [0, 100).
-     * A job with higher priority value will be scheduled to run earlier.
+     * A job with higher priority value is more likely to run earlier if all other
+     * requirements are satisfied.
      * 
* * int64 priority = 3; - * * @param value The priority to set. * @return This builder for chaining. */ public Builder setPriority(long value) { - + priority_ = value; onChanged(); return this; } /** - * - * *
      * Priority of the Job.
      * The valid value range is [0, 100).
-     * A job with higher priority value will be scheduled to run earlier.
+     * A job with higher priority value is more likely to run earlier if all other
+     * requirements are satisfied.
      * 
* * int64 priority = 3; - * * @return This builder for chaining. */ public Builder clearPriority() { - + priority_ = 0L; onChanged(); return this; } private java.util.List taskGroups_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTaskGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { taskGroups_ = new java.util.ArrayList(taskGroups_); bitField0_ |= 0x00000001; - } + } } 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) { @@ -1850,15 +1705,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) { @@ -1868,15 +1719,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) { @@ -1886,17 +1733,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(); @@ -1910,15 +1754,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) { @@ -1932,15 +1772,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) { @@ -1956,17 +1792,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(); @@ -1980,17 +1813,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()); @@ -2001,15 +1831,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) { @@ -2023,21 +1849,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); @@ -2045,15 +1868,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) { @@ -2066,15 +1885,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) { @@ -2087,50 +1902,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 { @@ -2138,62 +1942,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_ & 0x00000001) != 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_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); taskGroups_ = null; } return taskGroupsBuilder_; @@ -2201,47 +1992,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 allocationPolicyBuilder_ != null || allocationPolicy_ != null; } /** - * - * *
      * 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.
      * 
@@ -2262,8 +2040,6 @@ public Builder setAllocationPolicy(com.google.cloud.batch.v1.AllocationPolicy va return this; } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2282,8 +2058,6 @@ public Builder setAllocationPolicy( return this; } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2294,9 +2068,7 @@ public Builder mergeAllocationPolicy(com.google.cloud.batch.v1.AllocationPolicy if (allocationPolicyBuilder_ == null) { if (allocationPolicy_ != null) { allocationPolicy_ = - com.google.cloud.batch.v1.AllocationPolicy.newBuilder(allocationPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.batch.v1.AllocationPolicy.newBuilder(allocationPolicy_).mergeFrom(value).buildPartial(); } else { allocationPolicy_ = value; } @@ -2308,8 +2080,6 @@ public Builder mergeAllocationPolicy(com.google.cloud.batch.v1.AllocationPolicy return this; } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2328,8 +2098,6 @@ public Builder clearAllocationPolicy() { return this; } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2337,13 +2105,11 @@ public Builder clearAllocationPolicy() { * .google.cloud.batch.v1.AllocationPolicy allocation_policy = 7; */ public com.google.cloud.batch.v1.AllocationPolicy.Builder getAllocationPolicyBuilder() { - + onChanged(); return getAllocationPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Compute resource allocation for all TaskGroups in the Job.
      * 
@@ -2354,14 +2120,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.
      * 
@@ -2369,37 +2132,35 @@ 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2411,8 +2172,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2428,22 +2187,22 @@ 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,
@@ -2460,12 +2219,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2482,17 +2240,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2509,11 +2266,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2521,12 +2279,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2542,21 +2299,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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2572,20 +2331,19 @@ 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");
-      }
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels for the Job. Labels could be user provided or system generated.
      * For example,
@@ -2601,44 +2359,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);
       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 statusBuilder_ != null || status_ != null; } /** - * - * *
      * 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() { @@ -2649,15 +2397,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) { @@ -2673,17 +2417,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(); onChanged(); @@ -2694,23 +2435,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 (status_ != null) { status_ = - com.google.cloud.batch.v1.JobStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.batch.v1.JobStatus.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } @@ -2722,15 +2457,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() { if (statusBuilder_ == null) { @@ -2744,62 +2475,48 @@ 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() { - + onChanged(); 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_; @@ -2807,52 +2524,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_; /** - * - * *
-     * When the Job was created.
+     * Output only. When the Job was created.
      * 
* - * .google.protobuf.Timestamp create_time = 11; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
-     * When the Job was created.
+     * Output only. When the Job was created.
      * 
* - * .google.protobuf.Timestamp create_time = 11; - * + * .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(); } } /** - * - * *
-     * When the Job was created.
+     * Output only. When the Job was created.
      * 
* - * .google.protobuf.Timestamp create_time = 11; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2868,15 +2572,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
-     * When the Job was created.
+     * Output only. When the Job was created.
      * 
* - * .google.protobuf.Timestamp create_time = 11; + * .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(); onChanged(); @@ -2887,19 +2590,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
-     * When the Job was created.
+     * Output only. When the Job was created.
      * 
* - * .google.protobuf.Timestamp create_time = 11; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2911,13 +2612,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
-     * When the Job was created.
+     * Output only. When the Job was created.
      * 
* - * .google.protobuf.Timestamp create_time = 11; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2931,58 +2630,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
-     * When the Job was created.
+     * Output only. When the Job was created.
      * 
* - * .google.protobuf.Timestamp create_time = 11; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
-     * When the Job was created.
+     * Output only. When the Job was created.
      * 
* - * .google.protobuf.Timestamp create_time = 11; + * .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_; } } /** - * - * *
-     * When the Job was created.
+     * Output only. When the Job was created.
      * 
* - * .google.protobuf.Timestamp create_time = 11; + * .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_; @@ -2990,52 +2679,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_; /** - * - * *
-     * The last time the Job was updated.
+     * Output only. The last time the Job was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 12; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
-     * The last time the Job was updated.
+     * Output only. The last time the Job was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 12; - * + * .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(); } } /** - * - * *
-     * The last time the Job was updated.
+     * Output only. The last time the Job was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 12; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3051,15 +2727,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
-     * The last time the Job was updated.
+     * Output only. The last time the Job was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 12; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3070,19 +2745,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
-     * The last time the Job was updated.
+     * Output only. The last time the Job was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 12; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3094,13 +2767,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
-     * The last time the Job was updated.
+     * Output only. The last time the Job was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 12; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3114,58 +2785,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
-     * The last time the Job was updated.
+     * Output only. The last time the Job was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 12; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
-     * The last time the Job was updated.
+     * Output only. The last time the Job was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 12; + * .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_; } } /** - * - * *
-     * The last time the Job was updated.
+     * Output only. The last time the Job was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 12; + * .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_; @@ -3173,47 +2834,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 logsPolicyBuilder_ != null || logsPolicy_ != null; } /** - * - * *
      * 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.
      * 
@@ -3234,15 +2882,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(); onChanged(); @@ -3253,8 +2900,6 @@ public Builder setLogsPolicy(com.google.cloud.batch.v1.LogsPolicy.Builder builde return this; } /** - * - * *
      * Log preservation policy for the Job.
      * 
@@ -3265,9 +2910,7 @@ public Builder mergeLogsPolicy(com.google.cloud.batch.v1.LogsPolicy value) { if (logsPolicyBuilder_ == null) { if (logsPolicy_ != null) { logsPolicy_ = - com.google.cloud.batch.v1.LogsPolicy.newBuilder(logsPolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.batch.v1.LogsPolicy.newBuilder(logsPolicy_).mergeFrom(value).buildPartial(); } else { logsPolicy_ = value; } @@ -3279,8 +2922,6 @@ public Builder mergeLogsPolicy(com.google.cloud.batch.v1.LogsPolicy value) { return this; } /** - * - * *
      * Log preservation policy for the Job.
      * 
@@ -3299,8 +2940,6 @@ public Builder clearLogsPolicy() { return this; } /** - * - * *
      * Log preservation policy for the Job.
      * 
@@ -3308,13 +2947,11 @@ public Builder clearLogsPolicy() { * .google.cloud.batch.v1.LogsPolicy logs_policy = 13; */ public com.google.cloud.batch.v1.LogsPolicy.Builder getLogsPolicyBuilder() { - + onChanged(); return getLogsPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Log preservation policy for the Job.
      * 
@@ -3325,14 +2962,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.
      * 
@@ -3340,42 +2974,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_ & 0x00000004) != 0)) { - notifications_ = - new java.util.ArrayList(notifications_); + notifications_ = new java.util.ArrayList(notifications_); bitField0_ |= 0x00000004; - } + } } 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.
      * 
@@ -3390,8 +3014,6 @@ public java.util.List getNotification } } /** - * - * *
      * Notification configurations.
      * 
@@ -3406,8 +3028,6 @@ public int getNotificationsCount() { } } /** - * - * *
      * Notification configurations.
      * 
@@ -3422,15 +3042,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(); @@ -3444,8 +3063,6 @@ public Builder setNotifications(int index, com.google.cloud.batch.v1.JobNotifica return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3464,8 +3081,6 @@ public Builder setNotifications( return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3486,15 +3101,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(); @@ -3508,8 +3122,6 @@ public Builder addNotifications(int index, com.google.cloud.batch.v1.JobNotifica return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3528,8 +3140,6 @@ public Builder addNotifications( return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3548,8 +3158,6 @@ public Builder addNotifications( return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3560,7 +3168,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); @@ -3568,8 +3177,6 @@ public Builder addAllNotifications( return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3587,8 +3194,6 @@ public Builder clearNotifications() { return this; } /** - * - * *
      * Notification configurations.
      * 
@@ -3606,44 +3211,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 { @@ -3651,8 +3251,6 @@ public com.google.cloud.batch.v1.JobNotificationOrBuilder getNotificationsOrBuil } } /** - * - * *
      * Notification configurations.
      * 
@@ -3660,47 +3258,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_ & 0x00000004) != 0), getParentForChildren(), @@ -3709,9 +3298,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); } @@ -3721,12 +3310,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(); } @@ -3735,16 +3324,16 @@ 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 { - return new Job(input, extensionRegistry); - } - }; + 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 { + return new Job(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3759,4 +3348,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.Job getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java similarity index 100% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java similarity index 67% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java index fe1c6b9..dc041ba 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private JobNotification( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private JobNotification( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - pubsubTopic_ = s; - break; + pubsubTopic_ = s; + break; + } + case 18: { + com.google.cloud.batch.v1.JobNotification.Message.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); } - case 18: - { - com.google.cloud.batch.v1.JobNotification.Message.Builder subBuilder = null; - if (message_ != null) { - subBuilder = message_.toBuilder(); - } - message_ = - input.readMessage( - com.google.cloud.batch.v1.JobNotification.Message.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(message_); - message_ = subBuilder.buildPartial(); - } - - break; + message_ = input.readMessage(com.google.cloud.batch.v1.JobNotification.Message.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,41 +86,36 @@ private JobNotification( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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.
      * 
@@ -151,8 +124,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Notify users that the job state has changed.
      * 
@@ -161,8 +132,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ JOB_STATE_CHANGED(1), /** - * - * *
      * Notify users that the task state has changed.
      * 
@@ -174,8 +143,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -184,8 +151,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.
      * 
@@ -194,8 +159,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.
      * 
@@ -204,6 +167,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( @@ -228,49 +192,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; @@ -287,107 +251,85 @@ 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 a list of attributes this message should have.
+   * Describe the attribute that a message should have.
    * Without specified message attributes, no message will be sent by default.
    * 
* * 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; @@ -396,15 +338,16 @@ private Message() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Message(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Message( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -423,34 +366,31 @@ private Message( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + type_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - newJobState_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + newJobState_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - newTaskState_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + newTaskState_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,138 +398,108 @@ private Message( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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_; /** - * - * *
      * 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() { + @java.lang.Override public com.google.cloud.batch.v1.JobNotification.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.JobNotification.Type result = - com.google.cloud.batch.v1.JobNotification.Type.valueOf(type_); + com.google.cloud.batch.v1.JobNotification.Type result = com.google.cloud.batch.v1.JobNotification.Type.valueOf(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_; /** - * - * *
      * 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() { + @java.lang.Override public com.google.cloud.batch.v1.JobStatus.State getNewJobState() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.JobStatus.State result = - com.google.cloud.batch.v1.JobStatus.State.valueOf(newJobState_); + com.google.cloud.batch.v1.JobStatus.State result = com.google.cloud.batch.v1.JobStatus.State.valueOf(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_; /** - * - * *
      * 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() { + @java.lang.Override public com.google.cloud.batch.v1.TaskStatus.State getNewTaskState() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.TaskStatus.State result = - com.google.cloud.batch.v1.TaskStatus.State.valueOf(newTaskState_); + com.google.cloud.batch.v1.TaskStatus.State result = com.google.cloud.batch.v1.TaskStatus.State.valueOf(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; @@ -601,15 +511,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_); } unknownFields.writeTo(output); @@ -622,14 +532,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -639,13 +551,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; @@ -673,93 +584,87 @@ 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 @@ -769,34 +674,29 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Message details.
-     * Describe a list of attributes this message should have.
+     * Describe the attribute that a message should have.
      * Without specified message attributes, no message will be sent by default.
      * 
* * 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() @@ -804,15 +704,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -826,9 +727,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 @@ -847,8 +748,7 @@ 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); + com.google.cloud.batch.v1.JobNotification.Message result = new com.google.cloud.batch.v1.JobNotification.Message(this); result.type_ = type_; result.newJobState_ = newJobState_; result.newTaskState_ = newTaskState_; @@ -860,41 +760,38 @@ public com.google.cloud.batch.v1.JobNotification.Message buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -902,8 +799,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()); } @@ -932,8 +828,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.JobNotification.Message) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.JobNotification.Message) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -945,67 +840,51 @@ public Builder mergeFrom( 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. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.JobNotification.Type result = - com.google.cloud.batch.v1.JobNotification.Type.valueOf(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.valueOf(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. */ @@ -1013,24 +892,21 @@ public Builder setType(com.google.cloud.batch.v1.JobNotification.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The message type.
        * 
* * .google.cloud.batch.v1.JobNotification.Type type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1038,65 +914,51 @@ 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. */ public Builder setNewJobStateValue(int value) { - + newJobState_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.JobStatus.State result = - com.google.cloud.batch.v1.JobStatus.State.valueOf(newJobState_); + com.google.cloud.batch.v1.JobStatus.State result = com.google.cloud.batch.v1.JobStatus.State.valueOf(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. */ @@ -1104,24 +966,21 @@ public Builder setNewJobState(com.google.cloud.batch.v1.JobStatus.State value) { if (value == null) { throw new NullPointerException(); } - + newJobState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The new job state.
        * 
* * .google.cloud.batch.v1.JobStatus.State new_job_state = 2; - * * @return This builder for chaining. */ public Builder clearNewJobState() { - + newJobState_ = 0; onChanged(); return this; @@ -1129,65 +988,51 @@ 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. */ public Builder setNewTaskStateValue(int value) { - + newTaskState_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.TaskStatus.State result = - com.google.cloud.batch.v1.TaskStatus.State.valueOf(newTaskState_); + com.google.cloud.batch.v1.TaskStatus.State result = com.google.cloud.batch.v1.TaskStatus.State.valueOf(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. */ @@ -1195,29 +1040,25 @@ public Builder setNewTaskState(com.google.cloud.batch.v1.TaskStatus.State value) if (value == null) { throw new NullPointerException(); } - + newTaskState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The new task state.
        * 
* * .google.cloud.batch.v1.TaskStatus.State new_task_state = 3; - * * @return This builder for chaining. */ public Builder clearNewTaskState() { - + newTaskState_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1230,12 +1071,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(); } @@ -1244,16 +1085,16 @@ 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 { - return new Message(input, extensionRegistry); - } - }; + 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 { + return new Message(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1268,23 +1109,21 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.JobNotification.Message getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PUBSUB_TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object pubsubTopic_; /** - * - * *
    * The Pub/Sub topic where notifications like the job state changes
-   * will be published. This topic should be an existing topic in the same
-   * project with the job and billings will be charged to this project. If no
-   * topic is specified, there will be no Pub/Sub messages sent. Topic
-   * format is `projects/{project}/topics/{topic}`.
+   * will be published. This topic exist in the same project as the job
+   * and billings will be charged to this project.
+   * If not specified, no Pub/Sub messages will be sent.
+   * Topic format: `projects/{project}/topics/{topic}`.
    * 
* * string pubsub_topic = 1; - * * @return The pubsubTopic. */ @java.lang.Override @@ -1293,33 +1132,33 @@ 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. This topic should be an existing topic in the same
-   * project with the job and billings will be charged to this project. If no
-   * topic is specified, there will be no Pub/Sub messages sent. Topic
-   * format is `projects/{project}/topics/{topic}`.
+   * will be published. This topic exist in the same project as the job
+   * and billings will be charged to this project.
+   * If not specified, no Pub/Sub messages will be sent.
+   * Topic format: `projects/{project}/topics/{topic}`.
    * 
* * 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 { @@ -1330,16 +1169,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 message caters the message attributes configuration will to be sent
-   * to this Pub/Sub topic. Without this field, there is no message being sent
-   * by default.
+   * 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 @@ -1347,31 +1182,22 @@ public boolean hasMessage() { return message_ != null; } /** - * - * *
-   * The message caters the message attributes configuration will to be sent
-   * to this Pub/Sub topic. Without this field, there is no message being sent
-   * by default.
+   * 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 message caters the message attributes configuration will to be sent
-   * to this Pub/Sub topic. Without this field, there is no message being sent
-   * by default.
+   * 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; @@ -1382,7 +1208,6 @@ public com.google.cloud.batch.v1.JobNotification.MessageOrBuilder getMessageOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1394,7 +1219,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_); } @@ -1414,7 +1240,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pubsubTopic_); } if (message_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMessage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMessage()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1424,18 +1251,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1459,127 +1287,118 @@ 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() @@ -1587,15 +1406,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1611,9 +1431,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 @@ -1632,8 +1452,7 @@ 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); + com.google.cloud.batch.v1.JobNotification result = new com.google.cloud.batch.v1.JobNotification(this); result.pubsubTopic_ = pubsubTopic_; if (messageBuilder_ == null) { result.message_ = message_; @@ -1648,39 +1467,38 @@ public com.google.cloud.batch.v1.JobNotification buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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; @@ -1727,24 +1545,22 @@ public Builder mergeFrom( private java.lang.Object pubsubTopic_ = ""; /** - * - * *
      * The Pub/Sub topic where notifications like the job state changes
-     * will be published. This topic should be an existing topic in the same
-     * project with the job and billings will be charged to this project. If no
-     * topic is specified, there will be no Pub/Sub messages sent. Topic
-     * format is `projects/{project}/topics/{topic}`.
+     * will be published. This topic exist in the same project as the job
+     * and billings will be charged to this project.
+     * If not specified, no Pub/Sub messages will be sent.
+     * Topic format: `projects/{project}/topics/{topic}`.
      * 
* * 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; @@ -1753,25 +1569,24 @@ public java.lang.String getPubsubTopic() { } } /** - * - * *
      * The Pub/Sub topic where notifications like the job state changes
-     * will be published. This topic should be an existing topic in the same
-     * project with the job and billings will be charged to this project. If no
-     * topic is specified, there will be no Pub/Sub messages sent. Topic
-     * format is `projects/{project}/topics/{topic}`.
+     * will be published. This topic exist in the same project as the job
+     * and billings will be charged to this project.
+     * If not specified, no Pub/Sub messages will be sent.
+     * Topic format: `projects/{project}/topics/{topic}`.
      * 
* * 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 { @@ -1779,73 +1594,66 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } } /** - * - * *
      * The Pub/Sub topic where notifications like the job state changes
-     * will be published. This topic should be an existing topic in the same
-     * project with the job and billings will be charged to this project. If no
-     * topic is specified, there will be no Pub/Sub messages sent. Topic
-     * format is `projects/{project}/topics/{topic}`.
+     * will be published. This topic exist in the same project as the job
+     * and billings will be charged to this project.
+     * If not specified, no Pub/Sub messages will be sent.
+     * Topic format: `projects/{project}/topics/{topic}`.
      * 
* * string pubsub_topic = 1; - * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic(java.lang.String value) { + public Builder setPubsubTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; onChanged(); return this; } /** - * - * *
      * The Pub/Sub topic where notifications like the job state changes
-     * will be published. This topic should be an existing topic in the same
-     * project with the job and billings will be charged to this project. If no
-     * topic is specified, there will be no Pub/Sub messages sent. Topic
-     * format is `projects/{project}/topics/{topic}`.
+     * will be published. This topic exist in the same project as the job
+     * and billings will be charged to this project.
+     * If not specified, no Pub/Sub messages will be sent.
+     * Topic format: `projects/{project}/topics/{topic}`.
      * 
* * string pubsub_topic = 1; - * * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); onChanged(); return this; } /** - * - * *
      * The Pub/Sub topic where notifications like the job state changes
-     * will be published. This topic should be an existing topic in the same
-     * project with the job and billings will be charged to this project. If no
-     * topic is specified, there will be no Pub/Sub messages sent. Topic
-     * format is `projects/{project}/topics/{topic}`.
+     * will be published. This topic exist in the same project as the job
+     * and billings will be charged to this project.
+     * If not specified, no Pub/Sub messages will be sent.
+     * Topic format: `projects/{project}/topics/{topic}`.
      * 
* * 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) { + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -1853,55 +1661,39 @@ 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 message caters the message attributes configuration will to be sent
-     * to this Pub/Sub topic. Without this field, there is no message being sent
-     * by default.
+     * 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 messageBuilder_ != null || message_ != null; } /** - * - * *
-     * The message caters the message attributes configuration will to be sent
-     * to this Pub/Sub topic. Without this field, there is no message being sent
-     * by default.
+     * 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 message caters the message attributes configuration will to be sent
-     * to this Pub/Sub topic. Without this field, there is no message being sent
-     * by default.
+     * 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; @@ -1920,12 +1712,9 @@ public Builder setMessage(com.google.cloud.batch.v1.JobNotification.Message valu return this; } /** - * - * *
-     * The message caters the message attributes configuration will to be sent
-     * to this Pub/Sub topic. Without this field, there is no message being sent
-     * by default.
+     * 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; @@ -1942,12 +1731,9 @@ public Builder setMessage( return this; } /** - * - * *
-     * The message caters the message attributes configuration will to be sent
-     * to this Pub/Sub topic. Without this field, there is no message being sent
-     * by default.
+     * 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; @@ -1956,9 +1742,7 @@ public Builder mergeMessage(com.google.cloud.batch.v1.JobNotification.Message va if (messageBuilder_ == null) { if (message_ != null) { message_ = - com.google.cloud.batch.v1.JobNotification.Message.newBuilder(message_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.batch.v1.JobNotification.Message.newBuilder(message_).mergeFrom(value).buildPartial(); } else { message_ = value; } @@ -1970,12 +1754,9 @@ public Builder mergeMessage(com.google.cloud.batch.v1.JobNotification.Message va return this; } /** - * - * *
-     * The message caters the message attributes configuration will to be sent
-     * to this Pub/Sub topic. Without this field, there is no message being sent
-     * by default.
+     * 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; @@ -1992,28 +1773,22 @@ public Builder clearMessage() { return this; } /** - * - * *
-     * The message caters the message attributes configuration will to be sent
-     * to this Pub/Sub topic. Without this field, there is no message being sent
-     * by default.
+     * 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; */ public com.google.cloud.batch.v1.JobNotification.Message.Builder getMessageBuilder() { - + onChanged(); return getMessageFieldBuilder().getBuilder(); } /** - * - * *
-     * The message caters the message attributes configuration will to be sent
-     * to this Pub/Sub topic. Without this field, there is no message being sent
-     * by default.
+     * 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; @@ -2022,41 +1797,34 @@ 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 message caters the message attributes configuration will to be sent
-     * to this Pub/Sub topic. Without this field, there is no message being sent
-     * by default.
+     * 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; */ 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); } @@ -2066,12 +1834,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(); } @@ -2080,16 +1848,16 @@ 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 { - return new JobNotification(input, extensionRegistry); - } - }; + 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 { + return new JobNotification(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2104,4 +1872,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.JobNotification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java new file mode 100644 index 0000000..23f7b10 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/batch/v1/job.proto + +package com.google.cloud.batch.v1; + +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. This topic exist in the same project as the job
+   * and billings will be charged to this project.
+   * If not specified, no Pub/Sub messages will be sent.
+   * Topic format: `projects/{project}/topics/{topic}`.
+   * 
+ * + * 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. This topic exist in the same project as the job
+   * and billings will be charged to this project.
+   * If not specified, no Pub/Sub messages will be sent.
+   * Topic format: `projects/{project}/topics/{topic}`.
+   * 
+ * + * string pubsub_topic = 1; + * @return The bytes for pubsubTopic. + */ + 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.
+   * 
+ * + * .google.cloud.batch.v1.JobNotification.Message message = 2; + */ + com.google.cloud.batch.v1.JobNotification.MessageOrBuilder getMessageOrBuilder(); +} diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java similarity index 70% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java index 63201e4..1223d0a 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobOrBuilder.java @@ -1,186 +1,130 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 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 { /** - * - * *
-   * Job name.
-   * It must have the format of "projects/*/locations/*/jobs/*".
-   * For example: "projects/123456/locations/us-west1/jobs/job01".
+   * Output only. Job name.
+   * For example: "projects/123456/locations/us-central1/jobs/job01".
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The name. */ java.lang.String getName(); /** - * - * *
-   * Job name.
-   * It must have the format of "projects/*/locations/*/jobs/*".
-   * For example: "projects/123456/locations/us-west1/jobs/job01".
+   * Output only. Job name.
+   * For example: "projects/123456/locations/us-central1/jobs/job01".
    * 
* - * string name = 1; - * + * 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).
-   * A job with higher priority value will be scheduled to run earlier.
+   * A job with higher priority value is more likely to run earlier if all other
+   * requirements are satisfied.
    * 
* * 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.
    * 
@@ -190,8 +134,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,
@@ -209,8 +151,6 @@ public interface JobOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Labels for the Job. Labels could be user provided or system generated.
    * For example,
@@ -226,13 +166,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,
@@ -248,10 +190,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 +210,11 @@ public interface JobOrBuilder
    */
 
   /* 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,143 +230,110 @@ 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(); /** - * - * *
-   * When the Job was created.
+   * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
-   * When the Job was created.
+   * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
-   * When the Job was created.
+   * Output only. When the Job was created.
    * 
* - * .google.protobuf.Timestamp create_time = 11; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
-   * The last time the Job was updated.
+   * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
-   * The last time the Job was updated.
+   * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
-   * The last time the Job was updated.
+   * Output only. The last time the Job was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 12; + * .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.
    * 
@@ -437,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.
    * 
@@ -457,8 +360,6 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.batch.v1.JobNotification getNotifications(int index); /** - * - * *
    * Notification configurations.
    * 
@@ -467,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/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java new file mode 100644 index 0000000..0c6af6b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java @@ -0,0 +1,388 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/batch/v1/job.proto + +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_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_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; + + 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}\"\254\001\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\"G\n\013Destination\022\033\n\027DESTI" + + "NATION_UNSPECIFIED\020\000\022\021\n\rCLOUD_LOGGING\020\001\022" + + "\010\n\004PATH\020\002\"\277\006\n\tJobStatus\0225\n\005state\030\001 \001(\0162&" + + ".google.cloud.batch.v1.JobStatus.State\0229" + + "\n\rstatus_events\030\002 \003(\0132\".google.cloud.bat" + + "ch.v1.StatusEvent\022E\n\013task_groups\030\004 \003(\01320" + + ".google.cloud.batch.v1.JobStatus.TaskGro" + + "upsEntry\022/\n\014run_duration\030\005 \001(\0132\031.google." + + "protobuf.Duration\032\220\001\n\016InstanceStatus\022\024\n\014" + + "machine_type\030\001 \001(\t\022U\n\022provisioning_model" + + "\030\002 \001(\01629.google.cloud.batch.v1.Allocatio" + + "nPolicy.ProvisioningModel\022\021\n\ttask_pack\030\003" + + " \001(\003\032\322\001\n\017TaskGroupStatus\022L\n\006counts\030\001 \003(\013" + + "2<.google.cloud.batch.v1.JobStatus.TaskG" + + "roupStatus.CountsEntry\022B\n\tinstances\030\002 \003(" + + "\0132/.google.cloud.batch.v1.JobStatus.Inst" + + "anceStatus\032-\n\013CountsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\003:\0028\001\032c\n\017TaskGroupsEntry\022\013\n\003" + + "key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.google.cloud." + + "batch.v1.JobStatus.TaskGroupStatus:\0028\001\"{" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006QUEUED" + + "\020\001\022\r\n\tSCHEDULED\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEE" + + "DED\020\004\022\n\n\006FAILED\020\005\022\030\n\024DELETION_IN_PROGRES" + + "S\020\006\"\374\002\n\017JobNotification\022\024\n\014pubsub_topic\030" + + "\001 \001(\t\022?\n\007message\030\002 \001(\0132..google.cloud.ba" + + "tch.v1.JobNotification.Message\032\304\001\n\007Messa" + + "ge\0229\n\004type\030\001 \001(\0162+.google.cloud.batch.v1" + + ".JobNotification.Type\022=\n\rnew_job_state\030\002" + + " \001(\0162&.google.cloud.batch.v1.JobStatus.S" + + "tate\022?\n\016new_task_state\030\003 \001(\0162\'.google.cl" + + "oud.batch.v1.TaskStatus.State\"K\n\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\025\n\021JOB_STATE_CHANGED" + + "\020\001\022\026\n\022TASK_STATE_CHANGED\020\002\"\221\013\n\020Allocatio" + + "nPolicy\022H\n\010location\030\001 \001(\01326.google.cloud" + + ".batch.v1.AllocationPolicy.LocationPolic" + + "y\022S\n\tinstances\030\010 \003(\0132@.google.cloud.batc" + + "h.v1.AllocationPolicy.InstancePolicyOrTe" + + "mplate\022C\n\006labels\030\006 \003(\01323.google.cloud.ba" + + "tch.v1.AllocationPolicy.LabelsEntry\022F\n\007n" + + "etwork\030\007 \001(\01325.google.cloud.batch.v1.All" + + "ocationPolicy.NetworkPolicy\032+\n\016LocationP" + + "olicy\022\031\n\021allowed_locations\030\001 \003(\t\032Y\n\004Disk" + + "\022\017\n\005image\030\004 \001(\tH\000\022\022\n\010snapshot\030\005 \001(\tH\000\022\014\n" + + "\004type\030\001 \001(\t\022\017\n\007size_gb\030\002 \001(\003B\r\n\013data_sou" + + "rce\032\212\001\n\014AttachedDisk\022@\n\010new_disk\030\001 \001(\0132," + + ".google.cloud.batch.v1.AllocationPolicy." + + "DiskH\000\022\027\n\rexisting_disk\030\002 \001(\tH\000\022\023\n\013devic" + + "e_name\030\003 \001(\tB\n\n\010attached\032*\n\013Accelerator\022" + + "\014\n\004type\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\032\247\002\n\016Instanc" + + "ePolicy\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.google.cloud.batch.v1.AllocationPo" + + "licy.ProvisioningModel\022I\n\014accelerators\030\005" + + " \003(\01323.google.cloud.batch.v1.AllocationP" + + "olicy.Accelerator\022C\n\005disks\030\006 \003(\01324.googl" + + "e.cloud.batch.v1.AllocationPolicy.Attach" + + "edDisk\032\224\001\n\030InstancePolicyOrTemplate\022H\n\006p" + + "olicy\030\001 \001(\01326.google.cloud.batch.v1.Allo" + + "cationPolicy.InstancePolicyH\000\022\033\n\021instanc" + + "e_template\030\002 \001(\tH\000B\021\n\017policy_template\032W\n" + + "\020NetworkInterface\022\017\n\007network\030\001 \001(\t\022\022\n\nsu" + + "bnetwork\030\002 \001(\t\022\036\n\026no_external_ip_address" + + "\030\003 \001(\010\032e\n\rNetworkPolicy\022T\n\022network_inter" + + "faces\030\001 \003(\01328.google.cloud.batch.v1.Allo" + + "cationPolicy.NetworkInterface\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\021" + + "ProvisioningModel\022\"\n\036PROVISIONING_MODEL_" + + "UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\010\n\004SPOT\020\002\022\017\n" + + "\013PREEMPTIBLE\020\003\"\201\003\n\tTaskGroup\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\0227\n\ttask_spec\030\003 \001(\0132\037.google.clou" + + "d.batch.v1.TaskSpecB\003\340A\002\022\022\n\ntask_count\030\004" + + " \001(\003\022\023\n\013parallelism\030\005 \001(\003\022=\n\021task_enviro" + + "nments\030\t \003(\0132\".google.cloud.batch.v1.Env" + + "ironment\022\033\n\023task_count_per_node\030\n \001(\003\022\032\n" + + "\022require_hosts_file\030\013 \001(\010\022\026\n\016permissive_" + + "ssh\030\014 \001(\010:o\352Al\n\036batch.googleapis.com/Tas" + + "kGroup\022Jprojects/{project}/locations/{lo" + + "cation}/jobs/{job}/taskGroups/{task_grou" + + "p}B\264\001\n\031com.google.cloud.batch.v1B\010JobPro" + + "toP\001Z:google.golang.org/genproto/googlea" + + "pis/cloud/batch/v1;batch\242\002\003GCB\252\002\025Google." + + "Cloud.Batch.V1\312\002\025Google\\Cloud\\Batch\\V1\352\002" + + "\030Google::Cloud::Batch::V1b\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.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", }); + 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", }); + 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", "Labels", "Network", }); + 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", "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", }); + 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", "Disks", }); + 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", "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_LabelsEntry_descriptor = + internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(8); + 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", "TaskEnvironments", "TaskCountPerNode", "RequireHostsFile", "PermissiveSsh", }); + 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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java similarity index 69% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java index 653a0fa..5e1bf29 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatus.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto 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(); @@ -44,15 +26,16 @@ private JobStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new JobStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private JobStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,63 +55,54 @@ private JobStatus( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + statusEvents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - statusEvents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - statusEvents_.add( - input.readMessage( - com.google.cloud.batch.v1.StatusEvent.parser(), extensionRegistry)); - break; + statusEvents_.add( + input.readMessage(com.google.cloud.batch.v1.StatusEvent.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + taskGroups_ = com.google.protobuf.MapField.newMapField( + TaskGroupsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - taskGroups_ = - com.google.protobuf.MapField.newMapField( - TaskGroupsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> - taskGroups__ = - input.readMessage( - TaskGroupsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - taskGroups_.getMutableMap().put(taskGroups__.getKey(), taskGroups__.getValue()); - break; + com.google.protobuf.MapEntry + taskGroups__ = input.readMessage( + TaskGroupsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + taskGroups_.getMutableMap().put( + taskGroups__.getKey(), taskGroups__.getValue()); + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (runDuration_ != null) { + subBuilder = runDuration_.toBuilder(); } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (runDuration_ != null) { - subBuilder = runDuration_.toBuilder(); - } - runDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runDuration_); - runDuration_ = subBuilder.buildPartial(); - } - - break; + runDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runDuration_); + runDuration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,7 +110,8 @@ private JobStatus( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { statusEvents_ = java.util.Collections.unmodifiableList(statusEvents_); @@ -145,59 +120,53 @@ private JobStatus( makeExtensionsImmutable(); } } - - 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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 { - /** STATE_UNSPECIFIED = 0; */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * STATE_UNSPECIFIED = 0; + */ STATE_UNSPECIFIED(0), /** - * - * *
-     * Job is submitted into a ResourcePool and waiting
-     * for resource allocation.
+     * Job is admitted (validated and persisted) and waiting for resources.
      * 
* * QUEUED = 1; */ 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
@@ -208,8 +177,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.
@@ -219,8 +186,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     RUNNING(3),
     /**
-     *
-     *
      * 
      * All Tasks in the Job have finished successfully.
      * 
@@ -229,8 +194,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(4), /** - * - * *
      * At least one Task in the Job has failed.
      * 
@@ -239,8 +202,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.
@@ -252,22 +213,19 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     UNRECOGNIZED(-1),
     ;
 
-    /** STATE_UNSPECIFIED = 0; */
+    /**
+     * STATE_UNSPECIFIED = 0;
+     */
     public static final int STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
-     * Job is submitted into a ResourcePool and waiting
-     * for resource allocation.
+     * Job is admitted (validated and persisted) and waiting for resources.
      * 
* * QUEUED = 1; */ 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
@@ -278,8 +236,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.
@@ -289,8 +245,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RUNNING_VALUE = 3;
     /**
-     *
-     *
      * 
      * All Tasks in the Job have finished successfully.
      * 
@@ -299,8 +253,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.
      * 
@@ -309,8 +261,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.
@@ -320,6 +270,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(
@@ -344,57 +295,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;
@@ -411,95 +358,75 @@ 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(); } /** - * - * *
    * 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; @@ -507,15 +434,16 @@ private InstanceStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstanceStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InstanceStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -534,32 +462,30 @@ private InstanceStatus( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - machineType_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + machineType_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - provisioningModel_ = rawValue; - break; - } - case 24: - { - taskPack_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + provisioningModel_ = rawValue; + break; + } + case 24: { + + taskPack_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,39 +493,34 @@ private InstanceStatus( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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); } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object machineType_; /** - * - * *
      * The Compute Engine machine type.
      * 
* * string machine_type = 1; - * * @return The machineType. */ @java.lang.Override @@ -608,29 +529,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 { @@ -641,54 +562,38 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { public static final int PROVISIONING_MODEL_FIELD_NUMBER = 2; private int 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 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() { + @java.lang.Override public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvisioningModel() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.valueOf(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.valueOf(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_; /** - * - * *
      * The max number of tasks can be assigned to this instance type.
      * 
* * int64 task_pack = 3; - * * @return The taskPack. */ @java.lang.Override @@ -697,7 +602,6 @@ public long getTaskPack() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -709,14 +613,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) { @@ -734,14 +636,13 @@ 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -751,17 +652,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -778,100 +680,95 @@ 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()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } 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 @@ -881,32 +778,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() @@ -914,15 +806,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -936,9 +829,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 @@ -957,8 +850,7 @@ 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); + com.google.cloud.batch.v1.JobStatus.InstanceStatus result = new com.google.cloud.batch.v1.JobStatus.InstanceStatus(this); result.machineType_ = machineType_; result.provisioningModel_ = provisioningModel_; result.taskPack_ = taskPack_; @@ -970,41 +862,38 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatus buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -1012,8 +901,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_; onChanged(); @@ -1043,8 +931,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.JobStatus.InstanceStatus) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.JobStatus.InstanceStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1056,20 +943,18 @@ public Builder mergeFrom( 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; @@ -1078,21 +963,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 { @@ -1100,61 +984,54 @@ 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) { + public Builder setMachineType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** - * - * *
        * The Compute Engine machine type.
        * 
* * string machine_type = 1; - * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); 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) { + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; @@ -1162,114 +1039,85 @@ 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. */ public Builder setProvisioningModelValue(int value) { - + provisioningModel_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel result = - com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel.valueOf( - 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.valueOf(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(); } - + provisioningModel_ = value.getNumber(); onChanged(); 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() { - + provisioningModel_ = 0; onChanged(); 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 @@ -1277,41 +1125,34 @@ 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. */ public Builder setTaskPack(long value) { - + taskPack_ = value; onChanged(); 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() { - + taskPack_ = 0L; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1324,12 +1165,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(); } @@ -1338,16 +1179,16 @@ 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 { - return new InstanceStatus(input, extensionRegistry); - } - }; + 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 { + return new InstanceStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1362,16 +1203,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.
@@ -1381,8 +1220,6 @@ public interface TaskGroupStatusOrBuilder
      */
     int getCountsCount();
     /**
-     *
-     *
      * 
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1390,13 +1227,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.
@@ -1404,10 +1243,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.
@@ -1415,10 +1253,11 @@ 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.
@@ -1426,21 +1265,20 @@ 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.
      * 
@@ -1449,8 +1287,6 @@ public interface TaskGroupStatusOrBuilder */ com.google.cloud.batch.v1.JobStatus.InstanceStatus getInstances(int index); /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1459,61 +1295,56 @@ 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TaskGroupStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1533,41 +1364,35 @@ private TaskGroupStatus( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - counts_ = - com.google.protobuf.MapField.newMapField( - CountsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry counts__ = - input.readMessage( - CountsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - counts_.getMutableMap().put(counts__.getKey(), counts__.getValue()); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + counts_ = com.google.protobuf.MapField.newMapField( + CountsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - instances_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - instances_.add( - input.readMessage( - com.google.cloud.batch.v1.JobStatus.InstanceStatus.parser(), - extensionRegistry)); - break; + com.google.protobuf.MapEntry + counts__ = input.readMessage( + CountsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + counts_.getMutableMap().put( + counts__.getKey(), counts__.getValue()); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + instances_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + instances_.add( + input.readMessage(com.google.cloud.batch.v1.JobStatus.InstanceStatus.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1575,7 +1400,8 @@ private TaskGroupStatus( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); @@ -1584,51 +1410,50 @@ private TaskGroupStatus( makeExtensionsImmutable(); } } - - 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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); } - - 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_; } @@ -1637,8 +1462,6 @@ public int getCountsCount() { return internalGetCounts().getMap().size(); } /** - * - * *
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1646,22 +1469,22 @@ 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.
@@ -1670,12 +1493,11 @@ public java.util.Map getCounts() {
      * map<string, int64> counts = 1;
      */
     @java.lang.Override
+
     public java.util.Map getCountsMap() {
       return internalGetCounts().getMap();
     }
     /**
-     *
-     *
      * 
      * Count of task in each state in the TaskGroup.
      * The map key is task state name.
@@ -1684,16 +1506,16 @@ 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.
@@ -1702,11 +1524,12 @@ 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();
       }
@@ -1716,8 +1539,6 @@ public long getCountsOrThrow(java.lang.String key) {
     public static final int INSTANCES_FIELD_NUMBER = 2;
     private java.util.List instances_;
     /**
-     *
-     *
      * 
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1729,8 +1550,6 @@ public java.util.List getIns return instances_; } /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1738,13 +1557,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.
      * 
@@ -1756,8 +1573,6 @@ public int getInstancesCount() { return instances_.size(); } /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1769,8 +1584,6 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatus getInstances(int index return instances_.get(index); } /** - * - * *
      * Status of instances allocated for the TaskGroup.
      * 
@@ -1784,7 +1597,6 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder getInstancesO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1796,9 +1608,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)); } @@ -1811,18 +1628,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1832,16 +1650,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1867,94 +1686,87 @@ 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 @@ -1964,52 +1776,49 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { 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() @@ -2017,17 +1826,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) { getInstancesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2042,9 +1851,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 @@ -2063,8 +1872,7 @@ 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); int from_bitField0_ = bitField0_; result.counts_ = internalGetCounts(); result.counts_.makeImmutable(); @@ -2085,41 +1893,38 @@ public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -2127,9 +1932,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()); if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -2148,10 +1953,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_); } @@ -2176,8 +1980,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.JobStatus.TaskGroupStatus) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.JobStatus.TaskGroupStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2186,24 +1989,24 @@ public Builder mergeFrom( } 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() { - onChanged(); - ; + internalGetMutableCounts() { + onChanged();; 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(); @@ -2215,8 +2018,6 @@ public int getCountsCount() { return internalGetCounts().getMap().size(); } /** - * - * *
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2224,22 +2025,22 @@ 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.
@@ -2248,12 +2049,11 @@ public java.util.Map getCounts() {
        * map<string, int64> counts = 1;
        */
       @java.lang.Override
+
       public java.util.Map getCountsMap() {
         return internalGetCounts().getMap();
       }
       /**
-       *
-       *
        * 
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2262,16 +2062,16 @@ 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.
@@ -2280,11 +2080,12 @@ 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();
         }
@@ -2292,12 +2093,11 @@ public long getCountsOrThrow(java.lang.String key) {
       }
 
       public Builder clearCounts() {
-        internalGetMutableCounts().getMutableMap().clear();
+        internalGetMutableCounts().getMutableMap()
+            .clear();
         return this;
       }
       /**
-       *
-       *
        * 
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2305,21 +2105,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() {
         return internalGetMutableCounts().getMutableMap();
       }
       /**
-       *
-       *
        * 
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2327,17 +2129,16 @@ 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");
-        }
-
-        internalGetMutableCounts().getMutableMap().put(key, value);
+      public Builder putCounts(
+          java.lang.String key,
+          long value) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        
+        internalGetMutableCounts().getMutableMap()
+            .put(key, value);
         return this;
       }
       /**
-       *
-       *
        * 
        * Count of task in each state in the TaskGroup.
        * The map key is task state name.
@@ -2345,32 +2146,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);
         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.
        * 
@@ -2385,8 +2181,6 @@ public java.util.List getIns } } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2401,8 +2195,6 @@ public int getInstancesCount() { } } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2417,8 +2209,6 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatus getInstances(int index } } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2440,8 +2230,6 @@ public Builder setInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2460,8 +2248,6 @@ public Builder setInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2482,8 +2268,6 @@ public Builder addInstances(com.google.cloud.batch.v1.JobStatus.InstanceStatus v return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2505,8 +2289,6 @@ public Builder addInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2525,8 +2307,6 @@ public Builder addInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2544,9 +2324,7 @@ public Builder addInstances( } return this; } - /** - * - * + /** *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2557,7 +2335,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); @@ -2565,8 +2344,6 @@ public Builder addAllInstances( return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2584,8 +2361,6 @@ public Builder clearInstances() { return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2603,8 +2378,6 @@ public Builder removeInstances(int index) { return this; } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2616,8 +2389,6 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatus.Builder getInstancesBu return getInstancesFieldBuilder().getBuilder(index); } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2627,22 +2398,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 { @@ -2650,8 +2418,6 @@ public com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder getInstancesO } } /** - * - * *
        * Status of instances allocated for the TaskGroup.
        * 
@@ -2659,12 +2425,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.
        * 
@@ -2673,41 +2437,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) { @@ -2720,12 +2477,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(); } @@ -2734,16 +2491,16 @@ 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 { - return new TaskGroupStatus(input, extensionRegistry); - } - }; + 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 { + return new TaskGroupStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2758,49 +2515,39 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * 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() { + @java.lang.Override public com.google.cloud.batch.v1.JobStatus.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.JobStatus.State result = - com.google.cloud.batch.v1.JobStatus.State.valueOf(state_); + com.google.cloud.batch.v1.JobStatus.State result = com.google.cloud.batch.v1.JobStatus.State.valueOf(state_); return result == null ? com.google.cloud.batch.v1.JobStatus.State.UNRECOGNIZED : result; } public static final int STATUS_EVENTS_FIELD_NUMBER = 2; private java.util.List statusEvents_; /** - * - * *
    * Job status events
    * 
@@ -2812,8 +2559,6 @@ public java.util.List getStatusEventsList return statusEvents_; } /** - * - * *
    * Job status events
    * 
@@ -2821,13 +2566,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
    * 
@@ -2839,8 +2582,6 @@ public int getStatusEventsCount() { return statusEvents_.size(); } /** - * - * *
    * Job status events
    * 
@@ -2852,8 +2593,6 @@ public com.google.cloud.batch.v1.StatusEvent getStatusEvents(int index) { return statusEvents_.get(index); } /** - * - * *
    * Job status events
    * 
@@ -2861,36 +2600,30 @@ 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()); } - - 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_; } @@ -2899,84 +2632,72 @@ 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 com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrDefault( - java.lang.String key, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String 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)) { @@ -2988,17 +2709,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 the Job is in status
-   * RUNNING. Once the Job completes (i.e. the Job status is either
-   * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-   * to complete.
+   * 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 @@ -3006,17 +2721,11 @@ public boolean hasRunDuration() { return runDuration_ != null; } /** - * - * *
-   * The duration of time the Job is in status
-   * RUNNING. Once the Job completes (i.e. the Job status is either
-   * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-   * to complete.
+   * The duration of time that the Job spent in status RUNNING.
    * 
* * .google.protobuf.Duration run_duration = 5; - * * @return The runDuration. */ @java.lang.Override @@ -3024,13 +2733,8 @@ public com.google.protobuf.Duration getRunDuration() { return runDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runDuration_; } /** - * - * *
-   * The duration of time the Job is in status
-   * RUNNING. Once the Job completes (i.e. the Job status is either
-   * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-   * to complete.
+   * The duration of time that the Job spent in status RUNNING.
    * 
* * .google.protobuf.Duration run_duration = 5; @@ -3041,7 +2745,6 @@ public com.google.protobuf.DurationOrBuilder getRunDurationOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3053,15 +2756,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 (runDuration_ != null) { output.writeMessage(5, getRunDuration()); } @@ -3075,25 +2783,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 (runDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRunDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRunDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3103,7 +2812,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); @@ -3111,11 +2820,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3147,146 +2859,140 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { 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() @@ -3294,17 +3000,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) { getStatusEventsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3327,9 +3033,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 @@ -3375,39 +3081,38 @@ public com.google.cloud.batch.v1.JobStatus buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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; @@ -3437,16 +3142,16 @@ public Builder mergeFrom(com.google.cloud.batch.v1.JobStatus other) { statusEventsBuilder_ = null; statusEvents_ = other.statusEvents_; bitField0_ = (bitField0_ & ~0x00000001); - 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()); if (other.hasRunDuration()) { mergeRunDuration(other.getRunDuration()); } @@ -3478,70 +3183,55 @@ public Builder mergeFrom( } 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.JobStatus.State result = - com.google.cloud.batch.v1.JobStatus.State.valueOf(state_); + com.google.cloud.batch.v1.JobStatus.State result = com.google.cloud.batch.v1.JobStatus.State.valueOf(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. */ @@ -3549,49 +3239,39 @@ public Builder setState(com.google.cloud.batch.v1.JobStatus.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Job state
      * 
* * .google.cloud.batch.v1.JobStatus.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } private java.util.List statusEvents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStatusEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - statusEvents_ = - new java.util.ArrayList(statusEvents_); + statusEvents_ = new java.util.ArrayList(statusEvents_); bitField0_ |= 0x00000001; - } + } } 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
      * 
@@ -3606,8 +3286,6 @@ public java.util.List getStatusEventsList } } /** - * - * *
      * Job status events
      * 
@@ -3622,8 +3300,6 @@ public int getStatusEventsCount() { } } /** - * - * *
      * Job status events
      * 
@@ -3638,15 +3314,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(); @@ -3660,8 +3335,6 @@ public Builder setStatusEvents(int index, com.google.cloud.batch.v1.StatusEvent return this; } /** - * - * *
      * Job status events
      * 
@@ -3680,8 +3353,6 @@ public Builder setStatusEvents( return this; } /** - * - * *
      * Job status events
      * 
@@ -3702,15 +3373,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(); @@ -3724,15 +3394,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()); @@ -3743,8 +3412,6 @@ public Builder addStatusEvents(com.google.cloud.batch.v1.StatusEvent.Builder bui return this; } /** - * - * *
      * Job status events
      * 
@@ -3763,8 +3430,6 @@ public Builder addStatusEvents( return this; } /** - * - * *
      * Job status events
      * 
@@ -3775,7 +3440,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); @@ -3783,8 +3449,6 @@ public Builder addAllStatusEvents( return this; } /** - * - * *
      * Job status events
      * 
@@ -3802,8 +3466,6 @@ public Builder clearStatusEvents() { return this; } /** - * - * *
      * Job status events
      * 
@@ -3821,44 +3483,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 { @@ -3866,8 +3523,6 @@ public com.google.cloud.batch.v1.StatusEventOrBuilder getStatusEventsOrBuilder(i } } /** - * - * *
      * Job status events
      * 
@@ -3875,75 +3530,63 @@ 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_ & 0x00000001) != 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_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); statusEvents_ = null; } return statusEventsBuilder_; } 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 taskGroups_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus> - internalGetMutableTaskGroups() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableTaskGroups() { + onChanged();; if (taskGroups_ == null) { - taskGroups_ = - com.google.protobuf.MapField.newMapField(TaskGroupsDefaultEntryHolder.defaultEntry); + taskGroups_ = com.google.protobuf.MapField.newMapField( + TaskGroupsDefaultEntryHolder.defaultEntry); } if (!taskGroups_.isMutable()) { taskGroups_ = taskGroups_.copy(); @@ -3955,84 +3598,72 @@ 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 com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrDefault( - java.lang.String key, com.google.cloud.batch.v1.JobStatus.TaskGroupStatus defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String 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)) { @@ -4042,128 +3673,102 @@ public com.google.cloud.batch.v1.JobStatus.TaskGroupStatus getTaskGroupsOrThrow( } public Builder clearTaskGroups() { - internalGetMutableTaskGroups().getMutableMap().clear(); + internalGetMutableTaskGroups().getMutableMap() + .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().getMutableMap().remove(key); + + public Builder removeTaskGroups( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTaskGroups().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableTaskGroups() { + getMutableTaskGroups() { return internalGetMutableTaskGroups().getMutableMap(); } /** - * - * *
      * 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"); - } + 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"); - } + throw new NullPointerException("map value"); +} - internalGetMutableTaskGroups().getMutableMap().put(key, value); + internalGetMutableTaskGroups().getMutableMap() + .put(key, value); 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) { - internalGetMutableTaskGroups().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableTaskGroups().getMutableMap() + .putAll(values); return this; } 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 the Job is in status
-     * RUNNING. Once the Job completes (i.e. the Job status is either
-     * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-     * to complete.
+     * 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 runDurationBuilder_ != null || runDuration_ != null; } /** - * - * *
-     * The duration of time the Job is in status
-     * RUNNING. Once the Job completes (i.e. the Job status is either
-     * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-     * to complete.
+     * 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 the Job is in status
-     * RUNNING. Once the Job completes (i.e. the Job status is either
-     * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-     * to complete.
+     * The duration of time that the Job spent in status RUNNING.
      * 
* * .google.protobuf.Duration run_duration = 5; @@ -4182,18 +3787,14 @@ public Builder setRunDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
-     * The duration of time the Job is in status
-     * RUNNING. Once the Job completes (i.e. the Job status is either
-     * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-     * to complete.
+     * 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(); onChanged(); @@ -4204,13 +3805,8 @@ public Builder setRunDuration(com.google.protobuf.Duration.Builder builderForVal return this; } /** - * - * *
-     * The duration of time the Job is in status
-     * RUNNING. Once the Job completes (i.e. the Job status is either
-     * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-     * to complete.
+     * The duration of time that the Job spent in status RUNNING.
      * 
* * .google.protobuf.Duration run_duration = 5; @@ -4219,7 +3815,7 @@ public Builder mergeRunDuration(com.google.protobuf.Duration value) { if (runDurationBuilder_ == null) { if (runDuration_ != null) { runDuration_ = - com.google.protobuf.Duration.newBuilder(runDuration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(runDuration_).mergeFrom(value).buildPartial(); } else { runDuration_ = value; } @@ -4231,13 +3827,8 @@ public Builder mergeRunDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
-     * The duration of time the Job is in status
-     * RUNNING. Once the Job completes (i.e. the Job status is either
-     * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-     * to complete.
+     * The duration of time that the Job spent in status RUNNING.
      * 
* * .google.protobuf.Duration run_duration = 5; @@ -4254,30 +3845,20 @@ public Builder clearRunDuration() { return this; } /** - * - * *
-     * The duration of time the Job is in status
-     * RUNNING. Once the Job completes (i.e. the Job status is either
-     * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-     * to complete.
+     * The duration of time that the Job spent in status RUNNING.
      * 
* * .google.protobuf.Duration run_duration = 5; */ public com.google.protobuf.Duration.Builder getRunDurationBuilder() { - + onChanged(); return getRunDurationFieldBuilder().getBuilder(); } /** - * - * *
-     * The duration of time the Job is in status
-     * RUNNING. Once the Job completes (i.e. the Job status is either
-     * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-     * to complete.
+     * The duration of time that the Job spent in status RUNNING.
      * 
* * .google.protobuf.Duration run_duration = 5; @@ -4286,42 +3867,33 @@ 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 the Job is in status
-     * RUNNING. Once the Job completes (i.e. the Job status is either
-     * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-     * to complete.
+     * The duration of time that the Job spent in status RUNNING.
      * 
* * .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); } @@ -4331,12 +3903,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(); } @@ -4345,16 +3917,16 @@ 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 { - return new JobStatus(input, extensionRegistry); - } - }; + 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 { + return new JobStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4369,4 +3941,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.JobStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java similarity index 62% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java index 300d92a..5062b1b 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobStatusOrBuilder.java @@ -1,66 +1,41 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto 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
    * 
@@ -69,8 +44,6 @@ public interface JobStatusOrBuilder */ com.google.cloud.batch.v1.StatusEvent getStatusEvents(int index); /** - * - * *
    * Job status events
    * 
@@ -79,136 +52,106 @@ 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 the Job is in status
-   * RUNNING. Once the Job completes (i.e. the Job status is either
-   * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-   * to complete.
+   * 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 the Job is in status
-   * RUNNING. Once the Job completes (i.e. the Job status is either
-   * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-   * to complete.
+   * 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 the Job is in status
-   * RUNNING. Once the Job completes (i.e. the Job status is either
-   * SUCCEEDED/FAILED) the run duration represents the time it took the Job
-   * to complete.
+   * The duration of time that the Job spent in status RUNNING.
    * 
* * .google.protobuf.Duration run_duration = 5; diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java similarity index 72% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java index c338801..933b659 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto package com.google.cloud.batch.v1; /** - * - * *
  * LifecyclePolicy describes how to deal with task failures
  * based on different conditions.
@@ -28,31 +11,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LifecyclePolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,37 +54,32 @@ private LifecyclePolicy(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              action_ = rawValue;
-              break;
+            action_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder subBuilder = null;
+            if (actionCondition_ != null) {
+              subBuilder = actionCondition_.toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.Builder subBuilder = null;
-              if (actionCondition_ != null) {
-                subBuilder = actionCondition_.toBuilder();
-              }
-              actionCondition_ =
-                  input.readMessage(
-                      com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(actionCondition_);
-                actionCondition_ = subBuilder.buildPartial();
-              }
-
-              break;
+            actionCondition_ = input.readMessage(com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(actionCondition_);
+              actionCondition_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,41 +87,36 @@ private LifecyclePolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.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.
      * 
@@ -152,8 +125,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Action that tasks in the group will be scheduled to re-execute.
      * 
@@ -162,8 +133,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ RETRY_TASK(1), /** - * - * *
      * Action that tasks in the group will be stopped immediately.
      * 
@@ -175,8 +144,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Action unspecified.
      * 
@@ -185,8 +152,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.
      * 
@@ -195,8 +160,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.
      * 
@@ -205,6 +168,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( @@ -229,49 +193,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; @@ -288,14 +252,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,
@@ -304,13 +265,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,
@@ -319,13 +277,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,
@@ -334,46 +289,43 @@ 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ActionCondition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -393,36 +345,34 @@ private ActionCondition( case 0: done = true; break; - case 8: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exitCodes_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - exitCodes_.addInt(input.readInt32()); - break; + case 8: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exitCodes_ = newIntList(); + mutable_bitField0_ |= 0x00000001; } - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - exitCodes_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - exitCodes_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; + exitCodes_.addInt(input.readInt32()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + exitCodes_ = newIntList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + while (input.getBytesUntilLimit() > 0) { + exitCodes_.addInt(input.readInt32()); } + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -430,7 +380,8 @@ private ActionCondition( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { exitCodes_.makeImmutable(); // C @@ -439,27 +390,22 @@ private ActionCondition( makeExtensionsImmutable(); } } - - 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; private com.google.protobuf.Internal.IntList exitCodes_; /** - * - * *
      * Exit codes of a task execution.
      * If there are more than 1 exit codes,
@@ -468,16 +414,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,
@@ -486,15 +430,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,
@@ -503,18 +444,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; @@ -526,7 +464,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); @@ -547,13 +486,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; } @@ -565,15 +505,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -595,94 +535,87 @@ 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 @@ -692,32 +625,27 @@ 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() @@ -725,15 +653,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -743,9 +672,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 @@ -764,8 +693,7 @@ 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); + com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition result = new com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { exitCodes_.makeImmutable(); @@ -780,41 +708,38 @@ public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -822,8 +747,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_; @@ -853,8 +777,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -863,20 +786,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Internal.IntList exitCodes_ = emptyIntList(); - private void ensureExitCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { exitCodes_ = mutableCopy(exitCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -885,17 +804,14 @@ private void ensureExitCodesIsMutable() {
        * 
* * repeated int32 exit_codes = 1; - * * @return A list containing the exitCodes. */ - public java.util.List getExitCodesList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(exitCodes_) - : exitCodes_; + public java.util.List + getExitCodesList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(exitCodes_) : exitCodes_; } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -904,15 +820,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,
@@ -921,7 +834,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. */ @@ -929,8 +841,6 @@ public int getExitCodes(int index) { return exitCodes_.getInt(index); } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -939,20 +849,18 @@ 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); onChanged(); return this; } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -961,7 +869,6 @@ public Builder setExitCodes(int index, int value) {
        * 
* * repeated int32 exit_codes = 1; - * * @param value The exitCodes to add. * @return This builder for chaining. */ @@ -972,8 +879,6 @@ public Builder addExitCodes(int value) { return this; } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -982,19 +887,18 @@ 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_); onChanged(); return this; } /** - * - * *
        * Exit codes of a task execution.
        * If there are more than 1 exit codes,
@@ -1003,7 +907,6 @@ public Builder addAllExitCodes(java.lang.Iterable v
        * 
* * repeated int32 exit_codes = 1; - * * @return This builder for chaining. */ public Builder clearExitCodes() { @@ -1012,7 +915,6 @@ public Builder clearExitCodes() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1025,12 +927,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(); } @@ -1039,16 +941,16 @@ 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 { - return new ActionCondition(input, extensionRegistry); - } - }; + 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 { + return new ActionCondition(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1063,55 +965,44 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** - * - * *
    * Action to execute when ActionCondition is true.
    * 
* * .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.
    * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @return The action. */ - @java.lang.Override - public com.google.cloud.batch.v1.LifecyclePolicy.Action getAction() { + @java.lang.Override public com.google.cloud.batch.v1.LifecyclePolicy.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.LifecyclePolicy.Action result = - com.google.cloud.batch.v1.LifecyclePolicy.Action.valueOf(action_); + com.google.cloud.batch.v1.LifecyclePolicy.Action result = com.google.cloud.batch.v1.LifecyclePolicy.Action.valueOf(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 @@ -1119,25 +1010,18 @@ public boolean hasActionCondition() { return actionCondition_ != null; } /** - * - * *
    * 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.
    * 
@@ -1145,13 +1029,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() { + public com.google.cloud.batch.v1.LifecyclePolicy.ActionConditionOrBuilder getActionConditionOrBuilder() { return getActionCondition(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1163,9 +1045,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 (actionCondition_ != null) { @@ -1180,12 +1062,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 (actionCondition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getActionCondition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getActionCondition()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1195,18 +1078,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1230,104 +1113,97 @@ 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.
@@ -1335,23 +1211,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()
@@ -1359,15 +1233,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1383,9 +1258,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
@@ -1404,8 +1279,7 @@ 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);
+      com.google.cloud.batch.v1.LifecyclePolicy result = new com.google.cloud.batch.v1.LifecyclePolicy(this);
       result.action_ = action_;
       if (actionConditionBuilder_ == null) {
         result.actionCondition_ = actionCondition_;
@@ -1420,39 +1294,38 @@ public com.google.cloud.batch.v1.LifecyclePolicy buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.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;
@@ -1498,67 +1371,51 @@ public Builder mergeFrom(
 
     private int action_ = 0;
     /**
-     *
-     *
      * 
      * Action to execute when ActionCondition is true.
      * 
* * .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.
      * 
* * .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. */ public Builder setActionValue(int value) { - + action_ = value; onChanged(); return this; } /** - * - * *
      * Action to execute when ActionCondition is true.
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @return The action. */ @java.lang.Override public com.google.cloud.batch.v1.LifecyclePolicy.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.LifecyclePolicy.Action result = - com.google.cloud.batch.v1.LifecyclePolicy.Action.valueOf(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.valueOf(action_); + return result == null ? com.google.cloud.batch.v1.LifecyclePolicy.Action.UNRECOGNIZED : result; } /** - * - * *
      * Action to execute when ActionCondition is true.
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @param value The action to set. * @return This builder for chaining. */ @@ -1566,24 +1423,21 @@ public Builder setAction(com.google.cloud.batch.v1.LifecyclePolicy.Action value) if (value == null) { throw new NullPointerException(); } - + action_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Action to execute when ActionCondition is true.
      * 
* * .google.cloud.batch.v1.LifecyclePolicy.Action action = 1; - * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = 0; onChanged(); return this; @@ -1591,55 +1445,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 actionConditionBuilder_ != null || actionCondition_ != null; } /** - * - * *
      * 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(); @@ -1653,8 +1493,6 @@ public Builder setActionCondition( return this; } /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
@@ -1673,22 +1511,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 (actionCondition_ != null) { actionCondition_ = - com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.newBuilder(actionCondition_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.batch.v1.LifecyclePolicy.ActionCondition.newBuilder(actionCondition_).mergeFrom(value).buildPartial(); } else { actionCondition_ = value; } @@ -1700,8 +1533,6 @@ public Builder mergeActionCondition( return this; } /** - * - * *
      * Conditions that decide why a task failure is dealt with a specific action.
      * 
@@ -1720,42 +1551,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() { + 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.
      * 
@@ -1763,24 +1585,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); } @@ -1790,12 +1609,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(); } @@ -1804,16 +1623,16 @@ 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 { - return new LifecyclePolicy(input, extensionRegistry); - } - }; + 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 { + return new LifecyclePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1828,4 +1647,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.LifecyclePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java similarity index 70% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java index 10d4e7b..17c4975 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LifecyclePolicyOrBuilder.java @@ -1,80 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto 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.
    * 
* * .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.
    * 
* * .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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java similarity index 70% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java index 5704edd..1db8839 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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_ = ""; @@ -45,15 +27,16 @@ private ListJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListJobsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListJobsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListJobsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,39 +92,34 @@ private ListJobsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; private volatile java.lang.Object parent_; /** - * - * *
    * Parent path.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -153,29 +128,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 { @@ -186,14 +161,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -202,29 +174,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 { @@ -235,14 +207,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -253,14 +222,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -269,29 +235,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 { @@ -300,7 +266,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,7 +277,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +304,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_); @@ -354,18 +321,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.ListJobsRequest)) { return super.equals(obj); } - com.google.cloud.batch.v1.ListJobsRequest other = - (com.google.cloud.batch.v1.ListJobsRequest) 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 (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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -390,127 +360,118 @@ 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() @@ -518,15 +479,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +504,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 @@ -563,8 +525,7 @@ 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); + com.google.cloud.batch.v1.ListJobsRequest result = new com.google.cloud.batch.v1.ListJobsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -577,39 +538,38 @@ public com.google.cloud.batch.v1.ListJobsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -664,20 +624,18 @@ public Builder mergeFrom( 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; @@ -686,21 +644,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 { @@ -708,61 +665,54 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Parent path.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -770,20 +720,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; @@ -792,21 +740,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 { @@ -814,76 +761,66 @@ 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -891,36 +828,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -928,20 +859,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; @@ -950,21 +879,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 { @@ -972,68 +900,61 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1043,12 +964,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(); } @@ -1057,16 +978,16 @@ 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 { - return new ListJobsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListJobsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1081,4 +1002,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.ListJobsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java index da8f59b..d91c442 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsRequestOrBuilder.java @@ -1,113 +1,79 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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(); /** - * - * *
    * 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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java similarity index 72% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java index 4a9f1d0..1fabf42 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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_ = ""; @@ -45,15 +27,16 @@ private ListJobsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListJobsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListJobsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,40 +56,37 @@ private ListJobsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - jobs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - jobs_.add( - input.readMessage(com.google.cloud.batch.v1.Job.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + jobs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + jobs_.add( + input.readMessage(com.google.cloud.batch.v1.Job.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,7 +94,8 @@ private ListJobsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { jobs_ = java.util.Collections.unmodifiableList(jobs_); @@ -126,27 +107,22 @@ private ListJobsResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List jobs_; /** - * - * *
    * Jobs.
    * 
@@ -158,8 +134,6 @@ public java.util.List getJobsList() { return jobs_; } /** - * - * *
    * Jobs.
    * 
@@ -167,12 +141,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.
    * 
@@ -184,8 +157,6 @@ public int getJobsCount() { return jobs_.size(); } /** - * - * *
    * Jobs.
    * 
@@ -197,8 +168,6 @@ public com.google.cloud.batch.v1.Job getJobs(int index) { return jobs_.get(index); } /** - * - * *
    * Jobs.
    * 
@@ -206,21 +175,19 @@ 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; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -229,29 +196,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 { @@ -262,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * 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. */ @@ -305,23 +264,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; @@ -333,7 +289,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)); } @@ -353,7 +310,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_); @@ -374,17 +332,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,127 +371,118 @@ 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() @@ -539,17 +490,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) { getJobsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -567,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.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 @@ -588,8 +539,7 @@ 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); int from_bitField0_ = bitField0_; if (jobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -614,39 +564,38 @@ public com.google.cloud.batch.v1.ListJobsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -673,10 +622,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_); } @@ -724,27 +672,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -759,8 +701,6 @@ public java.util.List getJobsList() { } } /** - * - * *
      * Jobs.
      * 
@@ -775,8 +715,6 @@ public int getJobsCount() { } } /** - * - * *
      * Jobs.
      * 
@@ -791,15 +729,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(); @@ -813,15 +750,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()); @@ -832,8 +768,6 @@ public Builder setJobs(int index, com.google.cloud.batch.v1.Job.Builder builderF return this; } /** - * - * *
      * Jobs.
      * 
@@ -854,15 +788,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(); @@ -876,15 +809,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()); @@ -895,15 +827,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()); @@ -914,18 +845,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); @@ -933,8 +864,6 @@ public Builder addAllJobs(java.lang.Iterable * Jobs. *
@@ -952,8 +881,6 @@ public Builder clearJobs() { return this; } /** - * - * *
      * Jobs.
      * 
@@ -971,43 +898,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 { @@ -1015,8 +938,6 @@ public java.util.List getJobsO } } /** - * - * *
      * Jobs.
      * 
@@ -1024,46 +945,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_; @@ -1071,20 +988,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; @@ -1093,21 +1008,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 { @@ -1115,112 +1029,95 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * 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. */ @@ -1228,90 +1125,80 @@ 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) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1321,30 +1208,28 @@ public Builder clearUnreachable() { 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) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1354,12 +1239,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(); } @@ -1368,16 +1253,16 @@ 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 { - return new ListJobsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListJobsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1392,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.ListJobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java index 30cc292..49c4816 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListJobsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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.
    * 
@@ -44,8 +25,6 @@ public interface ListJobsResponseOrBuilder */ com.google.cloud.batch.v1.Job getJobs(int index); /** - * - * *
    * Jobs.
    * 
@@ -54,99 +33,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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java similarity index 67% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java index d539673..7f02619 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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_ = ""; @@ -45,15 +27,16 @@ private ListTasksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTasksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTasksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListTasksRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,36 @@ private ListTasksRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. Path of the TaskGroup from which Tasks are being requested.
+   * 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 @@ -155,31 +130,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. Path of the TaskGroup from which Tasks are being requested.
+   * 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 { @@ -190,8 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; 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.
@@ -199,7 +172,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -208,15 +180,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.
@@ -224,15 +195,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 { @@ -243,14 +215,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Page size.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -261,14 +230,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token.
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -277,29 +243,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 { @@ -308,7 +274,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -349,7 +315,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_); @@ -362,18 +329,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; - - 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; + 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -398,127 +368,118 @@ 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() @@ -526,15 +487,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -550,9 +512,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 @@ -571,8 +533,7 @@ 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); + com.google.cloud.batch.v1.ListTasksRequest result = new com.google.cloud.batch.v1.ListTasksRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -585,39 +546,38 @@ public com.google.cloud.batch.v1.ListTasksRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -672,22 +632,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. Path of the TaskGroup from which Tasks are being requested.
+     * 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; @@ -696,23 +654,22 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. Path of the TaskGroup from which Tasks are being requested.
+     * 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 { @@ -720,67 +677,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. Path of the TaskGroup from which Tasks are being requested.
+     * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
-     * Required. Path of the TaskGroup from which Tasks are being requested.
+     * 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
-     * Required. Path of the TaskGroup from which Tasks are being requested.
+     * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -788,8 +738,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.
@@ -797,13 +745,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; @@ -812,8 +760,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.
@@ -821,14 +767,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 { @@ -836,8 +783,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.
@@ -845,22 +790,20 @@ 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Task filter, null filter matches all Tasks.
      * Filter string should be of the format State=TaskStatus.State e.g.
@@ -868,18 +811,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Task filter, null filter matches all Tasks.
      * Filter string should be of the format State=TaskStatus.State e.g.
@@ -887,31 +827,28 @@ 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Page size.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -919,36 +856,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -956,20 +887,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 +907,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,68 +928,61 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Page token.
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1071,12 +992,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,16 +1006,16 @@ 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 { - return new ListTasksRequest(input, extensionRegistry); - } - }; + 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 { + return new ListTasksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1109,4 +1030,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.ListTasksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java index a48636a..54adef4 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksRequestOrBuilder.java @@ -1,60 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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. Path of the TaskGroup from which Tasks are being requested.
+   * 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. Path of the TaskGroup from which Tasks are being requested.
+   * 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.
@@ -62,13 +39,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.
@@ -76,46 +50,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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java similarity index 73% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java index 3ca3a99..f942177 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto package com.google.cloud.batch.v1; /** - * - * *
- * ListAssignedTasks Response.
+ * 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_ = ""; @@ -45,15 +27,16 @@ private ListTasksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTasksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTasksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,40 +56,37 @@ private ListTasksResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tasks_.add( - input.readMessage(com.google.cloud.batch.v1.Task.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + tasks_.add( + input.readMessage(com.google.cloud.batch.v1.Task.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,7 +94,8 @@ private ListTasksResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { tasks_ = java.util.Collections.unmodifiableList(tasks_); @@ -126,27 +107,22 @@ private ListTasksResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List tasks_; /** - * - * *
    * Tasks.
    * 
@@ -158,8 +134,6 @@ public java.util.List getTasksList() { return tasks_; } /** - * - * *
    * Tasks.
    * 
@@ -167,12 +141,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.
    * 
@@ -184,8 +157,6 @@ public int getTasksCount() { return tasks_.size(); } /** - * - * *
    * Tasks.
    * 
@@ -197,8 +168,6 @@ public com.google.cloud.batch.v1.Task getTasks(int index) { return tasks_.get(index); } /** - * - * *
    * Tasks.
    * 
@@ -206,21 +175,19 @@ 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; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -229,29 +196,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 { @@ -262,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * 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. */ @@ -305,23 +264,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; @@ -333,7 +289,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)); } @@ -353,7 +310,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_); @@ -374,17 +332,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,127 +371,118 @@ 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; } /** - * - * *
-   * ListAssignedTasks Response.
+   * 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() @@ -539,17 +490,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) { getTasksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -567,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.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 @@ -588,8 +539,7 @@ 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); int from_bitField0_ = bitField0_; if (tasksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -614,39 +564,38 @@ public com.google.cloud.batch.v1.ListTasksResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -673,10 +622,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_); } @@ -724,28 +672,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -760,8 +701,6 @@ public java.util.List getTasksList() { } } /** - * - * *
      * Tasks.
      * 
@@ -776,8 +715,6 @@ public int getTasksCount() { } } /** - * - * *
      * Tasks.
      * 
@@ -792,15 +729,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(); @@ -814,15 +750,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()); @@ -833,8 +768,6 @@ public Builder setTasks(int index, com.google.cloud.batch.v1.Task.Builder builde return this; } /** - * - * *
      * Tasks.
      * 
@@ -855,15 +788,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(); @@ -877,15 +809,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()); @@ -896,15 +827,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()); @@ -915,8 +845,6 @@ public Builder addTasks(int index, com.google.cloud.batch.v1.Task.Builder builde return this; } /** - * - * *
      * Tasks.
      * 
@@ -927,7 +855,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); @@ -935,8 +864,6 @@ public Builder addAllTasks( return this; } /** - * - * *
      * Tasks.
      * 
@@ -954,8 +881,6 @@ public Builder clearTasks() { return this; } /** - * - * *
      * Tasks.
      * 
@@ -973,44 +898,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 { @@ -1018,8 +938,6 @@ public com.google.cloud.batch.v1.TaskOrBuilder getTasksOrBuilder(int index) { } } /** - * - * *
      * Tasks.
      * 
@@ -1027,46 +945,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_; @@ -1074,20 +988,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; @@ -1096,21 +1008,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 { @@ -1118,112 +1029,95 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * 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. */ @@ -1231,90 +1125,80 @@ 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) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1324,30 +1208,28 @@ public Builder clearUnreachable() { 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) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1357,12 +1239,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(); } @@ -1371,16 +1253,16 @@ 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 { - return new ListTasksResponse(input, extensionRegistry); - } - }; + 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 { + return new ListTasksResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1395,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.ListTasksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java index bcf090c..4231cc4 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/ListTasksResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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.
    * 
@@ -44,8 +25,6 @@ public interface ListTasksResponseOrBuilder */ com.google.cloud.batch.v1.Task getTasks(int index); /** - * - * *
    * Tasks.
    * 
@@ -54,99 +33,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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java similarity index 100% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java similarity index 69% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java index 0bdb361..979b384 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto package com.google.cloud.batch.v1; /** - * - * *
  * LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
  * preserved.
@@ -28,16 +11,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_ = "";
@@ -45,15 +27,16 @@ private LogsPolicy() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogsPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LogsPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private LogsPolicy(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              destination_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            destination_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              logsPath_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            logsPath_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,41 +81,36 @@ private LogsPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.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.
      * 
@@ -143,8 +119,6 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { */ DESTINATION_UNSPECIFIED(0), /** - * - * *
      * Logs are streamed to Cloud Logging.
      * 
@@ -153,10 +127,8 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { */ CLOUD_LOGGING(1), /** - * - * *
-     * Logs are saved to a path.
+     * Logs are saved to a file path.
      * 
* * PATH = 2; @@ -166,8 +138,6 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Logs are not preserved.
      * 
@@ -176,8 +146,6 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DESTINATION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Logs are streamed to Cloud Logging.
      * 
@@ -186,16 +154,15 @@ public enum Destination implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLOUD_LOGGING_VALUE = 1; /** - * - * *
-     * Logs are saved to a path.
+     * Logs are saved to a file path.
      * 
* * PATH = 2; */ public static final int PATH_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -220,49 +187,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; @@ -282,52 +249,40 @@ private Destination(int value) { public static final int DESTINATION_FIELD_NUMBER = 1; private int destination_; /** - * - * *
    * 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() { + @java.lang.Override public com.google.cloud.batch.v1.LogsPolicy.Destination getDestination() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.LogsPolicy.Destination result = - com.google.cloud.batch.v1.LogsPolicy.Destination.valueOf(destination_); + com.google.cloud.batch.v1.LogsPolicy.Destination result = com.google.cloud.batch.v1.LogsPolicy.Destination.valueOf(destination_); return result == null ? com.google.cloud.batch.v1.LogsPolicy.Destination.UNRECOGNIZED : result; } public static final int LOGS_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object logsPath_; /** - * - * *
    * The path to which logs are saved when the destination = PATH. This can be a
-   * local filepath on the VM, or under the mount point of a Persistent Disk or
+   * local file path on the VM, or under the mount point of a Persistent Disk or
    * Filestore, or a Cloud Storage path.
    * 
* * string logs_path = 2; - * * @return The logsPath. */ @java.lang.Override @@ -336,31 +291,31 @@ 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 filepath on the VM, or under the mount point of a Persistent Disk or
+   * local file path on the VM, or under the mount point of a Persistent Disk or
    * Filestore, or a Cloud Storage path.
    * 
* * 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 { @@ -369,7 +324,6 @@ public com.google.protobuf.ByteString getLogsPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,9 +335,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_)) { @@ -398,9 +352,9 @@ 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_); @@ -413,7 +367,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); @@ -421,7 +375,8 @@ 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -442,103 +397,97 @@ 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.
@@ -546,23 +495,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()
@@ -570,15 +517,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -590,9 +538,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
@@ -622,39 +570,38 @@ public com.google.cloud.batch.v1.LogsPolicy buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.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;
@@ -701,67 +648,51 @@ public Builder mergeFrom(
 
     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. */ public Builder setDestinationValue(int value) { - + destination_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.batch.v1.LogsPolicy.Destination result = - com.google.cloud.batch.v1.LogsPolicy.Destination.valueOf(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.valueOf(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. */ @@ -769,24 +700,21 @@ public Builder setDestination(com.google.cloud.batch.v1.LogsPolicy.Destination v if (value == null) { throw new NullPointerException(); } - + destination_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Where logs should be saved.
      * 
* * .google.cloud.batch.v1.LogsPolicy.Destination destination = 1; - * * @return This builder for chaining. */ public Builder clearDestination() { - + destination_ = 0; onChanged(); return this; @@ -794,22 +722,20 @@ public Builder clearDestination() { private java.lang.Object logsPath_ = ""; /** - * - * *
      * The path to which logs are saved when the destination = PATH. This can be a
-     * local filepath on the VM, or under the mount point of a Persistent Disk or
+     * local file path on the VM, or under the mount point of a Persistent Disk or
      * Filestore, or a Cloud Storage path.
      * 
* * 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; @@ -818,23 +744,22 @@ public java.lang.String getLogsPath() { } } /** - * - * *
      * The path to which logs are saved when the destination = PATH. This can be a
-     * local filepath on the VM, or under the mount point of a Persistent Disk or
+     * local file path on the VM, or under the mount point of a Persistent Disk or
      * Filestore, or a Cloud Storage path.
      * 
* * 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 { @@ -842,74 +767,67 @@ public com.google.protobuf.ByteString getLogsPathBytes() { } } /** - * - * *
      * The path to which logs are saved when the destination = PATH. This can be a
-     * local filepath on the VM, or under the mount point of a Persistent Disk or
+     * local file path on the VM, or under the mount point of a Persistent Disk or
      * Filestore, or a Cloud Storage path.
      * 
* * string logs_path = 2; - * * @param value The logsPath to set. * @return This builder for chaining. */ - public Builder setLogsPath(java.lang.String value) { + public Builder setLogsPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logsPath_ = value; onChanged(); return this; } /** - * - * *
      * The path to which logs are saved when the destination = PATH. This can be a
-     * local filepath on the VM, or under the mount point of a Persistent Disk or
+     * local file path on the VM, or under the mount point of a Persistent Disk or
      * Filestore, or a Cloud Storage path.
      * 
* * string logs_path = 2; - * * @return This builder for chaining. */ public Builder clearLogsPath() { - + logsPath_ = getDefaultInstance().getLogsPath(); onChanged(); return this; } /** - * - * *
      * The path to which logs are saved when the destination = PATH. This can be a
-     * local filepath on the VM, or under the mount point of a Persistent Disk or
+     * local file path on the VM, or under the mount point of a Persistent Disk or
      * Filestore, or a Cloud Storage path.
      * 
* * 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) { + public Builder setLogsPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logsPath_ = 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); } @@ -919,12 +837,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(); } @@ -933,16 +851,16 @@ 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 { - return new LogsPolicy(input, extensionRegistry); - } - }; + 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 { + return new LogsPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,4 +875,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.LogsPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java similarity index 58% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java index 19ba4c7..dd45d14 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LogsPolicyOrBuilder.java @@ -1,79 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/job.proto 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 filepath on the VM, or under the mount point of a Persistent Disk or
+   * local file path on the VM, or under the mount point of a Persistent Disk or
    * Filestore, or a Cloud Storage path.
    * 
* * 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 filepath on the VM, or under the mount point of a Persistent Disk or
+   * local file path on the VM, or under the mount point of a Persistent Disk or
    * Filestore, or a Cloud Storage path.
    * 
* * string logs_path = 2; - * * @return The bytes for logsPath. */ - com.google.protobuf.ByteString getLogsPathBytes(); + com.google.protobuf.ByteString + getLogsPathBytes(); } diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java similarity index 70% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java index 32aaaac..f3bf95f 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/volume.proto package com.google.cloud.batch.v1; /** - * - * *
  * Represents an NFS server and remote path: <server>:<remote_path>
  * 
* * 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_ = ""; @@ -44,15 +26,16 @@ private NFS() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NFS(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NFS( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private NFS( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - server_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + server_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - remotePath_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + remotePath_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,23 +80,22 @@ private NFS( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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); } @@ -123,14 +103,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int SERVER_FIELD_NUMBER = 1; private volatile java.lang.Object server_; /** - * - * *
    * URI of the NFS server, e.g. an IP address.
    * 
* * string server = 1; - * * @return The server. */ @java.lang.Override @@ -139,29 +116,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; } } /** - * - * *
    * URI of the NFS server, e.g. an IP address.
    * 
* * 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 { @@ -172,14 +149,11 @@ public com.google.protobuf.ByteString getServerBytes() { public static final int REMOTE_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object remotePath_; /** - * - * *
    * Remote source path exported from NFS, e.g., "/share".
    * 
* * string remote_path = 2; - * * @return The remotePath. */ @java.lang.Override @@ -188,29 +162,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 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 { @@ -219,7 +193,6 @@ public com.google.protobuf.ByteString getRemotePathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(server_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, server_); } @@ -261,15 +235,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,123 +266,116 @@ 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 server and remote path: <server>:<remote_path>
    * 
* * 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); } @@ -416,15 +385,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -436,9 +406,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 @@ -468,39 +438,38 @@ public com.google.cloud.batch.v1.NFS buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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; @@ -548,20 +517,18 @@ public Builder mergeFrom( private java.lang.Object server_ = ""; /** - * - * *
      * URI of the NFS server, e.g. an IP address.
      * 
* * 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; @@ -570,21 +537,20 @@ public java.lang.String getServer() { } } /** - * - * *
      * URI of the NFS server, e.g. an IP address.
      * 
* * 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 { @@ -592,61 +558,54 @@ public com.google.protobuf.ByteString getServerBytes() { } } /** - * - * *
      * URI of the NFS server, e.g. an IP address.
      * 
* * string server = 1; - * * @param value The server to set. * @return This builder for chaining. */ - public Builder setServer(java.lang.String value) { + public Builder setServer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + server_ = value; onChanged(); return this; } /** - * - * *
      * URI of the NFS server, e.g. an IP address.
      * 
* * string server = 1; - * * @return This builder for chaining. */ public Builder clearServer() { - + server_ = getDefaultInstance().getServer(); onChanged(); return this; } /** - * - * *
      * URI of the NFS server, e.g. an IP address.
      * 
* * string server = 1; - * * @param value The bytes for server to set. * @return This builder for chaining. */ - public Builder setServerBytes(com.google.protobuf.ByteString value) { + public Builder setServerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + server_ = value; onChanged(); return this; @@ -654,20 +613,18 @@ public Builder setServerBytes(com.google.protobuf.ByteString value) { private java.lang.Object remotePath_ = ""; /** - * - * *
      * Remote source path exported from 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; @@ -676,21 +633,20 @@ public java.lang.String getRemotePath() { } } /** - * - * *
      * Remote source path exported from 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 { @@ -698,68 +654,61 @@ public com.google.protobuf.ByteString getRemotePathBytes() { } } /** - * - * *
      * Remote source path exported from 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) { + public Builder setRemotePath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + remotePath_ = value; onChanged(); return this; } /** - * - * *
      * Remote source path exported from NFS, e.g., "/share".
      * 
* * string remote_path = 2; - * * @return This builder for chaining. */ public Builder clearRemotePath() { - + remotePath_ = getDefaultInstance().getRemotePath(); onChanged(); return this; } /** - * - * *
      * Remote source path exported from 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) { + public Builder setRemotePathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + remotePath_ = 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); } @@ -769,12 +718,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(); } @@ -783,16 +732,16 @@ 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 { - return new NFS(input, extensionRegistry); - } - }; + 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 { + return new NFS(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -807,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.NFS getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java similarity index 55% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java index 88cfdd0..349a03d 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/volume.proto 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 { /** - * - * *
    * URI of the NFS server, e.g. an IP address.
    * 
* * string server = 1; - * * @return The server. */ java.lang.String getServer(); /** - * - * *
    * URI of the NFS server, e.g. an IP address.
    * 
* * string server = 1; - * * @return The bytes for server. */ - com.google.protobuf.ByteString getServerBytes(); + com.google.protobuf.ByteString + getServerBytes(); /** - * - * *
    * Remote source path exported from NFS, e.g., "/share".
    * 
* * string remote_path = 2; - * * @return The remotePath. */ java.lang.String getRemotePath(); /** - * - * *
    * Remote source path exported from 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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java index 7843ed2..d02d103 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/batch.proto 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_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,40 +125,34 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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); } 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 @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * 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 @@ -207,14 +172,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() { @@ -224,15 +186,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 @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * 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 @@ -256,14 +210,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() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; 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 @@ -289,29 +237,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 { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; 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 @@ -338,29 +283,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 { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; 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 @@ -387,29 +329,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 { @@ -420,8 +362,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -430,7 +370,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -441,14 +380,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; 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 @@ -457,29 +393,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 { @@ -488,7 +424,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -532,10 +468,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -547,7 +485,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_); @@ -560,27 +499,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -607,7 +552,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) + unknownFields.hashCode(); @@ -615,127 +561,118 @@ 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() @@ -743,15 +680,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -781,9 +719,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 @@ -802,8 +740,7 @@ 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); + com.google.cloud.batch.v1.OperationMetadata result = new com.google.cloud.batch.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -827,39 +764,38 @@ public com.google.cloud.batch.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.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; @@ -924,58 +860,39 @@ public Builder mergeFrom( 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 createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * 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) { @@ -991,17 +908,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(); onChanged(); @@ -1012,21 +926,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1038,15 +948,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() { if (createTimeBuilder_ == null) { @@ -1060,64 +966,48 @@ 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() { - + onChanged(); 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_; @@ -1125,35 +1015,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 endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * 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() { @@ -1164,14 +1043,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) { @@ -1187,16 +1063,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(); onChanged(); @@ -1207,20 +1081,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 (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1232,14 +1103,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() { if (endTimeBuilder_ == null) { @@ -1253,59 +1121,48 @@ 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() { - + onChanged(); 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_; @@ -1313,20 +1170,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; @@ -1335,21 +1190,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 { @@ -1357,61 +1211,54 @@ 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) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; 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() { - + target_ = getDefaultInstance().getTarget(); onChanged(); 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) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1419,20 +1266,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; @@ -1441,21 +1286,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 { @@ -1463,61 +1307,54 @@ 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) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; 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() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); 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) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1525,20 +1362,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; @@ -1547,21 +1382,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 { @@ -1569,70 +1403,61 @@ 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) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; 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() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); 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) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); 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
@@ -1641,7 +1466,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 @@ -1649,8 +1473,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1659,19 +1481,16 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1680,11 +1499,10 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1692,20 +1510,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; @@ -1714,21 +1530,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 { @@ -1736,68 +1551,61 @@ 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) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; 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() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); 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) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1807,12 +1615,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(); } @@ -1821,16 +1629,16 @@ 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 { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1845,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.batch.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java index 52dc8c3..f66a6e1 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 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
@@ -185,33 +130,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/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java similarity index 75% rename from proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java rename to owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java index 13e7f26..1a59c36 100644 --- a/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java +++ b/owl-bot-staging/v1/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/batch/v1/task.proto package com.google.cloud.batch.v1; /** - * - * *
  * Runnable describes instructions for executing a specific script or container
  * as part of a Task.
@@ -28,29 +11,30 @@
  *
  * 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() {}
+  private Runnable() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Runnable();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Runnable(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,77 +53,70 @@ private Runnable(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.batch.v1.Runnable.Container.Builder subBuilder = null;
-              if (executableCase_ == 1) {
-                subBuilder =
-                    ((com.google.cloud.batch.v1.Runnable.Container) executable_).toBuilder();
-              }
-              executable_ =
-                  input.readMessage(
-                      com.google.cloud.batch.v1.Runnable.Container.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.batch.v1.Runnable.Container) executable_);
-                executable_ = subBuilder.buildPartial();
-              }
-              executableCase_ = 1;
-              break;
+          case 10: {
+            com.google.cloud.batch.v1.Runnable.Container.Builder subBuilder = null;
+            if (executableCase_ == 1) {
+              subBuilder = ((com.google.cloud.batch.v1.Runnable.Container) executable_).toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.batch.v1.Runnable.Script.Builder subBuilder = null;
-              if (executableCase_ == 2) {
-                subBuilder = ((com.google.cloud.batch.v1.Runnable.Script) executable_).toBuilder();
-              }
-              executable_ =
-                  input.readMessage(
-                      com.google.cloud.batch.v1.Runnable.Script.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.batch.v1.Runnable.Script) executable_);
-                executable_ = subBuilder.buildPartial();
-              }
-              executableCase_ = 2;
-              break;
+            executable_ =
+                input.readMessage(com.google.cloud.batch.v1.Runnable.Container.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.batch.v1.Runnable.Container) executable_);
+              executable_ = subBuilder.buildPartial();
             }
-          case 24:
-            {
-              ignoreExitStatus_ = input.readBool();
-              break;
+            executableCase_ = 1;
+            break;
+          }
+          case 18: {
+            com.google.cloud.batch.v1.Runnable.Script.Builder subBuilder = null;
+            if (executableCase_ == 2) {
+              subBuilder = ((com.google.cloud.batch.v1.Runnable.Script) executable_).toBuilder();
             }
-          case 32:
-            {
-              background_ = input.readBool();
-              break;
+            executable_ =
+                input.readMessage(com.google.cloud.batch.v1.Runnable.Script.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.batch.v1.Runnable.Script) executable_);
+              executable_ = subBuilder.buildPartial();
             }
-          case 40:
-            {
-              alwaysRun_ = input.readBool();
-              break;
+            executableCase_ = 2;
+            break;
+          }
+          case 24: {
+
+            ignoreExitStatus_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            background_ = input.readBool();
+            break;
+          }
+          case 40: {
+
+            alwaysRun_ = input.readBool();
+            break;
+          }
+          case 50: {
+            com.google.cloud.batch.v1.Runnable.Barrier.Builder subBuilder = null;
+            if (executableCase_ == 6) {
+              subBuilder = ((com.google.cloud.batch.v1.Runnable.Barrier) executable_).toBuilder();
             }
-          case 50:
-            {
-              com.google.cloud.batch.v1.Runnable.Barrier.Builder subBuilder = null;
-              if (executableCase_ == 6) {
-                subBuilder = ((com.google.cloud.batch.v1.Runnable.Barrier) executable_).toBuilder();
-              }
-              executable_ =
-                  input.readMessage(
-                      com.google.cloud.batch.v1.Runnable.Barrier.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.batch.v1.Runnable.Barrier) executable_);
-                executable_ = subBuilder.buildPartial();
-              }
-              executableCase_ = 6;
-              break;
+            executable_ =
+                input.readMessage(com.google.cloud.batch.v1.Runnable.Barrier.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.batch.v1.Runnable.Barrier) executable_);
+              executable_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            executableCase_ = 6;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -147,61 +124,51 @@ private Runnable(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.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;
   }
 
   @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
@@ -209,13 +176,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
@@ -223,13 +188,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
@@ -237,14 +199,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
@@ -252,40 +211,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,
@@ -293,13 +245,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,
@@ -307,13 +257,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,
@@ -321,14 +268,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,
@@ -336,42 +280,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. The container will use the default internal network
@@ -379,14 +316,11 @@ 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
@@ -394,13 +328,10 @@ public interface ContainerOrBuilder
      * 
* * 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
@@ -408,14 +339,12 @@ public interface ContainerOrBuilder
      * 
* * string username = 10; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
      * Optional password for logging in to a docker registry. If password
      * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -423,13 +352,10 @@ public interface ContainerOrBuilder
      * 
* * string password = 11; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
      * Optional password for logging in to a docker registry. If password
      * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -437,30 +363,27 @@ public interface ContainerOrBuilder
      * 
* * string password = 11; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); } /** - * - * *
    * 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.EMPTY; @@ -473,15 +396,16 @@ private Container() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Container(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Container( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -501,73 +425,66 @@ private Container( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - commands_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - commands_.add(s); - break; + imageUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + commands_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + commands_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - entrypoint_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - volumes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - volumes_.add(s); - break; + entrypoint_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + volumes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + volumes_.add(s); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - options_ = s; - break; - } - case 72: - { - blockExternalNetwork_ = input.readBool(); - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + options_ = s; + break; + } + case 72: { - username_ = s; - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); + blockExternalNetwork_ = input.readBool(); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + username_ = s; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -575,7 +492,8 @@ private Container( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { commands_ = commands_.getUnmodifiableView(); @@ -587,33 +505,27 @@ private Container( makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object imageUri_; /** - * - * *
      * The URI to pull the container image from.
      * 
* * string image_uri = 1; - * * @return The imageUri. */ @java.lang.Override @@ -622,29 +534,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 { @@ -655,8 +567,6 @@ public com.google.protobuf.ByteString getImageUriBytes() { public static final int COMMANDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList 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
@@ -664,15 +574,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
@@ -680,15 +588,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
@@ -696,7 +601,6 @@ public int getCommandsCount() {
      * 
* * repeated string commands = 2; - * * @param index The index of the element to return. * @return The commands at the given index. */ @@ -704,8 +608,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
@@ -713,25 +615,22 @@ 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; private volatile java.lang.Object entrypoint_; /** - * - * *
      * Overrides the `ENTRYPOINT` specified in the container.
      * 
* * string entrypoint = 3; - * * @return The entrypoint. */ @java.lang.Override @@ -740,29 +639,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 { @@ -773,8 +672,6 @@ public com.google.protobuf.ByteString getEntrypointBytes() { public static final int VOLUMES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList volumes_; /** - * - * *
      * Volumes to mount (bind mount) from the host machine files or directories
      * into the container, formatted to match docker run's --volume option,
@@ -782,15 +679,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,
@@ -798,15 +693,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,
@@ -814,7 +706,6 @@ public int getVolumesCount() {
      * 
* * repeated string volumes = 7; - * * @param index The index of the element to return. * @return The volumes at the given index. */ @@ -822,8 +713,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,
@@ -831,26 +720,23 @@ 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; 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 @@ -859,30 +745,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 { @@ -893,8 +779,6 @@ public com.google.protobuf.ByteString getOptionsBytes() { public static final int BLOCK_EXTERNAL_NETWORK_FIELD_NUMBER = 9; private boolean blockExternalNetwork_; /** - * - * *
      * If set to true, external network access to and from container will be
      * blocked. The container will use the default internal network
@@ -902,7 +786,6 @@ public com.google.protobuf.ByteString getOptionsBytes() {
      * 
* * bool block_external_network = 9; - * * @return The blockExternalNetwork. */ @java.lang.Override @@ -913,8 +796,6 @@ public boolean getBlockExternalNetwork() { public static final int USERNAME_FIELD_NUMBER = 10; 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
@@ -922,7 +803,6 @@ public boolean getBlockExternalNetwork() {
      * 
* * string username = 10; - * * @return The username. */ @java.lang.Override @@ -931,15 +811,14 @@ 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
@@ -947,15 +826,16 @@ public java.lang.String getUsername() {
      * 
* * 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 { @@ -966,8 +846,6 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 11; private volatile java.lang.Object password_; /** - * - * *
      * Optional password for logging in to a docker registry. If password
      * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -975,7 +853,6 @@ public com.google.protobuf.ByteString getUsernameBytes() {
      * 
* * string password = 11; - * * @return The password. */ @java.lang.Override @@ -984,15 +861,14 @@ 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; } } /** - * - * *
      * Optional password for logging in to a docker registry. If password
      * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -1000,15 +876,16 @@ public java.lang.String getPassword() {
      * 
* * 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 { @@ -1017,7 +894,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1029,7 +905,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_); } @@ -1089,7 +966,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_); @@ -1105,22 +983,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.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; + 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1147,7 +1032,8 @@ 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; @@ -1157,94 +1043,88 @@ public int hashCode() { 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 @@ -1254,32 +1134,27 @@ 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() @@ -1287,15 +1162,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1319,9 +1195,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 @@ -1340,8 +1216,7 @@ 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); + com.google.cloud.batch.v1.Runnable.Container result = new com.google.cloud.batch.v1.Runnable.Container(this); int from_bitField0_ = bitField0_; result.imageUri_ = imageUri_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1367,41 +1242,38 @@ public com.google.cloud.batch.v1.Runnable.Container buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.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; @@ -1481,25 +1353,22 @@ public Builder mergeFrom( } 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; @@ -1508,21 +1377,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 { @@ -1530,78 +1398,67 @@ 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) { + public Builder setImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** - * - * *
        * The URI to pull the container image from.
        * 
* * string image_uri = 1; - * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); 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) { + public Builder setImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList commands_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList commands_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { commands_ = new com.google.protobuf.LazyStringArrayList(commands_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1609,15 +1466,13 @@ 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() { return commands_.getUnmodifiableView(); } /** - * - * *
        * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT
        * (either in the container image or with the entrypoint field below) then
@@ -1625,15 +1480,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
@@ -1641,7 +1493,6 @@ public int getCommandsCount() {
        * 
* * repeated string commands = 2; - * * @param index The index of the element to return. * @return The commands at the given index. */ @@ -1649,8 +1500,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
@@ -1658,16 +1507,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
@@ -1675,23 +1522,21 @@ 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) { + public Builder setCommands( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCommandsIsMutable(); + throw new NullPointerException(); + } + ensureCommandsIsMutable(); commands_.set(index, value); 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
@@ -1699,22 +1544,20 @@ 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) { + public Builder addCommands( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCommandsIsMutable(); + throw new NullPointerException(); + } + ensureCommandsIsMutable(); commands_.add(value); 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
@@ -1722,19 +1565,18 @@ 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_); 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
@@ -1742,7 +1584,6 @@ public Builder addAllCommands(java.lang.Iterable values) {
        * 
* * repeated string commands = 2; - * * @return This builder for chaining. */ public Builder clearCommands() { @@ -1752,8 +1593,6 @@ public Builder clearCommands() { 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
@@ -1761,15 +1600,15 @@ 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) { + public Builder addCommandsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCommandsIsMutable(); commands_.add(value); onChanged(); @@ -1778,20 +1617,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; @@ -1800,21 +1637,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 { @@ -1822,78 +1658,67 @@ 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) { + public Builder setEntrypoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entrypoint_ = value; onChanged(); return this; } /** - * - * *
        * Overrides the `ENTRYPOINT` specified in the container.
        * 
* * string entrypoint = 3; - * * @return This builder for chaining. */ public Builder clearEntrypoint() { - + entrypoint_ = getDefaultInstance().getEntrypoint(); onChanged(); 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) { + public Builder setEntrypointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entrypoint_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList volumes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList volumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { volumes_ = new com.google.protobuf.LazyStringArrayList(volumes_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -1901,15 +1726,13 @@ 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() { return volumes_.getUnmodifiableView(); } /** - * - * *
        * Volumes to mount (bind mount) from the host machine files or directories
        * into the container, formatted to match docker run's --volume option,
@@ -1917,15 +1740,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,
@@ -1933,7 +1753,6 @@ public int getVolumesCount() {
        * 
* * repeated string volumes = 7; - * * @param index The index of the element to return. * @return The volumes at the given index. */ @@ -1941,8 +1760,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,
@@ -1950,16 +1767,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,
@@ -1967,23 +1782,21 @@ 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) { + public Builder setVolumes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureVolumesIsMutable(); + throw new NullPointerException(); + } + ensureVolumesIsMutable(); volumes_.set(index, value); 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,
@@ -1991,22 +1804,20 @@ 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) { + public Builder addVolumes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureVolumesIsMutable(); + throw new NullPointerException(); + } + ensureVolumesIsMutable(); volumes_.add(value); 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,
@@ -2014,19 +1825,18 @@ 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_); 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,
@@ -2034,7 +1844,6 @@ public Builder addAllVolumes(java.lang.Iterable values) {
        * 
* * repeated string volumes = 7; - * * @return This builder for chaining. */ public Builder clearVolumes() { @@ -2044,8 +1853,6 @@ public Builder clearVolumes() { 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,
@@ -2053,15 +1860,15 @@ 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) { + public Builder addVolumesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureVolumesIsMutable(); volumes_.add(value); onChanged(); @@ -2070,21 +1877,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; @@ -2093,22 +1898,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 { @@ -2116,73 +1920,64 @@ 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) { + public Builder setOptions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + options_ = value; 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() { - + options_ = getDefaultInstance().getOptions(); onChanged(); 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) { + public Builder setOptionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + options_ = value; onChanged(); return this; } - private boolean blockExternalNetwork_; + private boolean blockExternalNetwork_ ; /** - * - * *
        * If set to true, external network access to and from container will be
        * blocked. The container will use the default internal network
@@ -2190,7 +1985,6 @@ public Builder setOptionsBytes(com.google.protobuf.ByteString value) {
        * 
* * bool block_external_network = 9; - * * @return The blockExternalNetwork. */ @java.lang.Override @@ -2198,8 +1992,6 @@ public boolean getBlockExternalNetwork() { return blockExternalNetwork_; } /** - * - * *
        * If set to true, external network access to and from container will be
        * blocked. The container will use the default internal network
@@ -2207,19 +1999,16 @@ public boolean getBlockExternalNetwork() {
        * 
* * bool block_external_network = 9; - * * @param value The blockExternalNetwork to set. * @return This builder for chaining. */ public Builder setBlockExternalNetwork(boolean value) { - + blockExternalNetwork_ = value; onChanged(); return this; } /** - * - * *
        * If set to true, external network access to and from container will be
        * blocked. The container will use the default internal network
@@ -2227,11 +2016,10 @@ public Builder setBlockExternalNetwork(boolean value) {
        * 
* * bool block_external_network = 9; - * * @return This builder for chaining. */ public Builder clearBlockExternalNetwork() { - + blockExternalNetwork_ = false; onChanged(); return this; @@ -2239,8 +2027,6 @@ 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
@@ -2248,13 +2034,13 @@ public Builder clearBlockExternalNetwork() {
        * 
* * 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; @@ -2263,8 +2049,6 @@ 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
@@ -2272,14 +2056,15 @@ public java.lang.String getUsername() {
        * 
* * 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 { @@ -2287,8 +2072,6 @@ 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
@@ -2296,22 +2079,20 @@ public com.google.protobuf.ByteString getUsernameBytes() {
        * 
* * string username = 10; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
        * Optional username for logging in to a docker registry. If username
        * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -2319,18 +2100,15 @@ public Builder setUsername(java.lang.String value) {
        * 
* * string username = 10; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
        * Optional username for logging in to a docker registry. If username
        * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -2338,16 +2116,16 @@ public Builder clearUsername() {
        * 
* * string username = 10; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -2355,8 +2133,6 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
        * Optional password for logging in to a docker registry. If password
        * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -2364,13 +2140,13 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) {
        * 
* * 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; @@ -2379,8 +2155,6 @@ public java.lang.String getPassword() { } } /** - * - * *
        * Optional password for logging in to a docker registry. If password
        * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -2388,14 +2162,15 @@ public java.lang.String getPassword() {
        * 
* * 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 { @@ -2403,8 +2178,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
        * Optional password for logging in to a docker registry. If password
        * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -2412,22 +2185,20 @@ public com.google.protobuf.ByteString getPasswordBytes() {
        * 
* * string password = 11; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
        * Optional password for logging in to a docker registry. If password
        * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -2435,18 +2206,15 @@ public Builder setPassword(java.lang.String value) {
        * 
* * string password = 11; - * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
        * Optional password for logging in to a docker registry. If password
        * matches "projects/*/secrets/*/versions/*" then Batch will read the
@@ -2454,21 +2222,20 @@ public Builder clearPassword() {
        * 
* * string password = 11; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2481,12 +2248,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(); } @@ -2495,16 +2262,16 @@ 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 { - return new Container(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Container(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2519,121 +2286,104 @@ 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.
+     * Script file path on the host VM.
      * 
* * string path = 1; - * * @return Whether the path field is set. */ boolean hasPath(); /** - * - * *
-     * Script file path.
+     * Script file path on the host VM.
      * 
* * string path = 1; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
-     * Script file path.
+     * Script file path on the host VM.
      * 
* * string path = 1; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
      * Shell script text.
      * 
* * string text = 2; - * * @return Whether the text field is set. */ boolean hasText(); /** - * - * *
      * Shell script text.
      * 
* * string text = 2; - * * @return The text. */ java.lang.String getText(); /** - * - * *
      * Shell script text.
      * 
* * string text = 2; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); public 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Script( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2652,27 +2402,25 @@ private Script( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - commandCase_ = 1; - command_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - commandCase_ = 2; - command_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + commandCase_ = 1; + command_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + commandCase_ = 2; + command_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2680,40 +2428,35 @@ private Script( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; 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; } @@ -2729,50 +2472,41 @@ 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.
+     * Script file path on the host VM.
      * 
* * string path = 1; - * * @return Whether the path field is set. */ public boolean hasPath() { return commandCase_ == 1; } /** - * - * *
-     * Script file path.
+     * Script file path on the host VM.
      * 
* * string path = 1; - * * @return The path. */ public java.lang.String getPath() { @@ -2783,7 +2517,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; @@ -2792,24 +2527,23 @@ public java.lang.String getPath() { } } /** - * - * *
-     * Script file path.
+     * Script file path on the host VM.
      * 
* * 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; } @@ -2821,28 +2555,22 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int TEXT_FIELD_NUMBER = 2; /** - * - * *
      * Shell script text.
      * 
* * string text = 2; - * * @return Whether the text field is set. */ public boolean hasText() { return commandCase_ == 2; } /** - * - * *
      * Shell script text.
      * 
* * string text = 2; - * * @return The text. */ public java.lang.String getText() { @@ -2853,7 +2581,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; @@ -2862,24 +2591,23 @@ public java.lang.String getText() { } } /** - * - * *
      * Shell script text.
      * 
* * 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; } @@ -2890,7 +2618,6 @@ public com.google.protobuf.ByteString getTextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2902,7 +2629,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_); } @@ -2932,21 +2660,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: @@ -2979,94 +2708,88 @@ 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 @@ -3076,32 +2799,27 @@ 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() @@ -3109,15 +2827,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3127,9 +2846,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 @@ -3148,8 +2867,7 @@ 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); + com.google.cloud.batch.v1.Runnable.Script result = new com.google.cloud.batch.v1.Runnable.Script(this); if (commandCase_ == 1) { result.command_ = command_; } @@ -3165,41 +2883,38 @@ public com.google.cloud.batch.v1.Runnable.Script buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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; @@ -3209,24 +2924,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.unknownFields); onChanged(); @@ -3256,12 +2968,12 @@ public Builder mergeFrom( } 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() { @@ -3271,15 +2983,13 @@ public Builder clearCommand() { return this; } + /** - * - * *
-       * Script file path.
+       * Script file path on the host VM.
        * 
* * string path = 1; - * * @return Whether the path field is set. */ @java.lang.Override @@ -3287,14 +2997,11 @@ public boolean hasPath() { return commandCase_ == 1; } /** - * - * *
-       * Script file path.
+       * Script file path on the host VM.
        * 
* * string path = 1; - * * @return The path. */ @java.lang.Override @@ -3304,7 +3011,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; @@ -3315,25 +3023,24 @@ public java.lang.String getPath() { } } /** - * - * *
-       * Script file path.
+       * Script file path on the host VM.
        * 
* * 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; } @@ -3343,35 +3050,30 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
-       * Script file path.
+       * Script file path on the host VM.
        * 
* * string path = 1; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { + public Builder setPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - commandCase_ = 1; + throw new NullPointerException(); + } + commandCase_ = 1; command_ = value; onChanged(); return this; } /** - * - * *
-       * Script file path.
+       * Script file path on the host VM.
        * 
* * string path = 1; - * * @return This builder for chaining. */ public Builder clearPath() { @@ -3383,22 +3085,20 @@ public Builder clearPath() { return this; } /** - * - * *
-       * Script file path.
+       * Script file path on the host VM.
        * 
* * string path = 1; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { + public Builder setPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); commandCase_ = 1; command_ = value; onChanged(); @@ -3406,14 +3106,11 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { } /** - * - * *
        * Shell script text.
        * 
* * string text = 2; - * * @return Whether the text field is set. */ @java.lang.Override @@ -3421,14 +3118,11 @@ public boolean hasText() { return commandCase_ == 2; } /** - * - * *
        * Shell script text.
        * 
* * string text = 2; - * * @return The text. */ @java.lang.Override @@ -3438,7 +3132,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; @@ -3449,25 +3144,24 @@ public java.lang.String getText() { } } /** - * - * *
        * Shell script text.
        * 
* * 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; } @@ -3477,35 +3171,30 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
        * Shell script text.
        * 
* * string text = 2; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - commandCase_ = 2; + throw new NullPointerException(); + } + commandCase_ = 2; command_ = value; onChanged(); return this; } /** - * - * *
        * Shell script text.
        * 
* * string text = 2; - * * @return This builder for chaining. */ public Builder clearText() { @@ -3517,28 +3206,25 @@ public Builder clearText() { return this; } /** - * - * *
        * Shell script text.
        * 
* * string text = 2; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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) { @@ -3551,12 +3237,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(); } @@ -3565,16 +3251,16 @@ public static com.google.cloud.batch.v1.Runnable.Script getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser